MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / hasNativeClassDecorator

Function hasNativeClassDecorator

tools/transformers/native-class.js:123–126  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

121}
122
123function hasNativeClassDecorator(node) {
124 const decorators = ts.getDecorators?.(node) ?? node.decorators;
125 return !!decorators && decorators.some((decorator) => getIdentifierText(decorator) === 'NativeClass');
126}
127
128function emitDownleveledClass(node) {
129 // Preserve leading trivia (including possible preceding import statements separated earlier by bundler) only remove the decorator itself.

Callers 1

transformStatementsFunction · 0.70

Calls 2

someMethod · 0.80
getIdentifierTextFunction · 0.70

Tested by

no test coverage detected