Beispiel #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);
        }
Beispiel #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;
 }
Beispiel #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;
        }
Beispiel #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;
        }
Beispiel #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);
        }