cleanup(di): fix dart analyzer errors

Closes #3962
This commit is contained in:
vsavkin 2015-09-03 08:14:51 -07:00 committed by Victor Savkin
parent d43bd9b4ca
commit 3ff321475d
7 changed files with 9 additions and 10 deletions

View File

@ -26,7 +26,14 @@ export {
Visibility,
UNDEFINED
} from './src/core/di/injector';
export {Binding, BindingBuilder, ResolvedBinding, Dependency, bind} from './src/core/di/binding';
export {
Binding,
BindingBuilder,
ResolvedBinding,
ResolvedFactory,
Dependency,
bind
} from './src/core/di/binding';
export {Key, KeyRegistry, TypeLiteral} from './src/core/di/key';
export {
NoBindingError,

View File

@ -460,8 +460,6 @@ function _normalizeBindings(bindings: Array<Type | Binding | any[]>,
res: Map<number, _NormalizedBinding | _NormalizedBinding[]>):
Map<number, _NormalizedBinding | _NormalizedBinding[]> {
ListWrapper.forEach(bindings, (b) => {
var key, factory, normalized;
if (b instanceof Type) {
_normalizeBinding(bind(b).toClass(b), res);

View File

@ -19,9 +19,7 @@ import {
} from './exceptions';
import {FunctionWrapper, Type, isPresent, isBlank, CONST_EXPR} from 'angular2/src/core/facade/lang';
import {Key} from './key';
import {resolveForwardRef} from './forward_ref';
import {SelfMetadata, HostMetadata, SkipSelfMetadata} from './metadata';
import {reflector} from 'angular2/src/core/reflection/reflection';
// Threshold for the dynamic version

View File

@ -2,7 +2,6 @@ import {CONST_EXPR} from 'angular2/src/core/facade/lang';
import {EventEmitter, ObservableWrapper} from 'angular2/src/core/facade/async';
import {StringMap} from 'angular2/src/core/facade/collection';
import {QueryList} from 'angular2/core';
import {Query, Directive, LifecycleEvent} from 'angular2/metadata';
import {forwardRef, Host, SkipSelf, Binding, Inject, Optional} from 'angular2/di';
@ -88,7 +87,6 @@ export class NgControlName extends NgControl {
validators: Function[];
_added = false;
// Scope the query once https://github.com/angular/angular/issues/2603 is fixed
constructor(@Host() @SkipSelf() parent: ControlContainer,
@Optional() @Inject(NG_VALIDATORS) validators: Function[]) {
super();

View File

@ -1,7 +1,6 @@
import {CONST_EXPR} from 'angular2/src/core/facade/lang';
import {EventEmitter, ObservableWrapper} from 'angular2/src/core/facade/async';
import {QueryList} from 'angular2/core';
import {Query, Directive, LifecycleEvent} from 'angular2/metadata';
import {forwardRef, Binding, Inject, Optional} from 'angular2/di';

View File

@ -1,7 +1,6 @@
import {CONST_EXPR} from 'angular2/src/core/facade/lang';
import {EventEmitter, ObservableWrapper} from 'angular2/src/core/facade/async';
import {QueryList} from 'angular2/core';
import {Query, Directive, LifecycleEvent} from 'angular2/metadata';
import {forwardRef, Binding, Inject, Optional} from 'angular2/di';

View File

@ -5,7 +5,7 @@ import {OpaqueToken} from 'angular2/di';
import * as modelModule from './model';
export const NG_VALIDATORS = CONST_EXPR(new OpaqueToken("NgValidators"));
export const NG_VALIDATORS: OpaqueToken = CONST_EXPR(new OpaqueToken("NgValidators"));
/**
* Provides a set of validators used by form controls.