mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06:00
Account for typeof expressions, added test.
This commit is contained in:
parent
f2a7367e9b
commit
ad084ded72
@ -160,8 +160,10 @@ module ts {
|
||||
}
|
||||
return isCompletedNode((<DoStatement>n).statement, sourceFile);
|
||||
|
||||
case SyntaxKind.TypeOfExpression:
|
||||
return isCompletedNode((<TypeOfExpression>n).expression, sourceFile);
|
||||
case SyntaxKind.PrefixUnaryExpression:
|
||||
return isCompletedNode(<PrefixUnaryExpression>n, sourceFile);
|
||||
return isCompletedNode((<PrefixUnaryExpression>n).operand, sourceFile);
|
||||
case SyntaxKind.BinaryExpression:
|
||||
return isCompletedNode((<BinaryExpression>n).right, sourceFile);
|
||||
case SyntaxKind.ConditionalExpression:
|
||||
|
||||
@ -5,7 +5,6 @@
|
||||
//// [foo: string]: typeof /*1*/
|
||||
////}
|
||||
|
||||
|
||||
goTo.marker("1");
|
||||
verify.completionListContains("foo");
|
||||
verify.completionListContains("C");
|
||||
@ -0,0 +1,10 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
|
||||
////class C {
|
||||
//// [foo: string]: { x: typeof /*1*/
|
||||
////}
|
||||
|
||||
goTo.marker("1");
|
||||
verify.completionListContains("foo");
|
||||
verify.completionListContains("C");
|
||||
Loading…
x
Reference in New Issue
Block a user