MCPcopy Index your code
hub / github.com/angular/angular / addSource

Method addSource

packages/compiler/src/output/source_map.ts:41–46  ·  view source on GitHub ↗
(url: string, content: string | null = null)

Source from the content-addressed store, hash-verified

39
40 // The content is `null` when the content is expected to be loaded using the URL
41 addSource(url: string, content: string | null = null): this {
42 if (!this.sourcesContent.has(url)) {
43 this.sourcesContent.set(url, content);
44 }
45 return this;
46 }
47
48 addLine(): this {
49 this.lines.push([]);

Callers 3

toSourceMapGeneratorMethod · 0.95
source_map_spec.tsFile · 0.80

Calls 2

hasMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected