source: trip-planner-front/node_modules/@angular/compiler/src/render3/r3_jit.js@ 6c1585f

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

initial commit

  • Property mode set to 100644
File size: 7.2 KB
Line 
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8(function (factory) {
9 if (typeof module === "object" && typeof module.exports === "object") {
10 var v = factory(require, exports);
11 if (v !== undefined) module.exports = v;
12 }
13 else if (typeof define === "function" && define.amd) {
14 define("@angular/compiler/src/render3/r3_jit", ["require", "exports"], factory);
15 }
16})(function (require, exports) {
17 "use strict";
18 Object.defineProperty(exports, "__esModule", { value: true });
19 exports.R3JitReflector = void 0;
20 /**
21 * Implementation of `CompileReflector` which resolves references to @angular/core
22 * symbols at runtime, according to a consumer-provided mapping.
23 *
24 * Only supports `resolveExternalReference`, all other methods throw.
25 */
26 var R3JitReflector = /** @class */ (function () {
27 function R3JitReflector(context) {
28 this.context = context;
29 }
30 R3JitReflector.prototype.resolveExternalReference = function (ref) {
31 // This reflector only handles @angular/core imports.
32 if (ref.moduleName !== '@angular/core') {
33 throw new Error("Cannot resolve external reference to " + ref.moduleName + ", only references to @angular/core are supported.");
34 }
35 if (!this.context.hasOwnProperty(ref.name)) {
36 throw new Error("No value provided for @angular/core symbol '" + ref.name + "'.");
37 }
38 return this.context[ref.name];
39 };
40 R3JitReflector.prototype.parameters = function (typeOrFunc) {
41 throw new Error('Not implemented.');
42 };
43 R3JitReflector.prototype.annotations = function (typeOrFunc) {
44 throw new Error('Not implemented.');
45 };
46 R3JitReflector.prototype.shallowAnnotations = function (typeOrFunc) {
47 throw new Error('Not implemented.');
48 };
49 R3JitReflector.prototype.tryAnnotations = function (typeOrFunc) {
50 throw new Error('Not implemented.');
51 };
52 R3JitReflector.prototype.propMetadata = function (typeOrFunc) {
53 throw new Error('Not implemented.');
54 };
55 R3JitReflector.prototype.hasLifecycleHook = function (type, lcProperty) {
56 throw new Error('Not implemented.');
57 };
58 R3JitReflector.prototype.guards = function (typeOrFunc) {
59 throw new Error('Not implemented.');
60 };
61 R3JitReflector.prototype.componentModuleUrl = function (type, cmpMetadata) {
62 throw new Error('Not implemented.');
63 };
64 return R3JitReflector;
65 }());
66 exports.R3JitReflector = R3JitReflector;
67});
68//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicjNfaml0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvY29tcGlsZXIvc3JjL3JlbmRlcjMvcjNfaml0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRzs7Ozs7Ozs7Ozs7OztJQUtIOzs7OztPQUtHO0lBQ0g7UUFDRSx3QkFBb0IsT0FBNkI7WUFBN0IsWUFBTyxHQUFQLE9BQU8sQ0FBc0I7UUFBRyxDQUFDO1FBRXJELGlEQUF3QixHQUF4QixVQUF5QixHQUF3QjtZQUMvQyxxREFBcUQ7WUFDckQsSUFBSSxHQUFHLENBQUMsVUFBVSxLQUFLLGVBQWUsRUFBRTtnQkFDdEMsTUFBTSxJQUFJLEtBQUssQ0FBQywwQ0FDWixHQUFHLENBQUMsVUFBVSxzREFBbUQsQ0FBQyxDQUFDO2FBQ3hFO1lBQ0QsSUFBSSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUMsY0FBYyxDQUFDLEdBQUcsQ0FBQyxJQUFLLENBQUMsRUFBRTtnQkFDM0MsTUFBTSxJQUFJLEtBQUssQ0FBQyxpREFBK0MsR0FBRyxDQUFDLElBQUssT0FBSSxDQUFDLENBQUM7YUFDL0U7WUFDRCxPQUFPLElBQUksQ0FBQyxPQUFPLENBQUMsR0FBRyxDQUFDLElBQUssQ0FBQyxDQUFDO1FBQ2pDLENBQUM7UUFFRCxtQ0FBVSxHQUFWL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B7XG4gICAgdGhyb3cgbmV3IEVycm9yKCdOb3QgaW1wbGVtZW50ZWQuJyk7XG4gIH1cblxuICBndWFyZHModHlwZU9yRnVuYzogYW55KToge1trZXk6IHN0cmluZ106IGFueTt9IHtcbiAgICB0aHJvdyBuZXcgRXJyb3IoJ05vdCBpbXBsZW1lbnRlZC4nKTtcbiAgfVxuXG4gIGNvbXBvbmVudE1vZHVsZVVybCh0eXBlOiBhbnksIGNtcE1ldGFkYXRhOiBhbnkpOiBzdHJpbmcge1xuICAgIHRocm93IG5ldyBFcnJvcignTm90IGltcGxlbWVudGVkLicpO1xuICB9XG59XG4iXX0=
Note: See TracBrowser for help on using the repository browser.