MCPcopy Create free account
hub / github.com/build2/build2 / parse_variable

Method parse_variable

libbuild2/parser.cxx:519–536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517 }
518
519 token parser::
520 parse_variable (lexer& l, scope& s, const variable& var, type kind)
521 {
522 path_ = &l.name ();
523 lexer_ = &l;
524
525 root_ = nullptr;
526 scope_ = &s;
527 target_ = nullptr;
528 prerequisite_ = nullptr;
529
530 pbase_ = scope_->src_path_; // Normally NULL.
531
532 token t;
533 type tt;
534 parse_variable (t, tt, var, kind);
535 return t;
536 }
537
538 pair<value, token> parser::
539 parse_variable_value (lexer& l,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected