Skip to content

Commit 6f4e366

Browse files
Tom Colemanblakeembrey
Tom Coleman
authored andcommitted
Output source files and lines to JSON (#266)
1 parent 36d8c8c commit 6f4e366

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/lib/models/reflections/container.ts

+12
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,18 @@ export class ContainerReflection extends Reflection
6767
result['groups'] = groups;
6868
}
6969

70+
if (this.sources) {
71+
var sources:any[] = [];
72+
this.sources.forEach((source) => {
73+
sources.push({
74+
fileName: source.fileName,
75+
line: source.line
76+
});
77+
});
78+
79+
result['sources'] = sources;
80+
}
81+
7082
return result;
7183
}
7284
}

0 commit comments

Comments
 (0)