MCPcopy Create free account
hub / github.com/dfranx/ShaderDebugger / ParseSubScripting

Method ParseSubScripting

libs/wgtcc/parser.cc:444–450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442
443
444Expr* Parser::ParseSubScripting(Expr* lhs) {
445 auto rhs = ParseExpr();
446 auto tok = ts_.Peek();
447 ts_.Expect(']');
448 auto operand = BinaryOp::New(tok, '+', lhs, rhs);
449 return UnaryOp::New(Token::DEREF, operand);
450}
451
452
453BinaryOp* Parser::ParseMemberRef(const Token* tok, int op, Expr* lhs) {

Callers

nothing calls this directly

Calls 3

NewFunction · 0.85
ExpectMethod · 0.80
PeekMethod · 0.45

Tested by

no test coverage detected