Skip to content

Commit

Permalink
chore(oxc): rename crate oxc_syntax_operations to oxc_ecmascript (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Oct 12, 2024
1 parent 702c049 commit 455dab4
Show file tree
Hide file tree
Showing 36 changed files with 45 additions and 53 deletions.
30 changes: 15 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ oxc_cfg = { version = "0.31.0", path = "crates/oxc_cfg" }
oxc_codegen = { version = "0.31.0", path = "crates/oxc_codegen" }
oxc_data_structures = { version = "0.31.0", path = "crates/oxc_data_structures" }
oxc_diagnostics = { version = "0.31.0", path = "crates/oxc_diagnostics" }
oxc_ecmascript = { version = "0.31.0", path = "crates/oxc_ecmascript" }
oxc_index = { version = "0.31.0", path = "crates/oxc_index" }
oxc_isolated_declarations = { version = "0.31.0", path = "crates/oxc_isolated_declarations" }
oxc_mangler = { version = "0.31.0", path = "crates/oxc_mangler" }
Expand All @@ -95,7 +96,6 @@ oxc_semantic = { version = "0.31.0", path = "crates/oxc_semantic" }
oxc_sourcemap = { version = "0.31.0", path = "crates/oxc_sourcemap" }
oxc_span = { version = "0.31.0", path = "crates/oxc_span" }
oxc_syntax = { version = "0.31.0", path = "crates/oxc_syntax" }
oxc_syntax_operations = { version = "0.31.0", path = "crates/oxc_syntax_operations" }
oxc_transform_napi = { version = "0.31.0", path = "napi/transform" }
oxc_transformer = { version = "0.31.0", path = "crates/oxc_transformer" }
oxc_traverse = { version = "0.31.0", path = "crates/oxc_traverse" }
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_ast/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

### Features

- 9e62396 syntax_operations: Add crate `oxc_syntax_operations` (#6202) (Boshen)
- 9e62396 syntax_operations: Add crate `oxc_ecmascript` (#6202) (Boshen)

### Refactor

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

### Features

- 9e62396 syntax_operations: Add crate `oxc_syntax_operations` (#6202) (Boshen)
- 9e62396 syntax_operations: Add crate `oxc_ecmascript` (#6202) (Boshen)

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "oxc_syntax_operations"
name = "oxc_ecmascript"
version = "0.31.0"
authors.workspace = true
categories.workspace = true
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
//! Traits for JavaScript syntax operations
//!
//! * BoundNames
//! * IsSimpleParameterList
//! * PrivateBoundIdentifiers
//! * PropName
//! * Constant Folding
//!
//! See [ECMA262 Syntax-Directed Operations](https://tc39.es/ecma262/#sec-syntax-directed-operations)
//! Methods defined in the [ECMAScript Language Specification](https://tc39.es/ecma262).
mod bound_names;
mod has_proto;
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion crates/oxc_isolated_declarations/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

### Features

- 9e62396 syntax_operations: Add crate `oxc_syntax_operations` (#6202) (Boshen)
- 9e62396 syntax_operations: Add crate `oxc_ecmascript` (#6202) (Boshen)

### Bug Fixes

Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_isolated_declarations/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ test = false
oxc_allocator = { workspace = true }
oxc_ast = { workspace = true }
oxc_diagnostics = { workspace = true }
oxc_ecmascript = { workspace = true }
oxc_span = { workspace = true }
oxc_syntax = { workspace = true, features = ["to_js_string"] }
oxc_syntax_operations = { workspace = true }

bitflags = { workspace = true }
rustc-hash = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_isolated_declarations/src/declaration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ use oxc_allocator::Vec;
use oxc_ast::ast::*;
use oxc_ast::visit::walk_mut::walk_ts_signatures;
use oxc_ast::{Visit, VisitMut};
use oxc_ecmascript::BoundNames;
use oxc_span::{GetSpan, SPAN};
use oxc_syntax::scope::ScopeFlags;
use oxc_syntax_operations::BoundNames;

use crate::diagnostics::accessor_must_have_explicit_return_type;
use crate::{
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_minifier/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- cca0034 minifier: Handle positive `NaN` and `Infinity`. (#6207) (7086cmd)
- dac8f09 minifier: Minify unary plus negation. (#6203) (7086cmd)
- 3b79e1b minifier: Evaluate bigint in fold constant (#6178) (Boshen)
- 9e62396 syntax_operations: Add crate `oxc_syntax_operations` (#6202) (Boshen)
- 9e62396 syntax_operations: Add crate `oxc_ecmascript` (#6202) (Boshen)

### Bug Fixes

Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_minifier/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ doctest = false
oxc_allocator = { workspace = true }
oxc_ast = { workspace = true }
oxc_codegen = { workspace = true }
oxc_ecmascript = { workspace = true }
oxc_mangler = { workspace = true }
oxc_parser = { workspace = true }
oxc_semantic = { workspace = true }
oxc_span = { workspace = true }
oxc_syntax = { workspace = true }
oxc_syntax_operations = { workspace = true }
oxc_traverse = { workspace = true }

cow-utils = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_minifier/src/keep_var.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use oxc_ast::{ast::*, AstBuilder, Visit, NONE};
use oxc_ecmascript::BoundNames;
use oxc_span::{Atom, Span, SPAN};
use oxc_syntax_operations::BoundNames;

pub struct KeepVar<'a> {
ast: AstBuilder<'a>,
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_module_lexer/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

### Features

- 9e62396 syntax_operations: Add crate `oxc_syntax_operations` (#6202) (Boshen)
- 9e62396 syntax_operations: Add crate `oxc_ecmascript` (#6202) (Boshen)

## [0.28.0] - 2024-09-11

Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_module_lexer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ doctest = false

[dependencies]
oxc_ast = { workspace = true }
oxc_ecmascript = { workspace = true }
oxc_span = { workspace = true }
oxc_syntax_operations = { workspace = true }

[dev-dependencies]
oxc_allocator = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_module_lexer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ use oxc_ast::visit::walk::{
};
#[allow(clippy::wildcard_imports)]
use oxc_ast::{ast::*, Visit};
use oxc_ecmascript::BoundNames;
use oxc_span::{Atom, GetSpan};
use oxc_syntax_operations::BoundNames;

#[derive(Debug, Clone)]
pub struct ImportSpecifier<'a> {
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_parser/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

### Features

- 9e62396 syntax_operations: Add crate `oxc_syntax_operations` (#6202) (Boshen)
- 9e62396 syntax_operations: Add crate `oxc_ecmascript` (#6202) (Boshen)

### Bug Fixes

Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_parser/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ doctest = false
oxc_allocator = { workspace = true }
oxc_ast = { workspace = true }
oxc_diagnostics = { workspace = true }
oxc_ecmascript = { workspace = true }
oxc_regular_expression = { workspace = true }
oxc_span = { workspace = true }
oxc_syntax = { workspace = true }
oxc_syntax_operations = { workspace = true }

assert-unchecked = { workspace = true }
bitflags = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_parser/src/js/class.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use oxc_allocator::{Box, Vec};
use oxc_ast::ast::*;
use oxc_diagnostics::Result;
use oxc_ecmascript::PropName;
use oxc_span::{GetSpan, Span};
use oxc_syntax_operations::PropName;

use crate::{
diagnostics,
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_semantic/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### Features

- 14275b1 cfg: Color-code edges in CFG dot diagrams (#6314) (DonIsaac)
- 9e62396 syntax_operations: Add crate `oxc_syntax_operations` (#6202) (Boshen)
- 9e62396 syntax_operations: Add crate `oxc_ecmascript` (#6202) (Boshen)

### Bug Fixes

Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_semantic/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ oxc_allocator = { workspace = true }
oxc_ast = { workspace = true }
oxc_cfg = { workspace = true }
oxc_diagnostics = { workspace = true }
oxc_ecmascript = { workspace = true }
oxc_index = { workspace = true }
oxc_span = { workspace = true }
oxc_syntax = { workspace = true }
oxc_syntax_operations = { workspace = true }

assert-unchecked = { workspace = true }
indexmap = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_semantic/src/binder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ use std::{borrow::Cow, ptr};

#[allow(clippy::wildcard_imports)]
use oxc_ast::{ast::*, AstKind};
use oxc_ecmascript::{BoundNames, IsSimpleParameterList};
use oxc_span::{GetSpan, SourceType};
use oxc_syntax_operations::{BoundNames, IsSimpleParameterList};

use crate::{
scope::{ScopeFlags, ScopeId},
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_semantic/src/checker/javascript.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ use rustc_hash::FxHashMap;
#[allow(clippy::wildcard_imports)]
use oxc_ast::{ast::*, AstKind};
use oxc_diagnostics::{LabeledSpan, OxcDiagnostic};
use oxc_ecmascript::{IsSimpleParameterList, PropName};
use oxc_span::{GetSpan, ModuleKind, Span};
use oxc_syntax::{
module_record::ExportLocalName,
number::NumberBase,
operator::{AssignmentOperator, BinaryOperator, LogicalOperator, UnaryOperator},
};
use oxc_syntax_operations::{IsSimpleParameterList, PropName};

use crate::{builder::SemanticBuilder, diagnostics::redeclaration, scope::ScopeFlags, AstNode};

Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_semantic/src/checker/typescript.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ use rustc_hash::FxHashMap;
#[allow(clippy::wildcard_imports)]
use oxc_ast::{ast::*, AstKind};
use oxc_diagnostics::OxcDiagnostic;
use oxc_ecmascript::{BoundNames, PropName};
use oxc_span::{Atom, GetSpan, Span};
use oxc_syntax_operations::{BoundNames, PropName};

use crate::{builder::SemanticBuilder, diagnostics::redeclaration};

Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_semantic/src/module_record/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ use std::path::PathBuf;

#[allow(clippy::wildcard_imports)]
use oxc_ast::ast::*;
use oxc_ecmascript::BoundNames;
use oxc_span::{CompactStr, GetSpan, Span};
#[allow(clippy::wildcard_imports)]
use oxc_syntax::module_record::*;
use oxc_syntax_operations::BoundNames;

#[derive(Default)]
pub struct ModuleRecordBuilder {
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_transformer/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

- c3c3447 data_structures: Add `oxc_data_structures` crate; add stack (#6206) (Boshen)
- 51a78d5 napi/transform: Rename all mention of React to Jsx; remove mention of `Binding` (#6198) (Boshen)
- 9e62396 syntax_operations: Add crate `oxc_syntax_operations` (#6202) (Boshen)
- 9e62396 syntax_operations: Add crate `oxc_ecmascript` (#6202) (Boshen)
- cf20f3a transformer: Exponentiation transform: support private fields (#6345) (overlookmotel)

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_transformer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ oxc_allocator = { workspace = true }
oxc_ast = { workspace = true }
oxc_data_structures = { workspace = true }
oxc_diagnostics = { workspace = true }
oxc_ecmascript = { workspace = true }
oxc_parser = { workspace = true }
oxc_regular_expression = { workspace = true }
oxc_semantic = { workspace = true }
oxc_span = { workspace = true }
oxc_syntax = { workspace = true, features = ["to_js_string"] }
oxc_syntax_operations = { workspace = true }
oxc_traverse = { workspace = true }
ropey = { workspace = true }
rustc-hash = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_transformer/src/react/jsx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@
use oxc_allocator::Vec;
use oxc_ast::{ast::*, AstBuilder, NONE};
use oxc_ecmascript::HasProto;
use oxc_span::{Atom, GetSpan, Span, SPAN};
use oxc_syntax::{
identifier::{is_irregular_whitespace, is_line_terminator},
reference::ReferenceFlags,
symbol::SymbolFlags,
xml_entities::XML_ENTITIES,
};
use oxc_syntax_operations::HasProto;
use oxc_traverse::{BoundIdentifier, Traverse, TraverseCtx};

use crate::{common::module_imports::NamedImport, TransformCtx};
Expand Down
Loading

0 comments on commit 455dab4

Please sign in to comment.