MCPcopy Create free account
hub / github.com/Houseofmvps/codesight / nativeEnabledFor

Function nativeEnabledFor

src/ast/native-loader.ts:124–126  ·  view source on GitHub ↗
(r: NativeAstResolved, lang: NativeLang)

Source from the content-addressed store, hash-verified

122
123/** Is native parsing enabled for this language under the resolved settings? */
124export function nativeEnabledFor(r: NativeAstResolved, lang: NativeLang): boolean {
125 return r.mode !== false && (r.languages.size === 0 || r.languages.has(lang));
126}
127
128export function isStrict(r: NativeAstResolved): boolean {
129 return r.mode === "strict";

Callers 2

nativePluginForFunction · 0.85
native-ast.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected