MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / scanSourceFile

Function scanSourceFile

packages/alphatab/scripts/EmitterBase.ts:88–94  ·  view source on GitHub ↗
(program: ts.Program, sourceFile: ts.SourceFile)

Source from the content-addressed store, hash-verified

86 generate: (program: ts.Program, classDeclaration: ts.ClassDeclaration) => ts.SourceFile
87) {
88 function scanSourceFile(program: ts.Program, sourceFile: ts.SourceFile) {
89 for (const stmt of sourceFile.statements) {
90 if (ts.isClassDeclaration(stmt) && ts.getJSDocTags(stmt).some(t => t.tagName.text === jsDocMarker)) {
91 generateClass(program, stmt, generate);
92 }
93 }
94 }
95
96 return function emit(program: ts.Program, _diagnostics: ts.Diagnostic[]) {
97 for (const file of program.getRootFileNames()) {

Callers 1

createEmitterFunction · 0.85

Calls 2

generateClassFunction · 0.85
someMethod · 0.80

Tested by

no test coverage detected