File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -556,9 +556,7 @@ module ts {
556
556
if ( node . kind === kind ) {
557
557
return node ;
558
558
}
559
- else {
560
- node = node . parent ;
561
- }
559
+ node = node . parent ;
562
560
}
563
561
break ;
564
562
}
Original file line number Diff line number Diff line change @@ -1790,7 +1790,7 @@ module ts {
1790
1790
return false ;
1791
1791
}
1792
1792
1793
- function isToken ( kind : SyntaxKind ) {
1793
+ function isPunctuation ( kind : SyntaxKind ) {
1794
1794
return ( SyntaxKind . FirstPunctuation <= kind && kind <= SyntaxKind . LastPunctuation ) ;
1795
1795
}
1796
1796
@@ -1883,7 +1883,7 @@ module ts {
1883
1883
1884
1884
// TODO: this is a hack for now, we need a proper walking mechanism to verify that we have the correct node
1885
1885
var mappedNode = getNodeAtPosition ( sourceFile , TypeScript . end ( node ) - 1 ) ;
1886
- if ( isToken ( mappedNode . kind ) ) {
1886
+ if ( isPunctuation ( mappedNode . kind ) ) {
1887
1887
mappedNode = mappedNode . parent ;
1888
1888
}
1889
1889
@@ -1905,7 +1905,6 @@ module ts {
1905
1905
var containingClass = getAncestor ( mappedNode , SyntaxKind . ClassDeclaration ) ;
1906
1906
isMemberCompletion = true ;
1907
1907
1908
-
1909
1908
if ( mappedNode . kind === SyntaxKind . Identifier || mappedNode . kind === SyntaxKind . QualifiedName || mappedNode . kind === SyntaxKind . PropertyAccess ) {
1910
1909
var symbol = typeInfoResolver . getSymbolInfo ( mappedNode ) ;
1911
1910
if ( symbol && symbol . flags & SymbolFlags . HasExports ) {
You can’t perform that action at this time.
0 commit comments