mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Support for builder in modules + tests
This commit is contained in:
@@ -2376,6 +2376,10 @@ module ts {
|
||||
return containingNodeKind === SyntaxKind.CallExpression;
|
||||
case SyntaxKind.OpenParenToken:
|
||||
return containingNodeKind === SyntaxKind.CallExpression;
|
||||
case SyntaxKind.ModuleKeyword:
|
||||
return true;
|
||||
case SyntaxKind.DotToken:
|
||||
return containingNodeKind === SyntaxKind.ModuleDeclaration;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2478,7 +2482,6 @@ module ts {
|
||||
return containingNodeKind === SyntaxKind.Parameter || containingNodeKind === SyntaxKind.PropertyDeclaration;
|
||||
|
||||
case SyntaxKind.ClassKeyword:
|
||||
case SyntaxKind.ModuleKeyword:
|
||||
case SyntaxKind.EnumKeyword:
|
||||
case SyntaxKind.InterfaceKeyword:
|
||||
case SyntaxKind.FunctionKeyword:
|
||||
@@ -2494,7 +2497,6 @@ module ts {
|
||||
case "class":
|
||||
case "interface":
|
||||
case "enum":
|
||||
case "module":
|
||||
case "function":
|
||||
case "var":
|
||||
// TODO: add let and const
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
////module A/*moduleName1*/
|
||||
|
||||
|
||||
////module A./*moduleName2*/
|
||||
|
||||
|
||||
test.markers().forEach((m) => {
|
||||
goTo.position(m.position, m.fileName);
|
||||
verify.not.completionListIsEmpty();
|
||||
debugger;
|
||||
verify.completionListIsBuilder();
|
||||
});
|
||||
Reference in New Issue
Block a user