MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / is_operator_expression

Function is_operator_expression

codegraph-kernel/src/dart.rs:136–153  ·  view source on GitHub ↗

DART_OPERATOR_EXPRESSIONS (dart.ts) — the expressions an arrow function's body can end in with the operand on the right last.

(kind: &str)

Source from the content-addressed store, hash-verified

134/// DART_OPERATOR_EXPRESSIONS (dart.ts) — the expressions an arrow function's
135/// body can end in with the operand on the right last.
136fn is_operator_expression(kind: &str) -> bool {
137 matches!(
138 kind,
139 "equality_expression"
140 | "relational_expression"
141 | "logical_and_expression"
142 | "logical_or_expression"
143 | "if_null_expression"
144 | "additive_expression"
145 | "multiplicative_expression"
146 | "bitwise_and_expression"
147 | "bitwise_or_expression"
148 | "bitwise_xor_expression"
149 | "shift_expression"
150 | "unary_expression"
151 | "await_expression"
152 )
153}
154
155/// DART_LISTS (dart.ts) — the nodes that list the expressions a generic
156/// constructor call can be split across.

Callers 1

receiver_ofMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected