MCPcopy Index your code
hub / github.com/microsoft/typescript-go / addSubTask

Method addSubTask

internal/compiler/filesparser.go:192–203  ·  view source on GitHub ↗
(ref resolvedRef, libFile *LibFile)

Source from the content-addressed store, hash-verified

190}
191
192func (t *parseTask) addSubTask(ref resolvedRef, libFile *LibFile) {
193 normalizedFilePath := tspath.NormalizePath(ref.fileName)
194 subTask := &parseTask{
195 normalizedFilePath: normalizedFilePath,
196 libFile: libFile,
197 increaseDepth: ref.increaseDepth,
198 elideOnDepth: ref.elideOnDepth,
199 includeReason: ref.includeReason,
200 packageId: ref.packageId,
201 }
202 t.subTasks = append(t.subTasks, subTask)
203}
204
205type filesParser struct {
206 wg core.WorkGroup

Callers 4

loadMethod · 0.95

Calls 2

NormalizePathFunction · 0.92
appendFunction · 0.50

Tested by

no test coverage detected