summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/Cargo.toml8
-rw-r--r--cli/lsp/document_source.rs3
-rw-r--r--cli/module_graph.rs2
-rw-r--r--cli/tools/test.rs5
4 files changed, 7 insertions, 11 deletions
diff --git a/cli/Cargo.toml b/cli/Cargo.toml
index b0154f739..63f8193a8 100644
--- a/cli/Cargo.toml
+++ b/cli/Cargo.toml
@@ -43,11 +43,11 @@ winapi = "0.3.9"
winres = "0.1.11"
[dependencies]
-deno_ast = { version = "0.1.6", features = ["bundler", "codegen", "dep_graph", "module_specifier", "proposal", "react", "sourcemap", "transforms", "typescript", "view", "visit"] }
+deno_ast = { version = "0.2.0", features = ["bundler", "codegen", "dep_graph", "module_specifier", "proposal", "react", "sourcemap", "transforms", "typescript", "view", "visit"] }
deno_core = { version = "0.98.0", path = "../core" }
-deno_doc = "0.13.0"
-deno_graph = "0.4.0"
-deno_lint = { version = "0.15.1", features = ["docs"] }
+deno_doc = "0.14.0"
+deno_graph = "0.5.0"
+deno_lint = { version = "0.16.0", features = ["docs"] }
deno_runtime = { version = "0.24.0", path = "../runtime" }
deno_tls = { version = "0.3.0", path = "../ext/tls" }
diff --git a/cli/lsp/document_source.rs b/cli/lsp/document_source.rs
index 109f2c300..c2bef884e 100644
--- a/cli/lsp/document_source.rs
+++ b/cli/lsp/document_source.rs
@@ -1,4 +1,3 @@
-use deno_ast::swc::common::BytePos;
use deno_ast::Diagnostic;
use deno_ast::MediaType;
use deno_ast::ParsedSource;
@@ -36,7 +35,7 @@ impl DocumentSource {
inner: Arc::new(DocumentSourceInner {
specifier: specifier.clone(),
media_type,
- text_info: SourceTextInfo::new(BytePos(0), text),
+ text_info: SourceTextInfo::new(text),
parsed_module: OnceCell::new(),
line_index,
}),
diff --git a/cli/module_graph.rs b/cli/module_graph.rs
index 00301e6bb..7bea57e62 100644
--- a/cli/module_graph.rs
+++ b/cli/module_graph.rs
@@ -308,7 +308,7 @@ impl Module {
specifier: cached_module.specifier,
maybe_import_map,
media_type,
- text_info: SourceTextInfo::new(BytePos(0), cached_module.source),
+ text_info: SourceTextInfo::new(cached_module.source),
source_path: cached_module.source_path,
maybe_emit: cached_module.maybe_emit,
maybe_emit_path: cached_module.maybe_emit_path,
diff --git a/cli/tools/test.rs b/cli/tools/test.rs
index ec16d6fb0..a807bde05 100644
--- a/cli/tools/test.rs
+++ b/cli/tools/test.rs
@@ -424,10 +424,7 @@ fn extract_files_from_source_comments(
) -> Result<Vec<File>, AnyError> {
let parsed_source = deno_ast::parse_module(deno_ast::ParseParams {
specifier: specifier.as_str().to_string(),
- source: deno_ast::SourceTextInfo::new(
- deno_ast::swc::common::BytePos(0),
- source,
- ),
+ source: deno_ast::SourceTextInfo::new(source),
media_type,
capture_tokens: false,
maybe_syntax: None,