diff --git a/modules/angular2/src/change_detection/parser/ast.js b/modules/angular2/src/change_detection/parser/ast.js index e2f1307a15..e404e21c12 100644 --- a/modules/angular2/src/change_detection/parser/ast.js +++ b/modules/angular2/src/change_detection/parser/ast.js @@ -1,4 +1,4 @@ -import {FIELD, autoConvertAdd, isBlank, isPresent, FunctionWrapper, BaseException} from "angular2/src/facade/lang"; +import {autoConvertAdd, isBlank, isPresent, FunctionWrapper, BaseException} from "angular2/src/facade/lang"; import {List, Map, ListWrapper, StringMapWrapper} from "angular2/src/facade/collection"; import {ContextWithVariableBindings} from "./context_with_variable_bindings"; diff --git a/modules/angular2/src/change_detection/parser/lexer.js b/modules/angular2/src/change_detection/parser/lexer.js index 2911650636..5d9abf7228 100644 --- a/modules/angular2/src/change_detection/parser/lexer.js +++ b/modules/angular2/src/change_detection/parser/lexer.js @@ -1,5 +1,5 @@ import {List, ListWrapper, SetWrapper} from "angular2/src/facade/collection"; -import {int, FIELD, NumberWrapper, StringJoiner, StringWrapper} from "angular2/src/facade/lang"; +import {int, NumberWrapper, StringJoiner, StringWrapper} from "angular2/src/facade/lang"; export const TOKEN_TYPE_CHARACTER = 1; export const TOKEN_TYPE_IDENTIFIER = 2; diff --git a/modules/angular2/src/change_detection/parser/parser.js b/modules/angular2/src/change_detection/parser/parser.js index 09ade4da04..fbb0c69a88 100644 --- a/modules/angular2/src/change_detection/parser/parser.js +++ b/modules/angular2/src/change_detection/parser/parser.js @@ -1,4 +1,4 @@ -import {FIELD, int, isBlank, isPresent, BaseException, StringWrapper, RegExpWrapper} from 'angular2/src/facade/lang'; +import {int, isBlank, isPresent, BaseException, StringWrapper, RegExpWrapper} from 'angular2/src/facade/lang'; import {ListWrapper, List} from 'angular2/src/facade/collection'; import {Lexer, EOF, Token, $PERIOD, $COLON, $SEMICOLON, $LBRACKET, $RBRACKET, $COMMA, $LBRACE, $RBRACE, $LPAREN, $RPAREN} from './lexer'; diff --git a/modules/angular2/src/core/application.js b/modules/angular2/src/core/application.js index 313c71db06..4af4a34963 100644 --- a/modules/angular2/src/core/application.js +++ b/modules/angular2/src/core/application.js @@ -1,5 +1,5 @@ import {Injector, bind, OpaqueToken} from 'angular2/di'; -import {Type, FIELD, isBlank, isPresent, BaseException, assertionsEnabled, print} from 'angular2/src/facade/lang'; +import {Type, isBlank, isPresent, BaseException, assertionsEnabled, print} from 'angular2/src/facade/lang'; import {BrowserDomAdapter} from 'angular2/src/dom/browser_adapter'; import {DOM} from 'angular2/src/dom/dom_adapter'; import {Compiler, CompilerCache} from './compiler/compiler'; diff --git a/modules/angular2/src/core/compiler/element_injector.js b/modules/angular2/src/core/compiler/element_injector.js index 2e3dbdee29..dd3a344526 100644 --- a/modules/angular2/src/core/compiler/element_injector.js +++ b/modules/angular2/src/core/compiler/element_injector.js @@ -1,4 +1,4 @@ -import {FIELD, isPresent, isBlank, Type, int, BaseException} from 'angular2/src/facade/lang'; +import {isPresent, isBlank, Type, int, BaseException} from 'angular2/src/facade/lang'; import {Math} from 'angular2/src/facade/math'; import {List, ListWrapper, MapWrapper} from 'angular2/src/facade/collection'; import {Injector, Key, Dependency, bind, Binding, NoProviderError, ProviderError, CyclicDependencyError} from 'angular2/di'; diff --git a/modules/angular2/src/core/compiler/view.js b/modules/angular2/src/core/compiler/view.js index 64bdd1dbf8..6b70480442 100644 --- a/modules/angular2/src/core/compiler/view.js +++ b/modules/angular2/src/core/compiler/view.js @@ -9,7 +9,7 @@ import {BindingPropagationConfig} from './binding_propagation_config'; import {ElementBinder} from './element_binder'; import {DirectiveMetadata} from './directive_metadata'; import {SetterFn} from 'angular2/src/reflection/types'; -import {FIELD, IMPLEMENTS, int, isPresent, isBlank, BaseException} from 'angular2/src/facade/lang'; +import {IMPLEMENTS, int, isPresent, isBlank, BaseException} from 'angular2/src/facade/lang'; import {Injector} from 'angular2/di'; import {NgElement} from 'angular2/src/core/dom/element'; import {ViewContainer} from './view_container'; diff --git a/modules/angular2/src/di/binding.js b/modules/angular2/src/di/binding.js index 49fecc3d0d..51a03a4a5c 100644 --- a/modules/angular2/src/di/binding.js +++ b/modules/angular2/src/di/binding.js @@ -1,4 +1,4 @@ -import {FIELD, Type, isBlank, isPresent} from 'angular2/src/facade/lang'; +import {Type, isBlank, isPresent} from 'angular2/src/facade/lang'; import {List, MapWrapper, ListWrapper} from 'angular2/src/facade/collection'; import {reflector} from 'angular2/src/reflection/reflection'; import {Key} from './key'; diff --git a/modules/angular2/src/di/key.js b/modules/angular2/src/di/key.js index 9a37742c58..25704081c5 100644 --- a/modules/angular2/src/di/key.js +++ b/modules/angular2/src/di/key.js @@ -1,6 +1,6 @@ import {KeyMetadataError} from './exceptions'; import {MapWrapper, Map} from 'angular2/src/facade/collection'; -import {FIELD, int, isPresent} from 'angular2/src/facade/lang'; +import {int, isPresent} from 'angular2/src/facade/lang'; export class Key { token; diff --git a/modules/angular2/src/facade/lang.dart b/modules/angular2/src/facade/lang.dart index e37ed59c62..d4c0f966c4 100644 --- a/modules/angular2/src/facade/lang.dart +++ b/modules/angular2/src/facade/lang.dart @@ -10,11 +10,6 @@ class Math { static double random() => _random.nextDouble(); } -class FIELD { - final String definition; - const FIELD(this.definition); -} - class CONST { const CONST(); } diff --git a/modules/angular2/src/facade/lang.es6 b/modules/angular2/src/facade/lang.es6 index 76107378f2..1e9a0dd960 100644 --- a/modules/angular2/src/facade/lang.es6 +++ b/modules/angular2/src/facade/lang.es6 @@ -22,12 +22,6 @@ if (assertionsEnabled_) { } export {int}; -export class FIELD { - constructor(definition) { - this.definition = definition; - } -} - export class CONST {} export class ABSTRACT {} export class IMPLEMENTS {} diff --git a/modules/angular2/test/core/compiler/element_injector_spec.js b/modules/angular2/test/core/compiler/element_injector_spec.js index af2c89b63f..b425e68a11 100644 --- a/modules/angular2/test/core/compiler/element_injector_spec.js +++ b/modules/angular2/test/core/compiler/element_injector_spec.js @@ -1,5 +1,5 @@ import {describe, ddescribe, it, iit, xit, xdescribe, expect, beforeEach, SpyObject, proxy, el} from 'angular2/test_lib'; -import {isBlank, isPresent, FIELD, IMPLEMENTS} from 'angular2/src/facade/lang'; +import {isBlank, isPresent, IMPLEMENTS} from 'angular2/src/facade/lang'; import {ListWrapper, MapWrapper, List, StringMapWrapper} from 'angular2/src/facade/collection'; import {ProtoElementInjector, PreBuiltObjects, DirectiveBinding} from 'angular2/src/core/compiler/element_injector'; import {Parent, Ancestor} from 'angular2/src/core/annotations/visibility';