Home
last modified time | relevance | path

Searched refs:token_state_ (Results 1 – 2 of 2) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_lexer.cc86 TokenState old_token_state = token_state_; in LookAhead()
89 token_state_ = old_token_state; in LookAhead()
96 token_state_.token_start = current_ptr_; in LexToken()
241 token_state_.str_val.assign(token_state_.token_start, current_ptr_); in LexIdentifier()
248 token_state_.str_val.assign(token_state_.token_start, current_ptr_); in LexIdentifier()
254 StringPieceFromPointers(token_state_.token_start, current_ptr_); in LexIdentifier()
262 token_state_.primitive_type_val = primitive_type; in LexIdentifier()
291 StringPieceFromPointers(token_state_.token_start, buf_.end()); in LexIdentifier()
296 token_state_.str_val.assign(token_state_.token_start, current_ptr_); in LexIdentifier()
301 token_state_.str_val = string(identifier); in LexIdentifier()
[all …]
Dhlo_lexer.h97 TokKind Lex() { return token_state_.current_kind = LexToken(); } in Lex()
99 TokKind GetKind() const { return token_state_.current_kind; } in GetKind()
109 return token_state_.str_val; in GetStrVal()
116 return token_state_.int64_val; in GetInt64Val()
120 return token_state_.decimal_val; in GetDecimalVal()
124 return token_state_.primitive_type_val; in GetPrimitiveTypeVal()
130 LocTy GetLoc() const { return token_state_.token_start; } in GetLoc()
179 TokenState token_state_; variable