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