File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed
Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ public IEnumerable<ReferenceResult> FindReferences(LuaSymbol luaSymbol)
4242 referencesSet . AddReference ( result ) ;
4343 }
4444
45-
4645 return referencesSet . GetReferences ( ) ;
4746 }
4847
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public override void Check(DiagnosticContext context)
1616 foreach ( var indexExpr in document . SyntaxTree . SyntaxRoot . Descendants . OfType < LuaIndexExprSyntax > ( ) )
1717 {
1818 var prefixType = context . SearchContext . Infer ( indexExpr . PrefixExpr ) ;
19- if ( prefixType . IsSameType ( Builtin . Unknown , context . SearchContext ) || prefixType is LuaArrayType )
19+ if ( prefixType . SubTypeOf ( Builtin . Unknown , context . SearchContext ) || prefixType is LuaArrayType )
2020 {
2121 continue ;
2222 }
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ public static bool IsCodeDefaultEnable(DiagnosticCode code)
8585 DiagnosticCode . MissingReturn => true ,
8686 DiagnosticCode . TypeNotMatch => true ,
8787 DiagnosticCode . MissingParameter => true ,
88- DiagnosticCode . InjectFieldFail => true ,
88+ DiagnosticCode . InjectFieldFail => false ,
8989 DiagnosticCode . UnreachableCode => true ,
9090 DiagnosticCode . Unused => true ,
9191 DiagnosticCode . UndefinedGlobal => true ,
You can’t perform that action at this time.
0 commit comments