fix(analyzer): fix dart analyzer errors

This commit is contained in:
vsavkin 2015-10-08 11:12:17 -07:00
parent d60c7a9118
commit 14fa00791e
6 changed files with 7 additions and 4 deletions

View File

@ -30,3 +30,7 @@ class WrappedException extends Error {
Error makeTypeError([String message = ""]) {
return new BaseException(message);
}
dynamic unimplemented() {
throw new BaseException('unimplemented');
}

View File

@ -66,5 +66,8 @@ export class ElementRef_ extends ElementRef {
}
get renderView(): RenderViewRef { return (<ViewRef_>this.parentView).render; }
set renderView(value) {
unimplemented();
}
get nativeElement(): any { return this._renderer.getNativeElementSync(this); }
}

View File

@ -90,7 +90,6 @@ import {TemplateRef} from 'angular2/src/core/linker/template_ref';
import {DomRenderer} from 'angular2/src/core/render/dom/dom_renderer';
import {IS_DART} from '../../platform';
import {Compiler_} from "angular2/src/core/linker/compiler";
const ANCHOR_ELEMENT = CONST_EXPR(new OpaqueToken('AnchorElement'));

View File

@ -11,7 +11,6 @@ import {
import {LifeCycle} from 'angular2/src/core/life_cycle/life_cycle';
import {ListWrapper} from 'angular2/src/core/facade/collection';
import {getIntParameter, bindAction} from 'angular2/src/test_lib/benchmark_util';
import {ComponentRef} from "angular2/src/core/linker/dynamic_component_loader";
var testList = null;

View File

@ -26,7 +26,6 @@ import {ListWrapper} from 'angular2/src/core/facade/collection';
import {Inject} from 'angular2/src/core/di/decorators';
import {reflector} from 'angular2/src/core/reflection/reflection';
import {ComponentRef} from "angular2/src/core/linker/dynamic_component_loader";
export const BENCHMARK_TYPE = 'LargetableComponent.benchmarkType';
export const LARGETABLE_ROWS = 'LargetableComponent.rows';

View File

@ -23,7 +23,6 @@ import {
} from 'angular2/src/test_lib/benchmark_util';
import {BrowserDomAdapter} from 'angular2/src/core/dom/browser_adapter';
import {APP_VIEW_POOL_CAPACITY} from 'angular2/src/core/linker/view_pool';
import {ComponentRef} from "angular2/src/core/linker/dynamic_component_loader";
function createBindings(): Binding[] {
var viewCacheCapacity = getStringParameter('viewcache') == 'true' ? 10000 : 1;