/** * Shared "is the return value discarded?" predicate for the tree-sitter * adapters. * * The base shape is byte-identical across the adapters whose call sites * only ever discard via a bare `expression_statement` (Java, Rust): a * call expression's return value is discarded when the call is the entire * expression of an enclosing `expression_statement`. Parenthesized * wrappers are transparent and walked through. * * Adapters with extra discard shapes (Go's `go`/`defer` statements, * Python's `await` wrapper) keep their own variant — only the common * Java/Rust form lives here. */ import type { Node } from '@opensip-tools/tree-sitter'; /** * The call's return value is discarded when the call expression is the * entire expression of an enclosing `expression_statement`. * `parenthesized_expression` wrappers are transparent. */ export declare function isReturnValueDiscarded(node: Node): boolean; //# sourceMappingURL=return-discarded.d.ts.map