AjTalk.Compiler.Parser.CompileBlockArguments C# (CSharp) Метод

CompileBlockArguments() приватный Метод

private CompileBlockArguments ( ) : void
Результат void
        private void CompileBlockArguments()
        {
            Token token;
            int nparameters = 0;

            for (token = this.NextToken(); token != null && (token.Type == TokenType.Parameter || (token.Type == TokenType.Operator && token.Value == ":")); nparameters++, token = this.NextToken())
            {
                if (token.Type == TokenType.Parameter)
                    this.arguments.Add(token.Value);
                else
                    this.arguments.Add(this.CompileName());
            }

            if (nparameters > 0)
            {
                if (token == null)
                    throw new ParserException("Unexpected end of input");
                if (token.Type != TokenType.Punctuation || token.Value != "|")
                    throw new ParserException("Expected '|'");
            }
            else
                this.PushToken(token);
        }