mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
chore: upgrade Rust to 1.54.0 (#11554)
This commit is contained in:
parent
c909faf9e6
commit
8f00b5542c
36 changed files with 156 additions and 161 deletions
|
@ -291,7 +291,7 @@ pub fn parse_module(
|
|||
ast::parse_with_source_map(
|
||||
&specifier.to_string(),
|
||||
source,
|
||||
&media_type,
|
||||
media_type,
|
||||
source_map,
|
||||
)
|
||||
}
|
||||
|
@ -309,7 +309,7 @@ pub fn analyze_dependencies(
|
|||
|
||||
// Parse leading comments for supported triple slash references.
|
||||
for comment in parsed_module.get_leading_comments().iter() {
|
||||
if let Some((ts_reference, span)) = parse_ts_reference(&comment) {
|
||||
if let Some((ts_reference, span)) = parse_ts_reference(comment) {
|
||||
let loc = parsed_module.source_map.lookup_char_pos(span.lo);
|
||||
match ts_reference {
|
||||
TypeScriptReference::Path(import) => {
|
||||
|
@ -364,7 +364,7 @@ pub fn analyze_dependencies(
|
|||
let maybe_resolved_type_dependency =
|
||||
// Check for `@deno-types` pragmas that affect the import
|
||||
if let Some(comment) = desc.leading_comments.last() {
|
||||
parse_deno_types(&comment).as_ref().map(|(deno_types, span)| {
|
||||
parse_deno_types(comment).as_ref().map(|(deno_types, span)| {
|
||||
(
|
||||
resolve_import(deno_types, specifier, maybe_import_map),
|
||||
deno_types.clone(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue