Exemple #1
0
 protected override void InitializeWorker(AnalysisContext context)
 => context.RegisterSyntaxNodeAction(
     AnalyzeSyntax,
     _syntaxKinds.Convert <TSyntaxKind>(_syntaxKinds.AnonymousObjectCreationExpression));
Exemple #2
0
 private string GetTitle(ISyntaxKindsService syntaxKinds, int binaryExprKind)
 => string.Format(FeaturesResources.Replace_0_with_1,
                  GetOperatorText(syntaxKinds.Convert <TSyntaxKind>(binaryExprKind)),
                  GetOperatorText(syntaxKinds.Convert <TSyntaxKind>(InvertedKind(syntaxKinds, binaryExprKind))));