Skip to content

Commit 3b9ead7

Browse files
committed
fix compile error
1 parent 155ba9e commit 3b9ead7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

CSharpAnalyzers/Mirage.Analyzers/MirageAnalyzer.Lifecycles.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)