| 1122 | }; |
| 1123 | |
| 1124 | class _ZoneDelegate implements ZoneDelegate { |
| 1125 | public get zone(): Zone { |
| 1126 | return this._zone; |
| 1127 | } |
| 1128 | private _zone: ZoneImpl; |
| 1129 | |
| 1130 | private _taskCounts: {[key in TaskType]: number} = { |
| 1131 | 'microTask': 0, |
| 1132 | 'macroTask': 0, |
| 1133 | 'eventTask': 0, |
| 1134 | }; |
| 1135 | |
| 1136 | private _forkDlgt: _ZoneDelegate | null; |
| 1137 | private _forkZS: ZoneSpec | null; |
| 1138 | private _forkCurrZone: Zone | null; |
| 1139 | |
| 1140 | private _interceptDlgt: _ZoneDelegate | null; |
| 1141 | private _interceptZS: ZoneSpec | null; |
| 1142 | private _interceptCurrZone: Zone | null; |
| 1143 | |
| 1144 | private _invokeDlgt: _ZoneDelegate | null; |
| 1145 | private _invokeZS: ZoneSpec | null; |
| 1146 | private _invokeCurrZone: ZoneImpl | null; |
| 1147 | |
| 1148 | private _handleErrorDlgt: _ZoneDelegate | null; |
| 1149 | private _handleErrorZS: ZoneSpec | null; |
| 1150 | private _handleErrorCurrZone: ZoneImpl | null; |
| 1151 | |
| 1152 | private _scheduleTaskDlgt: _ZoneDelegate | null; |
| 1153 | private _scheduleTaskZS: ZoneSpec | null; |
| 1154 | private _scheduleTaskCurrZone: ZoneImpl | null; |
| 1155 | |
| 1156 | private _invokeTaskDlgt: _ZoneDelegate | null; |
| 1157 | private _invokeTaskZS: ZoneSpec | null; |
| 1158 | private _invokeTaskCurrZone: ZoneImpl | null; |
| 1159 | |
| 1160 | private _cancelTaskDlgt: _ZoneDelegate | null; |
| 1161 | private _cancelTaskZS: ZoneSpec | null; |
| 1162 | private _cancelTaskCurrZone: ZoneImpl | null; |
| 1163 | |
| 1164 | private _hasTaskDlgt: _ZoneDelegate | null; |
| 1165 | private _hasTaskDlgtOwner: _ZoneDelegate | null; |
| 1166 | private _hasTaskZS: ZoneSpec | null; |
| 1167 | private _hasTaskCurrZone: ZoneImpl | null; |
| 1168 | |
| 1169 | constructor(zone: Zone, parentDelegate: _ZoneDelegate | null, zoneSpec: ZoneSpec | null) { |
| 1170 | this._zone = zone as ZoneImpl; |
| 1171 | |
| 1172 | this._forkZS = zoneSpec && (zoneSpec && zoneSpec.onFork ? zoneSpec : parentDelegate!._forkZS); |
| 1173 | this._forkDlgt = zoneSpec && (zoneSpec.onFork ? parentDelegate : parentDelegate!._forkDlgt); |
| 1174 | this._forkCurrZone = |
| 1175 | zoneSpec && (zoneSpec.onFork ? this._zone : parentDelegate!._forkCurrZone); |
| 1176 | |
| 1177 | this._interceptZS = |
| 1178 | zoneSpec && (zoneSpec.onIntercept ? zoneSpec : parentDelegate!._interceptZS); |
| 1179 | this._interceptDlgt = |
| 1180 | zoneSpec && (zoneSpec.onIntercept ? parentDelegate : parentDelegate!._interceptDlgt); |
| 1181 | this._interceptCurrZone = |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…