19 references to Generator
Microsoft.CodeAnalysis.Features (19)
ReplacePropertyWithMethods\AbstractReplacePropertyWithMethodsService.cs (19)
163
var literalOne = replacer.
Generator
.LiteralExpression(1);
166
? replacer.
Generator
.AddExpression(readExpression, literalOne)
167
: replacer.
Generator
.SubtractExpression(readExpression, literalOne);
258
var newDeclarator =
Generator
.NamedAnonymousObjectMemberDeclarator(
307
newIdentifierToken =
Generator
.Identifier(_desiredGetMethodName);
312
newIdentifierToken =
Generator
.Identifier(_desiredSetMethodName);
313
parameterType =
Generator
.TypeExpression(_property.Type);
325
?
Generator
.TypeExpression(_property.ContainingType)
326
:
Generator
.ThisExpression();
328
return
Generator
.MemberAccessExpression(container, newIdentifierName)
340
var newIdentifierToken = AddConflictAnnotation(
Generator
.Identifier(_propertyBackingField.Name), conflictMessage);
341
var newIdentifierName = QualifyIfAppropriate(
Generator
.IdentifierName(newIdentifierToken));
363
var newIdentifierToken = AddConflictAnnotation(
Generator
.Identifier(_propertyBackingField.Name), conflictMessage);
364
var newIdentifierName = QualifyIfAppropriate(
Generator
.IdentifierName(newIdentifierToken));
371
return
Generator
.AssignmentStatement(
391
Generator
.Identifier(desiredName), conflictMessage);
393
var newIdentifierName =
Generator
.IdentifierName(newIdentifier);
405
var invocation =
Generator
.InvocationExpression(updatedExpression, arguments);
421
argument:
Generator
.Argument(writeValue),