public static MemberAccessExpressionSyntax MemberAccess(NamedNode namedNode, string memberName)
 {
     return(MemberAccess((ExpressionSyntax)namedNode, memberName));
 }
 public static ExpressionStatementSyntax Assignment(NamedNode left, ExpressionSyntax right)
 {
     return(Assignment(Syntax.IdentifierName(left.Name), right));
 }
 public static ReturnStatementSyntax Return(NamedNode namedNode)
 {
     return(Syntax.ReturnStatement(namedNode));
 }
示例#4
0
 public static ExpressionStatementSyntax Assignment(NamedNode left, NamedNode right)
 {
     return(Assignment(SyntaxFactory.IdentifierName(left.Name), SyntaxFactory.IdentifierName(right.Name)));
 }