1 write to Generator
Microsoft.CodeAnalysis.Workspaces (1)
Editing\SyntaxEditor.cs (1)
89Generator = generator;
170 references to Generator
ILLink.CodeFixProvider (2)
BaseAttributeCodeFixProvider.cs (1)
73 var generator = editor.Generator;
DynamicallyAccessedMembersCodeFixProvider.cs (1)
134 var generator = editor.Generator;
Microsoft.Analyzers.Extra (2)
CallAnalysis\Fixers\LegacyLoggingFixer.cs (2)
474var gen = docEditor.Generator; 584var gen = docEditor.Generator;
Microsoft.CodeAnalysis.CodeStyle.Fixes (24)
src\Analyzers\Core\CodeFixes\AddAccessibilityModifiers\AddAccessibilityModifiersHelpers.cs (1)
31var generator = editor.Generator;
src\Analyzers\Core\CodeFixes\AddObsoleteAttribute\AbstractAddObsoleteAttributeCodeFixProvider.cs (2)
86var generator = editor.Generator; 90generator.Attribute(editor.Generator.TypeExpression(obsoleteAttribute)));
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
115var generator = editor.Generator;
src\Analyzers\Core\CodeFixes\ConvertTypeOfToNameOf\AbstractConvertTypeOfToNameOfCodeFixProvider.cs (1)
54var nameOfSyntax = editor.Generator.NameOfExpression(typeExpression);
src\Analyzers\Core\CodeFixes\ForEachCast\AbstractForEachCastCodeFixProvider.cs (1)
76var rewritten = GetRewrittenCollection(editor.Generator, expression, variableDeclarator.Symbol.Type, conversion);
src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (2)
59var generator = editor.Generator; 69var modifiers = WithReadOnly(editor.Generator.GetModifiers(fieldDeclaration));
src\Analyzers\Core\CodeFixes\MakeTypePartial\AbstractMakeTypePartialCodeFixProvider.cs (1)
32var generator = editor.Generator;
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchCodeFixProvider.cs (1)
173var generator = editor.Generator;
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (1)
68var generator = editor.Generator;
src\Analyzers\Core\CodeFixes\RemoveRedundantEquality\RemoveRedundantEqualityCodeFixProvider.cs (1)
39var generator = editor.Generator;
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (2)
429var localDecl = editor.Generator.LocalDeclarationStatement( 687=> (TLocalDeclarationStatementSyntax)editor.Generator.LocalDeclarationStatement(type, name)
src\Analyzers\Core\CodeFixes\SimplifyInterpolation\AbstractSimplifyInterpolationCodeFixProvider.cs (1)
54var generator = editor.Generator;
src\Analyzers\Core\CodeFixes\UnsealClass\AbstractUnsealClassCodeFixProvider.cs (1)
67var generator = editor.Generator;
src\Analyzers\Core\CodeFixes\UpdateLegacySuppressions\UpdateLegacySuppressionsCodeFixProvider.cs (1)
47editor.ReplaceNode(node, editor.Generator.LiteralExpression(newDocCommentId).WithTriviaFrom(node));
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\AbstractUseCoalesceExpressionForIfNullStatementCheckCodeFixProvider.cs (1)
40var generator = editor.Generator;
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForNullableTernaryConditionalCheckCodeFixProvider.cs (1)
46var generator = editor.Generator;
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (1)
107var generator = editor.Generator;
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForReturn\AbstractUseConditionalExpressionForReturnCodeFixProvider.cs (1)
79: (TStatementSyntax)editor.Generator.ReturnStatement(conditionalExpression);
src\Analyzers\Core\CodeFixes\UseExplicitTupleName\UseExplicitTupleNameCodeFixProvider.cs (1)
38var generator = editor.Generator;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\AddParameterEditor.cs (1)
26var generator = editor.Generator;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\AbstractInitializerParameterService.cs (1)
145var generator = editor.Generator;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (17)
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AssignOutParametersAboveReturnCodeFixProvider.cs (2)
38var statements = GenerateAssignmentStatements(editor.Generator, unassignedParameters); 46var generator = editor.Generator;
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AssignOutParametersAtStartCodeFixProvider.cs (1)
60var generator = editor.Generator;
src\Analyzers\CSharp\CodeFixes\MakeAnonymousFunctionStatic\CSharpMakeAnonymousFunctionStaticCodeFixProvider.cs (1)
40var generator = editor.Generator;
src\Analyzers\CSharp\CodeFixes\MakeMemberRequired\CSharpMakeMemberRequiredCodeFixProvider.cs (1)
110var generator = editor.Generator;
src\Analyzers\CSharp\CodeFixes\MakeStructFieldsWritable\CSharpMakeStructFieldsWritableCodeFixProvider.cs (1)
54var fieldDeclarationModifiers = editor.Generator.GetModifiers(fieldDeclaration);
src\Analyzers\CSharp\CodeFixes\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyCodeFixProvider.cs (1)
41var generator = editor.Generator;
src\Analyzers\CSharp\CodeFixes\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionCodeFixProvider.cs (1)
64var generator = editor.Generator;
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryDiscardDesignation\CSharpRemoveUnnecessaryDiscardDesignationCodeFixProvider.cs (1)
38var generator = editor.Generator;
src\Analyzers\CSharp\CodeFixes\RemoveUnusedParametersAndValues\CSharpRemoveUnusedValuesCodeFixProvider.cs (2)
218return editor.Generator.AssignmentStatement(newAssignmentTarget, rightOfAssignment); 225return editor.Generator.AssignmentStatement(newAssignmentTarget,
src\Analyzers\CSharp\CodeFixes\UseNameofInAttribute\CSharpUseNameofInAttributeCodeFixProvider.cs (2)
50editor.Generator.NameOfExpression(editor.Generator.IdentifierName(name)).WithTriviaFrom(expression));
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpUseNotPatternCodeFixProvider.cs (1)
57var negated = editor.Generator.Negate(
src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockCodeFixProvider.cs (1)
97var generator = editor.Generator;
src\Analyzers\CSharp\CodeFixes\UseThrowExpression\UseThrowExpressionCodeFixProvider.cs (1)
43var generator = editor.Generator;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\CSharpInitializeParameterService.cs (1)
54var generator = editor.Generator;
Microsoft.CodeAnalysis.CSharp.Features (21)
ConvertForEachToFor\CSharpConvertForEachToForCodeRefactoringProvider.cs (1)
61var generator = editor.Generator;
ImplementInterface\CSharpImplementExplicitlyCodeRefactoringProvider.cs (1)
126var generator = editor.Generator;
IntroduceVariable\CSharpIntroduceVariableService_IntroduceLocal.cs (1)
317var replacement = editor.Generator.AddParentheses(newLocalName, includeElasticTrivia: false);
ReplaceMethodWithProperty\CSharpReplaceMethodWithPropertyService.cs (1)
56semanticModel, editor.Generator,
ReverseForStatement\CSharpReverseForStatementCodeRefactoringProvider.cs (1)
273var generator = editor.Generator;
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AssignOutParametersAboveReturnCodeFixProvider.cs (2)
38var statements = GenerateAssignmentStatements(editor.Generator, unassignedParameters); 46var generator = editor.Generator;
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AssignOutParametersAtStartCodeFixProvider.cs (1)
60var generator = editor.Generator;
src\Analyzers\CSharp\CodeFixes\MakeAnonymousFunctionStatic\CSharpMakeAnonymousFunctionStaticCodeFixProvider.cs (1)
40var generator = editor.Generator;
src\Analyzers\CSharp\CodeFixes\MakeMemberRequired\CSharpMakeMemberRequiredCodeFixProvider.cs (1)
110var generator = editor.Generator;
src\Analyzers\CSharp\CodeFixes\MakeStructFieldsWritable\CSharpMakeStructFieldsWritableCodeFixProvider.cs (1)
54var fieldDeclarationModifiers = editor.Generator.GetModifiers(fieldDeclaration);
src\Analyzers\CSharp\CodeFixes\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyCodeFixProvider.cs (1)
41var generator = editor.Generator;
src\Analyzers\CSharp\CodeFixes\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionCodeFixProvider.cs (1)
64var generator = editor.Generator;
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryDiscardDesignation\CSharpRemoveUnnecessaryDiscardDesignationCodeFixProvider.cs (1)
38var generator = editor.Generator;
src\Analyzers\CSharp\CodeFixes\RemoveUnusedParametersAndValues\CSharpRemoveUnusedValuesCodeFixProvider.cs (2)
218return editor.Generator.AssignmentStatement(newAssignmentTarget, rightOfAssignment); 225return editor.Generator.AssignmentStatement(newAssignmentTarget,
src\Analyzers\CSharp\CodeFixes\UseNameofInAttribute\CSharpUseNameofInAttributeCodeFixProvider.cs (2)
50editor.Generator.NameOfExpression(editor.Generator.IdentifierName(name)).WithTriviaFrom(expression));
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpUseNotPatternCodeFixProvider.cs (1)
57var negated = editor.Generator.Negate(
src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockCodeFixProvider.cs (1)
97var generator = editor.Generator;
src\Analyzers\CSharp\CodeFixes\UseThrowExpression\UseThrowExpressionCodeFixProvider.cs (1)
43var generator = editor.Generator;
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\CSharpInitializeParameterService.cs (1)
54var generator = editor.Generator;
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (14)
CodeGeneration\SymbolEditorTests.cs (14)
82var newSymbol = (INamedTypeSymbol)await editor.EditOneDeclarationAsync(symbol, (e, d) => e.AddMember(d, e.Generator.MethodDeclaration("m"))); 151var newSymbol = (INamedTypeSymbol)await editor.EditOneDeclarationAsync(symbol, (e, d) => e.AddMember(d, e.Generator.MethodDeclaration("m"))); 155newSymbol = (INamedTypeSymbol)await editor.EditOneDeclarationAsync(newSymbol, (e, d) => e.AddMember(d, e.Generator.MethodDeclaration("m2"))); 198var newSymbolA = (INamedTypeSymbol)await editor.EditOneDeclarationAsync(symbolA, (e, d) => e.AddMember(d, e.Generator.MethodDeclaration("ma"))); 201var newSymbolB = (INamedTypeSymbol)await editor.EditOneDeclarationAsync(symbolB, (e, d) => e.AddMember(d, e.Generator.MethodDeclaration("mb"))); 244var newSymbolA = (INamedTypeSymbol)await editor.EditOneDeclarationAsync(symbolA, (e, d) => e.AddMember(d, e.Generator.MethodDeclaration("ma"))); 247var newSymbolB = (INamedTypeSymbol)await editor.EditOneDeclarationAsync(symbolB, (e, d) => e.AddMember(d, e.Generator.MethodDeclaration("mb"))); 359var newSymbol = (INamedTypeSymbol)await editor.EditOneDeclarationAsync(symbol, location, (e, d) => e.AddMember(d, e.Generator.MethodDeclaration("m"))); 396var newSymbol = (INamedTypeSymbol)await editor.EditOneDeclarationAsync(symbol, location, (e, d) => e.AddMember(d, e.Generator.MethodDeclaration("m"))); 437var newSymbol = (INamedTypeSymbol)await editor.EditOneDeclarationAsync(symbol, location, (e, d) => e.AddMember(d, e.Generator.MethodDeclaration("m"))); 441var newSymbol2 = (INamedTypeSymbol)await editor.EditOneDeclarationAsync(newSymbol, location, (e, d) => e.AddMember(d, e.Generator.MethodDeclaration("m2"))); 483var newSymbol = (INamedTypeSymbol)await editor.EditOneDeclarationAsync(symbol, location, (e, d) => e.AddMember(d, e.Generator.MethodDeclaration("m"))); 488var newSymbol2 = (INamedTypeSymbol)await editor.EditOneDeclarationAsync(newSymbol, newLocation, (e, d) => e.AddMember(d, e.Generator.MethodDeclaration("m2"))); 533var newSymbol = (INamedTypeSymbol)await editor.EditOneDeclarationAsync(symbol, member, (e, d) => e.AddMember(d, e.Generator.MethodDeclaration("m2")));
Microsoft.CodeAnalysis.Features (46)
AddDebuggerDisplay\AbstractAddDebuggerDisplayCodeRefactoringProvider.cs (1)
119var generator = editor.Generator;
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeEditor.cs (1)
317documentEditor.Generator.GetModifiers(node) | DeclarationModifiers.Partial);
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeNamespaceScopeEditor.cs (1)
51var generator = editor.Generator;
ConvertAutoPropertyToFullProperty\AbstractConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (1)
82var generator = editor.Generator;
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (1)
113var generator = editor.Generator;
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (2)
363var nullCheckStatement = generateNullCheck(semanticModel, editor.Generator); 370editor.Generator.ElasticCarriageReturnLineFeed);
InitializeParameter\AbstractInitializeMemberFromParameterCodeRefactoringProviderMemberCreation.cs (1)
483var generator = editor.Generator;
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (3)
553var parenthesizedArgumentExpression = editor.Generator.AddParentheses(argumentExpression, includeElasticTrivia: false); 559var parenthesizedGeneratedExpression = editor.Generator.AddParentheses(generatedExpression, includeElasticTrivia: false); 631var generator = editor.Generator;
InvertConditional\AbstractInvertConditionalCodeRefactoringProvider.cs (3)
51editor.Generator.SyntaxFacts.GetPartsOfConditionalExpression(conditional, 54editor.ReplaceNode(condition, editor.Generator.Negate(editor.Generator.SyntaxGeneratorInternal, condition, semanticModel, cancellationToken));
MoveStaticMembers\MoveStaticMembersWithDialogCodeAction.cs (1)
267var generator = docEditor.Generator;
PreferFrameworkType\PreferFrameworkTypeCodeFixProvider.cs (1)
50var generator = editor.Generator;
PullMemberUp\MembersPuller.cs (5)
130originalMemberEditor.RemoveNode(originalMemberEditor.Generator.GetDeclaration(declaration)); 231var declaration = editor.Generator.GetDeclaration(eventDeclaration); 336.WithTrailingTrivia(originalMemberEditor.Generator.ElasticCarriageReturnLineFeed) 341originalMemberEditor.RemoveNode(originalMemberEditor.Generator.GetDeclaration(syntax)); 345var declarationSyntax = originalMemberEditor.Generator.GetDeclaration(syntax);
ReplacePropertyWithMethods\AbstractReplacePropertyWithMethodsService.cs (1)
201private SyntaxGenerator Generator => _editor.Generator;
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (2)
377members = members.SelectAsArray(m => editor.Generator.GetModifiers(m).IsAbstract 378? editor.Generator.AsInterfaceMember(m)
src\Analyzers\Core\CodeFixes\AddAccessibilityModifiers\AddAccessibilityModifiersHelpers.cs (1)
31var generator = editor.Generator;
src\Analyzers\Core\CodeFixes\AddObsoleteAttribute\AbstractAddObsoleteAttributeCodeFixProvider.cs (2)
86var generator = editor.Generator; 90generator.Attribute(editor.Generator.TypeExpression(obsoleteAttribute)));
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
115var generator = editor.Generator;
src\Analyzers\Core\CodeFixes\ConvertTypeOfToNameOf\AbstractConvertTypeOfToNameOfCodeFixProvider.cs (1)
54var nameOfSyntax = editor.Generator.NameOfExpression(typeExpression);
src\Analyzers\Core\CodeFixes\ForEachCast\AbstractForEachCastCodeFixProvider.cs (1)
76var rewritten = GetRewrittenCollection(editor.Generator, expression, variableDeclarator.Symbol.Type, conversion);
src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (2)
59var generator = editor.Generator; 69var modifiers = WithReadOnly(editor.Generator.GetModifiers(fieldDeclaration));
src\Analyzers\Core\CodeFixes\MakeTypePartial\AbstractMakeTypePartialCodeFixProvider.cs (1)
32var generator = editor.Generator;
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchCodeFixProvider.cs (1)
173var generator = editor.Generator;
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (1)
68var generator = editor.Generator;
src\Analyzers\Core\CodeFixes\RemoveRedundantEquality\RemoveRedundantEqualityCodeFixProvider.cs (1)
39var generator = editor.Generator;
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (2)
429var localDecl = editor.Generator.LocalDeclarationStatement( 687=> (TLocalDeclarationStatementSyntax)editor.Generator.LocalDeclarationStatement(type, name)
src\Analyzers\Core\CodeFixes\SimplifyInterpolation\AbstractSimplifyInterpolationCodeFixProvider.cs (1)
54var generator = editor.Generator;
src\Analyzers\Core\CodeFixes\UnsealClass\AbstractUnsealClassCodeFixProvider.cs (1)
67var generator = editor.Generator;
src\Analyzers\Core\CodeFixes\UpdateLegacySuppressions\UpdateLegacySuppressionsCodeFixProvider.cs (1)
47editor.ReplaceNode(node, editor.Generator.LiteralExpression(newDocCommentId).WithTriviaFrom(node));
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\AbstractUseCoalesceExpressionForIfNullStatementCheckCodeFixProvider.cs (1)
40var generator = editor.Generator;
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForNullableTernaryConditionalCheckCodeFixProvider.cs (1)
46var generator = editor.Generator;
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (1)
107var generator = editor.Generator;
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForReturn\AbstractUseConditionalExpressionForReturnCodeFixProvider.cs (1)
79: (TStatementSyntax)editor.Generator.ReturnStatement(conditionalExpression);
src\Analyzers\Core\CodeFixes\UseExplicitTupleName\UseExplicitTupleNameCodeFixProvider.cs (1)
38var generator = editor.Generator;
Microsoft.CodeAnalysis.VisualBasic.Features (2)
ConvertForEachToFor\VisualBasicConvertForEachToForCodeRefactoringProvider.vb (1)
48Dim generator = editor.Generator
ReplaceMethodWithProperty\VisualBasicReplaceMethodWithPropertyService.vb (1)
69Dim generator = editor.Generator
Microsoft.CodeAnalysis.Workspaces (5)
Editing\SymbolEditorExtensions.cs (2)
74(e, d) => e.ReplaceNode(typeRef, getNewBaseType(e.Generator)), 82var newBaseType = getNewBaseType(e.Generator);
Editing\SyntaxEditor.cs (1)
112newRoot = change.Apply(newRoot, Generator);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\AddParameterEditor.cs (1)
26var generator = editor.Generator;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\AbstractInitializerParameterService.cs (1)
145var generator = editor.Generator;
Microsoft.CodeAnalysis.Workspaces.UnitTests (22)
Editing\SyntaxEditorTests.cs (22)
51var fieldX = editor.Generator.GetMembers(cls)[0]; 52editor.ReplaceNode(fieldX, editor.Generator.FieldDeclaration("Y", editor.Generator.TypeExpression(SpecialType.System_String), Accessibility.Public)); 77var fieldX = editor.Generator.GetMembers(cls)[0]; 102var fieldX = editor.Generator.GetMembers(cls)[0]; 103editor.InsertAfter(fieldX, editor.Generator.FieldDeclaration("Y", editor.Generator.TypeExpression(SpecialType.System_String), Accessibility.Public)); 129var fieldX = editor.Generator.GetMembers(cls)[0]; 130editor.InsertBefore(fieldX, editor.Generator.FieldDeclaration("Y", editor.Generator.TypeExpression(SpecialType.System_String), Accessibility.Public)); 156var fieldX = editor.Generator.GetMembers(cls)[0]; 177var fieldX = editor.Generator.GetMembers(cls)[0]; 178editor.InsertAfter(fieldX, editor.Generator.FieldDeclaration("Y", editor.Generator.TypeExpression(SpecialType.System_String), Accessibility.Public)); 179editor.InsertBefore(fieldX, editor.Generator.FieldDeclaration("Z", editor.Generator.TypeExpression(SpecialType.System_Object), Accessibility.Public)); 223var methodX = (MethodDeclarationSyntax)editor.Generator.GetMembers(cls)[0]; 227var syntaxGenerator = editor.Generator; 267var methodX = (MethodDeclarationSyntax)editor.Generator.GetMembers(cls)[0]; 271var syntaxGenerator = editor.Generator; 312var methodX = editor.Generator.GetMembers(cls)[0]; 314var syntaxGenerator = editor.Generator;
Microsoft.Interop.ComInterfaceGenerator (2)
Analyzers\AddMarshalAsToElementFixer.cs (1)
49SyntaxGenerator gen = editor.Generator;
Analyzers\ConvertComImportToGeneratedComInterfaceFixer.cs (1)
74var gen = editor.Generator;
Microsoft.Interop.LibraryImportGenerator (11)
Analyzers\AddDisableRuntimeMarshallingAttributeFixer.cs (3)
64editor.Generator.AddAttributes( 66editor.Generator.Attribute(editor.Generator.DottedName(TypeNames.System_Runtime_CompilerServices_DisableRuntimeMarshallingAttribute))));
Analyzers\ConvertToLibraryImportFixer.cs (6)
167SyntaxGenerator generator = editor.Generator; 241generatedDeclaration = editor.Generator.AddParameters( 245editor.Generator.ParameterDeclaration("@return", editor.Generator.GetType(generatedDeclaration), refKind: RefKind.Out) 249generatedDeclaration = editor.Generator.WithType( 251editor.Generator.TypeExpression(editor.SemanticModel.Compilation.GetSpecialType(SpecialType.System_Int32)));
Analyzers\CustomMarshallerAttributeFixer.cs (2)
206SyntaxGenerator gen = editor.Generator; 402SyntaxGenerator gen = editor.Generator;
System.Text.RegularExpressions.Generator (1)
UpgradeToGeneratedRegexCodeFixer.cs (1)
156SyntaxGenerator generator = editor.Generator;