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 @@ -1966,26 +1966,36 @@ var v10 = /reg/*inRegExp1*/ex/;`,
1966
1966
},
1967
1967
expectedResult : map [string ]* testCaseResult {
1968
1968
"openString1" : {
1969
- list : & lsproto.CompletionList {
1970
- IsIncomplete : false ,
1971
- ItemDefaults : itemDefaults ,
1972
- Items : []* lsproto.CompletionItem {},
1973
- },
1969
+ list : nil ,
1974
1970
},
1975
1971
"openString2" : {
1976
- list : & lsproto.CompletionList {
1977
- IsIncomplete : false ,
1978
- ItemDefaults : itemDefaults ,
1979
- Items : []* lsproto.CompletionItem {},
1980
- },
1972
+ list : nil ,
1981
1973
},
1982
1974
"openString3" : {
1983
- list : & lsproto.CompletionList {
1984
- IsIncomplete : false ,
1985
- ItemDefaults : itemDefaults ,
1986
- Items : []* lsproto.CompletionItem {},
1987
- },
1975
+ list : nil ,
1988
1976
},
1977
+ // !!! isInComment
1978
+ // "inComment1": {
1979
+ // list: nil,
1980
+ // },
1981
+ // "inComment2": {
1982
+ // list: nil,
1983
+ // },
1984
+ // "inComment3": {
1985
+ // list: nil,
1986
+ // },
1987
+ // "inComment4": {
1988
+ // list: nil,
1989
+ // },
1990
+ // "inComment5": {
1991
+ // list: nil,
1992
+ // },
1993
+ // "inTypeAlias": {
1994
+ // list: nil,
1995
+ // },
1996
+ // "inRegExp1": {
1997
+ // list: nil,
1998
+ // },
1989
1999
},
1990
2000
},
1991
2001
}
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