UnityScript.Parser.UnityScriptParser.hash_literal C# (CSharp) Method

hash_literal() public method

public hash_literal ( ) : HashLiteralExpression
return HashLiteralExpression
        public HashLiteralExpression hash_literal()
        {
            HashLiteralExpression expression = null;
            IToken token = null;
            ExpressionPair pair = null;
            try
            {
                token = this.LT(1);
                this.match(0x3d);
                if (base.inputState.guessing == 0)
                {
                    expression = new HashLiteralExpression(ToLexicalInfo(token));
                }
                switch (this.LA(1))
                {
                    case 12:
                    case 15:
                    case 0x13:
                    case 0x1b:
                    case 0x1d:
                    case 0x27:
                    case 40:
                    case 0x2a:
                    case 0x2c:
                    case 0x3b:
                    case 60:
                    case 0x3d:
                    case 0x3f:
                    case 0x44:
                    case 0x4f:
                    case 80:
                    case 0x52:
                    case 0x58:
                    case 0x67:
                    case 0x69:
                    case 0x6a:
                    case 0x6b:
                    case 0x6c:
                    case 0x6d:
                        pair = this.expression_pair();
                        if (base.inputState.guessing == 0)
                        {
                            expression.get_Items().Add(pair);
                        }
                        while (this.LA(1) == 0x43)
                        {
                            this.match(0x43);
                            pair = this.expression_pair();
                            if (base.inputState.guessing == 0)
                            {
                                expression.get_Items().Add(pair);
                            }
                        }
                        break;

                    case 0x3e:
                        break;

                    default:
                        throw new NoViableAltException(this.LT(1), this.getFilename());
                }
                this.match(0x3e);
            }
            catch (RecognitionException exception)
            {
                if (base.inputState.guessing != 0)
                {
                    throw;
                }
                this.reportError(exception);
                this.recover(exception, tokenSet_20_);
                return expression;
            }
            return expression;
        }
UnityScriptParser