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); }
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; }
// 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; }
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); }