Ejemplo n.º 1
0
 protected override void EnterArgumentsDefinition(PrinterContext context, ArgumentsDefinition argumentsDefinition)
 {
     if (argumentsDefinition.Count > 0)
     {
         context.Append('(');
     }
 }
    public static bool TryGet(
        this ArgumentsDefinition arguments,
        Name argumentName,
        [NotNullWhen(true)] out InputValueDefinition?argument)
    {
        argument = arguments.SingleOrDefault(a => a.Name == argumentName);

        return(argument is not null);
    }
Ejemplo n.º 3
0
    protected override void ExitArgumentsDefinition(PrinterContext context, ArgumentsDefinition argumentsDefinition)
    {
        if (argumentsDefinition.Count > 0)
        {
            context.Append(")");
        }

        if (context.Parent is FieldDefinition)
        {
            context.Append(": ");
        }
    }
Ejemplo n.º 4
0
 public DefinedFunction(string name, Numeric expr, ArgumentsDefinition def)
 {
     Name       = name;
     Expression = expr;
     Arguments  = def;
 }
Ejemplo n.º 5
0
        internal ArgsParsingResult(ArgumentsDefinition definition)
        {
            IsSuccess = true;

            this.definition = definition;
        }
 protected virtual void ExitArgumentsDefinition(TContext context, ArgumentsDefinition argumentsDefinition)
 {
 }