ConsoleSite
이 페이지에서

ConsoleSite

인터페이스, 콘솔 분류

WGSL이 기록하는 콘솔 호출 하나입니다. 메서드, 작성된 위치, 작성된 순서대로의 인자, 그 항목이 차지하는 워드를 담습니다.

import type { ConsoleSite } from 'typeshade'

설명은 커밋 af54ddad5의 검토된 컴파일러 문서를 번역한 것입니다. 시그니처와 예제 코드는 원문을 따르며, 필요한 경우 설명에 편집상 수정이 반영됩니다.

구문

interface ConsoleSite {
readonly method: ConsoleMethod;
readonly span?: SourceSpan;
readonly args: readonly ({ readonly label: string } | { readonly shape: ConsoleShape })[];
readonly words: number;
}

인스턴스 속성

method읽기 전용 ConsoleMethod
span선택 사항읽기 전용 SourceSpan
args읽기 전용 readonly ({ readonly label: string } | { readonly shape: ConsoleShape })[]
words읽기 전용 number

소스

src/core/console.ts, 136행, 커밋 af54ddad5 기준

이 페이지 편집 문제 보고