Bike.Parser.Parser.ParseStatementBlock C# (CSharp) Method

ParseStatementBlock() public method

public ParseStatementBlock ( ) : StatementBlock
return StatementBlock
        public StatementBlock ParseStatementBlock()
        {
            var block = new StatementBlock { Token = Next() };
            Match(TokenType.LeftBrace);
            while (Next().IsNot(TokenType.RightBrace))
                block.Statements.Add(ParseStatement());
            Match(TokenType.RightBrace);
            return block;
        }