import {AST} from 'angular2/change_detection'; import {SetterFn} from 'angular2/src/reflection/types'; import {List, ListWrapper} from 'angular2/src/facade/collection'; import * as protoViewModule from './proto_view'; export class ElementBinder { contentTagSelector: string; textNodeIndices: List; nestedProtoView: protoViewModule.RenderProtoView; eventLocals: AST; localEvents: List; globalEvents: List; componentId: string; parentIndex:number; distanceToParent:number; propertySetters: Map; constructor({ textNodeIndices, contentTagSelector, nestedProtoView, componentId, eventLocals, localEvents, globalEvents, parentIndex, distanceToParent, propertySetters }) { this.textNodeIndices = textNodeIndices; this.contentTagSelector = contentTagSelector; this.nestedProtoView = nestedProtoView; this.componentId = componentId; this.eventLocals = eventLocals; this.localEvents = localEvents; this.globalEvents = globalEvents; this.parentIndex = parentIndex; this.distanceToParent = distanceToParent; this.propertySetters = propertySetters; } } export class Event { name: string; target: string; fullName: string; constructor(name: string, target: string, fullName: string) { this.name = name; this.target = target; this.fullName = fullName; } }