refactor(change_detect): Move common fields to AbstractChangeDetector
Move fields common to Dynamic, Jit, and Pregen change detectors into the `AbstractChangeDetector` superclass to save on codegen size and reduce code duplication. Update to #3248, closes #3243
This commit is contained in:
@ -8,15 +8,16 @@ import {
|
||||
} from 'angular2/src/facade/collection';
|
||||
import {
|
||||
AST,
|
||||
Locals,
|
||||
ChangeDispatcher,
|
||||
ProtoChangeDetector,
|
||||
ChangeDetector,
|
||||
BindingRecord,
|
||||
DirectiveRecord,
|
||||
ChangeDetector,
|
||||
ChangeDetectorRef,
|
||||
ChangeDispatcher,
|
||||
DirectiveIndex,
|
||||
ChangeDetectorRef
|
||||
DirectiveRecord,
|
||||
Locals,
|
||||
ProtoChangeDetector
|
||||
} from 'angular2/src/change_detection/change_detection';
|
||||
import {DebugContext} from 'angular2/src/change_detection/interfaces';
|
||||
|
||||
import {
|
||||
ProtoElementInjector,
|
||||
@ -31,6 +32,8 @@ import {RenderEventDispatcher} from 'angular2/src/render/api';
|
||||
import {ViewRef, ProtoViewRef, internalView} from './view_ref';
|
||||
import {ElementRef} from './element_ref';
|
||||
|
||||
export {DebugContext} from 'angular2/src/change_detection/interfaces';
|
||||
|
||||
export class AppProtoViewMergeMapping {
|
||||
renderProtoViewRef: renderApi.RenderProtoViewRef;
|
||||
renderFragmentCount: number;
|
||||
@ -301,11 +304,6 @@ function _localsToStringMap(locals: Locals): StringMap<string, any> {
|
||||
return res;
|
||||
}
|
||||
|
||||
export class DebugContext {
|
||||
constructor(public element: any, public componentElement: any, public directive: any,
|
||||
public context: any, public locals: any, public injector: any) {}
|
||||
}
|
||||
|
||||
/**
|
||||
* Error context included when an event handler throws an exception.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user