private static ParameterDeclaration?ParseParameterDeclaration(ASTNode argument) { return(argument switch { IdentifierNode identifierNode => new ParameterDeclaration(identifierNode.TextValue), BinaryASTNode binaryNode => ParseArgumentDefinition(binaryNode), _ => throw new NotImplementedException(), });
public IEnumerable <bool> Transform(BinaryASTNode item) { return(TransformAll(item.Left.YieldOne().Concat(item.Right))); }
public object?Transform(BinaryASTNode item) { return(item.Operator.Transform(OperatorTransformer, new[] { item.Left, item.Right })); }
public Expression Transform(BinaryASTNode item) { return(item.Operator.Transform(OperatorTransformer, new ASTNode[] { item.Left, item.Right })); }