SemanticDiffOptions
이 페이지에서

SemanticDiffOptions

인터페이스, 도구 분류

Options for semanticDiff.

import type { SemanticDiffOptions } from 'typeshade'

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

구문

interface SemanticDiffOptions {
readonly ignore?: readonly SemanticAspect[];
readonly transforms?: readonly EmitPlugin[];
}

인스턴스 속성

ignore선택 사항읽기 전용 readonly SemanticAspect[]

Axes to disregard. Defaults to ['names', 'declOrder']. Pass [] to compare identifier spelling and declaration order too.

transforms선택 사항읽기 전용 readonly EmitPlugin[]

Plugins declared as intentionally applied to b. Pass the same plugin array your production emit call uses, for example [inline(), ...obfuscate()]. Each plugin’s transformIR is applied to a in order, and every diff line the applied transform accounts for moves out of the four buckets into ClassifiedSemanticDiff.explained, attributed to that plugin. Differences no declared transform explains stay in the buckets, so a regression cannot hide behind a declaration. Text-stage plugins (minify, aliasTypes, prune) contribute nothing here, because the comparison never sees emitted text.

함께 보기

소스

src/core/semantic-diff.ts, 63행, 커밋 c66579bf 기준

이 페이지 편집 문제 보고