Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing the Wasm blocker for Parser #494

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ecmascript/parser/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ edition = "2018"
[features]
default = []
# Requires nightly.
fold = ["swc_common/fold", "ast/fold"]
fold = ["swc_common/fold", "swc_ecma_ast/fold"]
# Verify that expression is valid. Requires nightly.
verify = ["fold"]

[dependencies]
swc_atoms = { version = "0.2", path ="../../atoms" }
swc_common = { version = "0.4.0", path ="../../common" }
ast = { package = "swc_ecma_ast", version = "0.10.0", path ="../ast" }
parser_macros = { package = "swc_ecma_parser_macros", version = "0.4", path ="./macros" }
swc_ecma_ast = { version = "0.10.0", path ="../ast" }
swc_ecma_parser_macros = { package = "swc_ecma_parser_macros", version = "0.4", path ="./macros" }
enum_kind = { version = "0.2", path ="../../macros/enum_kind" }
unicode-xid = "0.2"
log = { version = "0.4", features = ["release_max_level_debug"] }
Expand Down
2 changes: 1 addition & 1 deletion ecmascript/parser/src/lexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use crate::{
Context, JscTarget, Session, Syntax,
};

use ast::Str;
use swc_ecma_ast::Str;
use smallvec::{smallvec, SmallVec};
use std::{char, iter::FusedIterator};
use swc_atoms::JsWord;
Expand Down
4 changes: 2 additions & 2 deletions ecmascript/parser/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ use crate::{
token::{Token, Word},
Context, JscTarget, Session, Syntax,
};
use ast::*;
use parser_macros::parser;
use swc_ecma_ast::*;
use swc_ecma_parser_macros::parser;
use std::ops::{Deref, DerefMut};
use swc_atoms::JsWord;
use swc_common::{comments::Comments, errors::DiagnosticBuilder, input::Input, BytePos, Span};
Expand Down
2 changes: 1 addition & 1 deletion ecmascript/parser/src/parser/class_and_fn.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::{ident::MaybeOptionalIdentParser, *};
use crate::{error::SyntaxError, Tokens};
use either::Either;
use parser_macros::parser;
use swc_ecma_parser_macros::parser;
use swc_atoms::js_word;
use swc_common::Spanned;

Expand Down
2 changes: 1 addition & 1 deletion ecmascript/parser/src/parser/ident.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
use super::*;
use crate::token::Keyword;
use either::Either;
use parser_macros::parser;
use swc_ecma_parser_macros::parser;
use swc_atoms::js_word;

#[parser]
Expand Down
4 changes: 2 additions & 2 deletions ecmascript/parser/src/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
//! [babel/bablyon]:https://github.com/babel/babel/blob/2d378d076eb0c5fe63234a8b509886005c01d7ee/packages/babylon/src/tokenizer/types.js
pub(crate) use self::{AssignOpToken::*, BinOpToken::*, Keyword::*, Token::*};
use crate::error::Error;
pub(crate) use ast::AssignOp as AssignOpToken;
use ast::{BinaryOp, Str};
pub(crate) use swc_ecma_ast::AssignOp as AssignOpToken;
use swc_ecma_ast::{BinaryOp, Str};
use enum_kind::Kind;
use std::{
borrow::Cow,
Expand Down
2 changes: 1 addition & 1 deletion ecmascript/parser/tests/jsx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

extern crate test;

use ast::*;
use swc_ecma_ast::*;
use pretty_assertions::assert_eq;
use serde_json;
use std::{
Expand Down
2 changes: 1 addition & 1 deletion ecmascript/parser/tests/test262.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

extern crate test;

use ast::*;
use swc_ecma_ast::*;
use std::{
env,
fs::{read_dir, File},
Expand Down
2 changes: 1 addition & 1 deletion ecmascript/parser/tests/typescript.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

extern crate test;

use ast::*;
use swc_ecma_ast::*;
use pretty_assertions::assert_eq;
use std::{
env,
Expand Down