MCPcopy Create free account
hub / github.com/dop251/goja / parseBitwiseOrExpression

Method parseBitwiseOrExpression

parser/expression.go:1079–1093  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1077}
1078
1079func (self *_parser) parseBitwiseOrExpression() ast.Expression {
1080 left := self.parseBitwiseExclusiveOrExpression()
1081
1082 for self.token == token.OR {
1083 tkn := self.token
1084 self.next()
1085 left = &ast.BinaryExpression{
1086 Operator: tkn,
1087 Left: left,
1088 Right: self.parseBitwiseExclusiveOrExpression(),
1089 }
1090 }
1091
1092 return left
1093}
1094
1095func (self *_parser) parseLogicalAndExpression() ast.Expression {
1096 left := self.parseBitwiseOrExpression()

Callers 1

Calls 2

nextMethod · 0.95

Tested by

no test coverage detected