
Update the license headers throughout the repository to reference Google LLC rather than Google Inc, for the required license headers. PR Close #37205
60 lines
1.6 KiB
TypeScript
60 lines
1.6 KiB
TypeScript
/**
|
|
* @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
|
|
*/
|
|
|
|
|
|
import {RNode} from './renderer';
|
|
import {LView} from './view';
|
|
|
|
/**
|
|
* This property will be monkey-patched on elements, components and directives
|
|
*/
|
|
export const MONKEY_PATCH_KEY_NAME = '__ngContext__';
|
|
|
|
/**
|
|
* The internal view context which is specific to a given DOM element, directive or
|
|
* component instance. Each value in here (besides the LView and element node details)
|
|
* can be present, null or undefined. If undefined then it implies the value has not been
|
|
* looked up yet, otherwise, if null, then a lookup was executed and nothing was found.
|
|
*
|
|
* Each value will get filled when the respective value is examined within the getContext
|
|
* function. The component, element and each directive instance will share the same instance
|
|
* of the context.
|
|
*/
|
|
export interface LContext {
|
|
/**
|
|
* The component's parent view data.
|
|
*/
|
|
lView: LView;
|
|
|
|
/**
|
|
* The index instance of the node.
|
|
*/
|
|
nodeIndex: number;
|
|
|
|
/**
|
|
* The instance of the DOM node that is attached to the lNode.
|
|
*/
|
|
native: RNode;
|
|
|
|
/**
|
|
* The instance of the Component node.
|
|
*/
|
|
component: {}|null|undefined;
|
|
|
|
/**
|
|
* The list of active directives that exist on this element.
|
|
*/
|
|
directives: any[]|null|undefined;
|
|
|
|
/**
|
|
* The map of local references (local reference name => element or directive instance) that exist
|
|
* on this element.
|
|
*/
|
|
localRefs: {[key: string]: any}|null|undefined;
|
|
}
|