https://github.com/angular/angular
Raw File
Tip revision: dad213e8c71eb31d140b7c9f48fc16827411f22c authored by Jessica Janiuk on 22 September 2021, 18:58:36 UTC
release: cut the v12.2.7 release (#43537)
Tip revision: dad213e
injector_marker.ts
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */

/**
 * Special markers which can be left on `Type.__NG_ELEMENT_ID__` which are used by the Ivy's
 * `NodeInjector`. Usually these markers contain factory functions. But in case of this special
 * marker we can't leave behind a function because it would create tree shaking problem.
 *
 * Currently only `Injector` is special.
 *
 * NOTE: the numbers here must be negative, because positive numbers are used as IDs for bloom
 * filter.
 */
export const enum InjectorMarkers {
  /**
   * Marks that the current type is `Injector`
   */
  Injector = -1
}
back to top