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