2 instantiations of FixArgument
Microsoft.CodeAnalysis.NetAnalyzers (2)
Microsoft.NetCore.Analyzers\Runtime\InstantiateArgumentExceptionsCorrectly.Fixer.cs (2)
199
public static FixArgument Generated(SyntaxNode node) => new
FixArgument
(node, carriedOver: false);
201
public static FixArgument CarriedOver(SyntaxNode node) => new
FixArgument
(node, carriedOver: true);
11 references to FixArgument
Microsoft.CodeAnalysis.NetAnalyzers (11)
Microsoft.NetCore.Analyzers\Runtime\InstantiateArgumentExceptionsCorrectly.Fixer.cs (11)
79
FixArgument
nullMessage =
FixArgument
.Generated(generator.Argument(generator.NullLiteralExpression()));
90
FixArgument
parameter = GetArgument(creation, generator, paramPosition, nameOf: true);
143
private static
FixArgument
GetArgument(IObjectCreationOperation creation, SyntaxGenerator generator, int parameterIndex, bool nameOf = false)
149
return
FixArgument
.Generated(generator.NameOfExpression(generator.IdentifierName(constant.ToString())));
152
return
FixArgument
.CarriedOver(value.Syntax);
155
private static void ReplaceCreation(SyntaxEditor editor, IObjectCreationOperation creation, params
FixArgument
[] arguments)
162
foreach (
FixArgument
argument in arguments)
177
FixArgument
argument = arguments[i];
199
public static
FixArgument
Generated(SyntaxNode node) => new FixArgument(node, carriedOver: false);
201
public static
FixArgument
CarriedOver(SyntaxNode node) => new FixArgument(node, carriedOver: true);