AnalyzeSymbol -> AnalyzeOperation

master
neuecc 2021-08-27 16:51:39 +09:00
parent a1dee8b54f
commit 69be818a46
1 changed files with 2 additions and 2 deletions

View File

@ -27,10 +27,10 @@ namespace UniTask.Analyzer
context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None); context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
context.EnableConcurrentExecution(); context.EnableConcurrentExecution();
context.RegisterOperationAction(AnalyzeSymbol, OperationKind.Invocation); context.RegisterOperationAction(AnalyzeOperation, OperationKind.Invocation);
} }
private static void AnalyzeSymbol(OperationAnalysisContext context) private static void AnalyzeOperation(OperationAnalysisContext context)
{ {
var token = context.Compilation.GetTypeByMetadataName(typeof(CancellationToken).FullName); var token = context.Compilation.GetTypeByMetadataName(typeof(CancellationToken).FullName);
if (token == null) return; if (token == null) return;