MCPcopy Create free account
hub / github.com/Aloshi/EmulationStation / parse_unary_expression

Method parse_unary_expression

src/pugiXML/pugixml.cpp:9408–9419  ·  view source on GitHub ↗

UnaryExpr ::= UnionExpr | '-' UnaryExpr

Source from the content-addressed store, hash-verified

9406
9407 // UnaryExpr ::= UnionExpr | '-' UnaryExpr
9408 xpath_ast_node* parse_unary_expression()
9409 {
9410 if (_lexer.current() == lex_minus)
9411 {
9412 _lexer.next();
9413
9414 xpath_ast_node* expr = parse_unary_expression();
9415
9416 return new (alloc_node()) xpath_ast_node(ast_op_negate, xpath_type_number, expr);
9417 }
9418 else return parse_union_expression();
9419 }
9420
9421 // MultiplicativeExpr ::= UnaryExpr
9422 // | MultiplicativeExpr '*' UnaryExpr

Callers

nothing calls this directly

Calls 2

currentMethod · 0.80
nextMethod · 0.80

Tested by

no test coverage detected