Antlr4.StringTemplate.Compiler.CompiledTemplate.AddArgument C# (CSharp) Method

AddArgument() public method

public AddArgument ( Antlr4.StringTemplate.Compiler.FormalArgument a ) : void
a Antlr4.StringTemplate.Compiler.FormalArgument
return void
        public virtual void AddArgument(FormalArgument a)
        {
            if (FormalArguments == null)
                FormalArguments = new List<FormalArgument>();

            a.Index = FormalArguments.Count;
            FormalArguments.Add(a);
            if (a.DefaultValueToken != null)
                _numberOfArgsWithDefaultValues++;
        }