mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-12 01:48:33 -05:00
add new unit test for getScriptLexicalStructure
This commit is contained in:
12
tests/cases/fourslash/scriptLexicalStructureItems2.ts
Normal file
12
tests/cases/fourslash/scriptLexicalStructureItems2.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/// <reference path="fourslash.ts"/>
|
||||
|
||||
|
||||
/////**/
|
||||
|
||||
goTo.marker();
|
||||
edit.insertLine("module A");
|
||||
edit.insert("export class ");
|
||||
|
||||
// should not crash
|
||||
verify.getScriptLexicalStructureListCount(1);
|
||||
|
||||
Reference in New Issue
Block a user