AnalyzeSymbol -> AnalyzeOperation
parent
a1dee8b54f
commit
69be818a46
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue