Example #1
0
 public sealed override void Initialize(AnalysisContext context)
 {
     context.RegisterOperationActionParamsArrayInternal(
         (operationContext) =>
         {
             operationContext.ReportDiagnostic(
                 Diagnostic.Create(OperationActionInternalDescriptor, operationContext.Operation.Syntax.GetLocation(), "Operation", "Analysis"));
         },
         OperationKind.LiteralExpression);
 }