File tree Expand file tree Collapse file tree
CSharpAnalyzers/Mirage.Analyzers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ private static void AnalyzeMethodDeclaration(SyntaxNodeAnalysisContext context)
3333 // MIRAGE1402: Missing base Call in OnSerialize/OnDeserialize
3434 if ( methodSymbol . IsOverride && ( methodSymbol . Name == "OnSerialize" || methodSymbol . Name == "OnDeserialize" ) )
3535 {
36- bool baseHierarchyHasSyncState = false ;
36+ var baseHierarchyHasSyncState = false ;
3737 var baseType = containingType . BaseType ;
3838 while ( baseType != null && ! MirageTypes . NetworkBehaviour . Is ( baseType ) && baseType . ToDisplayString ( ) != "object" )
3939 {
@@ -94,7 +94,7 @@ private void CheckNode(ExpressionSyntax node)
9494
9595 if ( symbol is IMethodSymbol methodSymbol )
9696 {
97- if ( MirageAttributes . ServerRpc . Has ( methodSymbol ) ||
97+ if ( MirageAttributes . ServerRpc . Has ( methodSymbol ) ||
9898 MirageAttributes . ClientRpc . Has ( methodSymbol ) ||
9999 MirageAttributes . Server . Has ( methodSymbol ) ||
100100 MirageAttributes . Client . Has ( methodSymbol ) ||
@@ -128,6 +128,7 @@ private void CheckNode(ExpressionSyntax node)
128128 }
129129 }
130130 }
131+ }
131132
132133 private class BaseCallWalker : CSharpSyntaxWalker
133134 {
You can’t perform that action at this time.
0 commit comments