diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-04-27 15:46:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-27 15:46:39 +0200 |
commit | 1f52d180c08b5fc060ecf9d24e4d7f31377479b7 (patch) | |
tree | d2540ce182ded4b5bd3d542c76403e03a381c369 /cli/doc/module.rs | |
parent | 8e9ab9e33ea2c972762cc345c584391c37731b33 (diff) |
refactor: factor out AstParser from DocParser (#4923)
Diffstat (limited to 'cli/doc/module.rs')
-rw-r--r-- | cli/doc/module.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cli/doc/module.rs b/cli/doc/module.rs index d2284b36c..2de9c7ca8 100644 --- a/cli/doc/module.rs +++ b/cli/doc/module.rs @@ -14,10 +14,7 @@ pub fn get_doc_node_for_export_decl( use crate::swc_ecma_ast::Decl; let js_doc = doc_parser.js_doc_for_span(export_span); - let location = doc_parser - .source_map - .lookup_char_pos(export_span.lo()) - .into(); + let location = doc_parser.ast_parser.get_span_location(export_span).into(); match &export_decl.decl { Decl::Class(class_decl) => { |