ReplacePropertyWithMethods\AbstractReplacePropertyWithMethodsService.cs (20)
164var literalOne = replacer.Generator.LiteralExpression(1);
167? replacer.Generator.AddExpression(readExpression, literalOne)
168: replacer.Generator.SubtractExpression(readExpression, literalOne);
196writeExpression = replacer.Generator.ExpressionStatement(writeExpression);
259var newDeclarator = Generator.NamedAnonymousObjectMemberDeclarator(
308newIdentifierToken = Generator.Identifier(_desiredGetMethodName);
313newIdentifierToken = Generator.Identifier(_desiredSetMethodName);
314parameterType = Generator.TypeExpression(_property.Type);
326? Generator.TypeExpression(_property.ContainingType)
327: Generator.ThisExpression();
329return Generator.MemberAccessExpression(container, newIdentifierName)
341var newIdentifierToken = AddConflictAnnotation(Generator.Identifier(_propertyBackingField.Name), conflictMessage);
342var newIdentifierName = QualifyIfAppropriate(_propertyBackingField, Generator.IdentifierName(newIdentifierToken));
364var newIdentifierToken = AddConflictAnnotation(Generator.Identifier(_propertyBackingField.Name), conflictMessage);
365var newIdentifierName = QualifyIfAppropriate(_propertyBackingField, Generator.IdentifierName(newIdentifierToken));
372return Generator.AssignmentStatement(
392Generator.Identifier(desiredName), conflictMessage);
394var newIdentifierName = Generator.IdentifierName(newIdentifier);
406var invocation = Generator.InvocationExpression(updatedExpression, arguments);
423argument: Generator.Argument(writeValue),