File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ type TsScopeBuilder struct {
1919 unresolvedRefs []UnresolvedRef
2020}
2121
22- func (j * TsScopeBuilder ) GetLanguage () Language {
22+ func (* TsScopeBuilder ) GetLanguage () Language {
2323 return LangJs
2424}
2525
@@ -37,11 +37,11 @@ var ScopeNodes = []string{
3737 "method_definition" ,
3838}
3939
40- func (ts * TsScopeBuilder ) NodeCreatesScope (node * sitter.Node ) bool {
40+ func (* TsScopeBuilder ) NodeCreatesScope (node * sitter.Node ) bool {
4141 return slices .Contains (ScopeNodes , node .Type ())
4242}
4343
44- func (ts * TsScopeBuilder ) DeclaresVariable (node * sitter.Node ) bool {
44+ func (* TsScopeBuilder ) DeclaresVariable (node * sitter.Node ) bool {
4545 typ := node .Type ()
4646 return typ == "variable_declarator" ||
4747 typ == "import_clause" ||
Original file line number Diff line number Diff line change @@ -405,7 +405,7 @@ func GatherSkipInfo(fileContext *ParseResult) []*SkipComment {
405405 return skipLines
406406}
407407
408- func (ana * Analyzer ) ContainsSkipcq (skipLines []* SkipComment , issue * Issue ) bool {
408+ func (* Analyzer ) ContainsSkipcq (skipLines []* SkipComment , issue * Issue ) bool {
409409 if len (skipLines ) == 0 {
410410 return false
411411 }
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ type TsScopeBuilder struct {
1919 unresolvedRefs []UnresolvedRef
2020}
2121
22- func (j * TsScopeBuilder ) GetLanguage () Language {
22+ func (* TsScopeBuilder ) GetLanguage () Language {
2323 return LangJs
2424}
2525
@@ -33,11 +33,11 @@ var ScopeNodes = []string{
3333 "program" ,
3434}
3535
36- func (ts * TsScopeBuilder ) NodeCreatesScope (node * sitter.Node ) bool {
36+ func (* TsScopeBuilder ) NodeCreatesScope (node * sitter.Node ) bool {
3737 return slices .Contains (ScopeNodes , node .Type ())
3838}
3939
40- func (ts * TsScopeBuilder ) DeclaresVariable (node * sitter.Node ) bool {
40+ func (* TsScopeBuilder ) DeclaresVariable (node * sitter.Node ) bool {
4141 typ := node .Type ()
4242 // addition of function_declaration and formal_parameters necessary for functional scope handling.
4343 return typ == "variable_declarator" || typ == "import_clause" || typ == "import_specifier" || typ == "formal_parameters" || typ == "function_declaration"
You can’t perform that action at this time.
0 commit comments