mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Encorporting feedback
This commit is contained in:
1 parent
b62f5b0dae
commit
65a48ca15d
3 files changed
+6
-8
No files matched your search
@@ -749,13 +749,9 @@ namespace ts.Completions {
|
||||
}
|
||||
|
||||
function isContextTokenValueLocation(contextToken: Node) {
|
||||
if (contextToken) {
|
||||
const parentKind = contextToken.parent.kind;
|
||||
switch (contextToken.kind) {
|
||||
case SyntaxKind.TypeOfKeyword:
|
||||
return parentKind === SyntaxKind.TypeQuery;
|
||||
}
|
||||
}
|
||||
return contextToken &&
|
||||
contextToken.kind === SyntaxKind.TypeOfKeyword &&
|
||||
contextToken.parent.kind === SyntaxKind.TypeQuery;
|
||||
}
|
||||
|
||||
function isContextTokenTypeLocation(contextToken: Node) {
|
||||
|
||||
Reference in new issue
Block a user