is_call_like_prev

Function is_call_like_prev 

Source
fn is_call_like_prev(kind: &TokenKind) -> bool
Expand description

( is part of a call / index / cast context when preceded by one of these tokens. Everything else is treated as a paren-expression where inner top-level commas would be the C-style comma operator.

Gt is included because the HLSL grammar has no generic syntax, but internally-emitted WGSL-shape source (vec3<f32>(a, b, c)) tokenises the > as Gt immediately before the constructor (. Treating >( as call-like keeps the comma-paren pass idempotent on previously re-emitted source, at the negligible cost of skipping the (corpus- absent) a > (b, c) operator-then-paren-expr shape.