Merge branch 'master' into vfs

This commit is contained in:
Ron Buckton
2018-02-01 11:13:42 -08:00
13 changed files with 124 additions and 56 deletions

View File

@@ -1,6 +1,7 @@
/// <reference path="fourslash.ts" />
////class C/*a*/ /*b*/ { }
////class C e/*c*/ {}
// Tests that `isCompletionListBlocker` is true *at* the class name, but false *after* it.
@@ -9,3 +10,6 @@ verify.completionListIsEmpty();
goTo.marker("b");
verify.completionListContains("extends");
goTo.marker("c");
verify.completionListContains("extends");

View File

@@ -0,0 +1,10 @@
/// <reference path='fourslash.ts'/>
//// class [|C|] {}
//// [|export|] { [|C|] [|as|] [|D|] };
const [classRange, exportKeywordRange, propertyNameRange, asKeywordRange, nameRange] = test.ranges();
verify.noDocumentHighlights(exportKeywordRange);
verify.documentHighlightsOf(propertyNameRange, [classRange, propertyNameRange, nameRange]);
verify.noDocumentHighlights(asKeywordRange);
verify.documentHighlightsOf(nameRange, [nameRange]);

View File

@@ -0,0 +1,10 @@
/// <reference path='fourslash.ts'/>
//// class C {}
//// /*1*/export { C /*2*/as D };
goTo.marker("1");
verify.noReferences();
goTo.marker("2");
verify.noReferences();