File tree Expand file tree Collapse file tree 3 files changed +26
-17
lines changed Expand file tree Collapse file tree 3 files changed +26
-17
lines changed Original file line number Diff line number Diff line change @@ -4376,7 +4376,6 @@ func isSolelyIdentifierDefinitionLocation(
4376
4376
// If `contextToken !== previousToken`, this is `class C ex/**/`, `interface I ex/**/` or `<T ex/**/>`.
4377
4377
! ((ast .IsClassLike (parent ) || ast .IsInterfaceDeclaration (parent ) || ast .IsTypeParameterDeclaration (parent )) &&
4378
4378
(contextToken != previousToken || position > previousToken .End ()))
4379
-
4380
4379
}
4381
4380
4382
4381
func isVariableDeclarationListButNotTypeArgument (node * ast.Node , file * ast.SourceFile , typeChecker * checker.Checker ) bool {
Original file line number Diff line number Diff line change @@ -1895,26 +1895,36 @@ var v10 = /reg/*inRegExp1*/ex/;`,
1895
1895
},
1896
1896
expectedResult : map [string ]* testCaseResult {
1897
1897
"openString1" : {
1898
- list : & lsproto.CompletionList {
1899
- IsIncomplete : false ,
1900
- ItemDefaults : itemDefaults ,
1901
- Items : []* lsproto.CompletionItem {},
1902
- },
1898
+ list : nil ,
1903
1899
},
1904
1900
"openString2" : {
1905
- list : & lsproto.CompletionList {
1906
- IsIncomplete : false ,
1907
- ItemDefaults : itemDefaults ,
1908
- Items : []* lsproto.CompletionItem {},
1909
- },
1901
+ list : nil ,
1910
1902
},
1911
1903
"openString3" : {
1912
- list : & lsproto.CompletionList {
1913
- IsIncomplete : false ,
1914
- ItemDefaults : itemDefaults ,
1915
- Items : []* lsproto.CompletionItem {},
1916
- },
1904
+ list : nil ,
1917
1905
},
1906
+ // !!! isInComment
1907
+ // "inComment1": {
1908
+ // list: nil,
1909
+ // },
1910
+ // "inComment2": {
1911
+ // list: nil,
1912
+ // },
1913
+ // "inComment3": {
1914
+ // list: nil,
1915
+ // },
1916
+ // "inComment4": {
1917
+ // list: nil,
1918
+ // },
1919
+ // "inComment5": {
1920
+ // list: nil,
1921
+ // },
1922
+ // "inTypeAlias": {
1923
+ // list: nil,
1924
+ // },
1925
+ // "inRegExp1": {
1926
+ // list: nil,
1927
+ // },
1918
1928
},
1919
1929
},
1920
1930
}
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ func tryGetImportFromModuleSpecifier(node *ast.StringLiteralLike) *ast.Node {
58
58
return nil
59
59
}
60
60
61
- // !!!
61
+ // !!! formatting function
62
62
func isInComment (file * ast.SourceFile , position int , tokenAtPosition * ast.Node ) * ast.CommentRange {
63
63
return nil
64
64
}
You can’t perform that action at this time.
0 commit comments