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(
43764376 // If `contextToken !== previousToken`, this is `class C ex/**/`, `interface I ex/**/` or `<T ex/**/>`.
43774377 ! ((ast .IsClassLike (parent ) || ast .IsInterfaceDeclaration (parent ) || ast .IsTypeParameterDeclaration (parent )) &&
43784378 (contextToken != previousToken || position > previousToken .End ()))
4379-
43804379}
43814380
43824381func 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/;`,
19661966 },
19671967 expectedResult : map [string ]* testCaseResult {
19681968 "openString1" : {
1969- list : & lsproto.CompletionList {
1970- IsIncomplete : false ,
1971- ItemDefaults : itemDefaults ,
1972- Items : []* lsproto.CompletionItem {},
1973- },
1969+ list : nil ,
19741970 },
19751971 "openString2" : {
1976- list : & lsproto.CompletionList {
1977- IsIncomplete : false ,
1978- ItemDefaults : itemDefaults ,
1979- Items : []* lsproto.CompletionItem {},
1980- },
1972+ list : nil ,
19811973 },
19821974 "openString3" : {
1983- list : & lsproto.CompletionList {
1984- IsIncomplete : false ,
1985- ItemDefaults : itemDefaults ,
1986- Items : []* lsproto.CompletionItem {},
1987- },
1975+ list : nil ,
19881976 },
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+ // },
19891999 },
19902000 },
19912001 }
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ func tryGetImportFromModuleSpecifier(node *ast.StringLiteralLike) *ast.Node {
5858 return nil
5959}
6060
61- // !!!
61+ // !!! formatting function
6262func isInComment (file * ast.SourceFile , position int , tokenAtPosition * ast.Node ) * ast.CommentRange {
6363 return nil
6464}
You can’t perform that action at this time.
0 commit comments