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); }
protected override void ExitArgumentsDefinition(PrinterContext context, ArgumentsDefinition argumentsDefinition) { if (argumentsDefinition.Count > 0) { context.Append(")"); } if (context.Parent is FieldDefinition) { context.Append(": "); } }
public DefinedFunction(string name, Numeric expr, ArgumentsDefinition def) { Name = name; Expression = expr; Arguments = def; }
internal ArgsParsingResult(ArgumentsDefinition definition) { IsSuccess = true; this.definition = definition; }
protected virtual void ExitArgumentsDefinition(TContext context, ArgumentsDefinition argumentsDefinition) { }