mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Don't parse nodes, only to not include them in the tree. This will break incremental parsing scenarios.
Properly store the data for an external module reference in the AST.
This commit is contained in:
1 parent
4db6d3136c
commit
ada6cebef3
6 files changed
+85
-45
No files matched your search
@@ -1,12 +1,9 @@
|
||||
tests/cases/conformance/externalModules/importNonStringLiteral.ts(2,22): error TS1141: String literal expected.
|
||||
tests/cases/conformance/externalModules/importNonStringLiteral.ts(2,23): error TS1005: ';' expected.
|
||||
|
||||
|
||||
==== tests/cases/conformance/externalModules/importNonStringLiteral.ts (2 errors) ====
|
||||
==== tests/cases/conformance/externalModules/importNonStringLiteral.ts (1 errors) ====
|
||||
var x = "filename";
|
||||
import foo = require(x); // invalid
|
||||
~
|
||||
!!! error TS1141: String literal expected.
|
||||
~
|
||||
!!! error TS1005: ';' expected.
|
||||
|
||||
Reference in new issue
Block a user