intrinsicNeedsAtomArgs
이 페이지에서

intrinsicNeedsAtomArgs()

함수, 백엔드 분류

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'

시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.

구문

const intrinsicNeedsAtomArgs: (name: string) => boolean

매개변수

name string

The builtin id.

반환값

boolean

설명

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.

소스

src/core/intrinsics.ts, 1044행, 커밋 c66579bf 기준

이 페이지 편집 문제 보고