1 | (function (factory) {
|
---|
2 | if (typeof module === "object" && typeof module.exports === "object") {
|
---|
3 | var v = factory(require, exports);
|
---|
4 | if (v !== undefined) module.exports = v;
|
---|
5 | }
|
---|
6 | else if (typeof define === "function" && define.amd) {
|
---|
7 | define("@angular/compiler/src/summary_resolver", ["require", "exports"], factory);
|
---|
8 | }
|
---|
9 | })(function (require, exports) {
|
---|
10 | "use strict";
|
---|
11 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
12 | exports.JitSummaryResolver = exports.SummaryResolver = void 0;
|
---|
13 | var SummaryResolver = /** @class */ (function () {
|
---|
14 | function SummaryResolver() {
|
---|
15 | }
|
---|
16 | return SummaryResolver;
|
---|
17 | }());
|
---|
18 | exports.SummaryResolver = SummaryResolver;
|
---|
19 | var JitSummaryResolver = /** @class */ (function () {
|
---|
20 | function JitSummaryResolver() {
|
---|
21 | this._summaries = new Map();
|
---|
22 | }
|
---|
23 | JitSummaryResolver.prototype.isLibraryFile = function () {
|
---|
24 | return false;
|
---|
25 | };
|
---|
26 | JitSummaryResolver.prototype.toSummaryFileName = function (fileName) {
|
---|
27 | return fileName;
|
---|
28 | };
|
---|
29 | JitSummaryResolver.prototype.fromSummaryFileName = function (fileName) {
|
---|
30 | return fileName;
|
---|
31 | };
|
---|
32 | JitSummaryResolver.prototype.resolveSummary = function (reference) {
|
---|
33 | return this._summaries.get(reference) || null;
|
---|
34 | };
|
---|
35 | JitSummaryResolver.prototype.getSymbolsOf = function () {
|
---|
36 | return [];
|
---|
37 | };
|
---|
38 | JitSummaryResolver.prototype.getImportAs = function (reference) {
|
---|
39 | return reference;
|
---|
40 | };
|
---|
41 | JitSummaryResolver.prototype.getKnownModuleName = function (fileName) {
|
---|
42 | return null;
|
---|
43 | };
|
---|
44 | JitSummaryResolver.prototype.addSummary = function (summary) {
|
---|
45 | this._summaries.set(summary.symbol, summary);
|
---|
46 | };
|
---|
47 | return JitSummaryResolver;
|
---|
48 | }());
|
---|
49 | exports.JitSummaryResolver = J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