source: trip-planner-front/node_modules/@angular/compiler/esm2015/src/summary_resolver.js@ 59329aa

Last change on this file since 59329aa was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 3.9 KB
Line 
1export class SummaryResolver {
2}
3export class JitSummaryResolver {
4 constructor() {
5 this._summaries = new Map();
6 }
7 isLibraryFile() {
8 return false;
9 }
10 toSummaryFileName(fileName) {
11 return fileName;
12 }
13 fromSummaryFileName(fileName) {
14 return fileName;
15 }
16 resolveSummary(reference) {
17 return this._summaries.get(reference) || null;
18 }
19 getSymbolsOf() {
20 return [];
21 }
22 getImportAs(reference) {
23 return reference;
24 }
25 getKnownModuleName(fileName) {
26 return null;
27 }
28 addSummary(summary) {
29 this._summaries.set(summary.symbol, summary);
30 }
31}
32//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3VtbWFyeV9yZXNvbHZlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvbXBpbGVyL3NyYy9zdW1tYXJ5X3Jlc29sdmVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWdCQSxNQUFNLE9BQWdCLGVBQWU7Q0FTcEM7QUFFRCxNQUFNLE9BQU8sa0JBQWtCO0lBQS9CO1FBQ1UsZUFBVSxHQUFHLElBQUksR0FBRyxFQUF1QixDQUFDO0lBMEJ0RCxDQUFDO0lBeEJDLGFBQWE7UUFDWCxPQUFPLEtBQUssQ0FBQztJQUNmLENBQUM7SUFDRCxpQkFBaUIsQ0FBQyxRQUFnQjtRQUNoQyxPQUFPLFFBQVEsQ0FBQztJQUNsQixDQUFDO0lBQ0QsbUJBQW1CLENBQUMsUUFBZ0I7UUFDbEMsT0FBTyxRQUFRLENBQUM7SUFDbEIsQ0FBQztJQUNELGNBQWMsQ0FBQyxTQUFlO1FBQzVCLE9BQU8sSUFBSSxDQUF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