Exemplo n.º 1
0
        public KeyValueAST ParseKeyValue()
        {
            KeyValueAST keyValueAst = new KeyValueAST();

            keyValueAst.key = this.ParseIdentifier();
            if (this.Tok() != TokenType.Eq)
            {
                throw new Exception(this.GetErrorMsg());
            }
            this.Inc();
            keyValueAst.value = this.ParseValue();
            this.SkipIf(TokenType.Semicolon);
            return(keyValueAst);
        }
Exemplo n.º 2
0
 public KeyValueAST ParseKeyValue()
 {
     KeyValueAST east = new KeyValueAST {
         key = this.ParseIdentifier()
     };
     if (this.Tok() != UnityEditor.iOS.Xcode.PBX.TokenType.Eq)
     {
         throw new Exception(this.GetErrorMsg());
     }
     this.Inc();
     east.value = this.ParseValue();
     this.SkipIf(UnityEditor.iOS.Xcode.PBX.TokenType.Semicolon);
     return east;
 }
Exemplo n.º 3
0
        // throws on error
        public KeyValueAST ParseKeyValue()
        {
            var ast = new KeyValueAST();
            ast.key = ParseIdentifier();
          
            if (Tok() != TokenType.Eq)
                throw new Exception(GetErrorMsg());
            Inc(); // skip '='
                       
            ast.value = ParseValue();
            SkipIf(TokenType.Semicolon);

            return ast;
        }
Exemplo n.º 4
0
        // throws on error
        public KeyValueAST ParseKeyValue()
        {
            var ast = new KeyValueAST();
            ast.key = ParseIdentifier();

            if (Tok() != TokenType.Eq)
                throw new Exception(GetErrorMsg());
            Inc(); // skip '='

            ast.value = ParseValue();
            SkipIf(TokenType.Semicolon);

            return ast;
        }
Exemplo n.º 5
0
        public KeyValueAST ParseKeyValue()
        {
            KeyValueAST east = new KeyValueAST {
                key = this.ParseIdentifier()
            };

            if (this.Tok() != UnityEditor.iOS.Xcode.PBX.TokenType.Eq)
            {
                throw new Exception(this.GetErrorMsg());
            }
            this.Inc();
            east.value = this.ParseValue();
            this.SkipIf(UnityEditor.iOS.Xcode.PBX.TokenType.Semicolon);
            return(east);
        }