intrinsicNeedsAtomArgs
On this page

intrinsicNeedsAtomArgs()

Function in Backends

Returns true when name's spelling splices an argument into a position that binds tighter than a plain argument slot, such as an operand of an inlined operator or the base of a .field postfix.

import { intrinsicNeedsAtomArgs } from 'typeshade'

The signature, the description and the examples come from the compiler's own source at commit 26de7be8.

Syntax

const intrinsicNeedsAtomArgs: (name: string) => boolean

Parameters

name string

The builtin id.

Return value

boolean

Description

In that case the caller must render every argument as a primary expression (parenthesized unless it is already a single token), because a bare a + b spliced into a + b / c parses as different arithmetic. Returns false for an id with no entry.

Source

src/core/intrinsics.ts, line 1044, at commit 26de7be8

Edit this page Report a problem