diff --git a/modules/angular2/core.dart b/modules/angular2/core.dart new file mode 100644 index 0000000000..187285742e --- /dev/null +++ b/modules/angular2/core.dart @@ -0,0 +1,26 @@ +library angular2.core; + +export './src/core/metadata.dart'; +export './src/core/util.dart'; +export './src/core/dev_mode.dart'; +export './src/core/di.dart' hide ForwardRefFn, resolveForwardRef, forwardRef; +export './src/facade/facade.dart'; +export './src/core/application_ref.dart' show platform, createNgZone, PlatformRef, ApplicationRef; +export './src/core/application_tokens.dart' show APP_ID, + APP_COMPONENT, + APP_INITIALIZER, + PACKAGE_ROOT_URL, + PLATFORM_INITIALIZER; +export './src/core/zone.dart'; +export './src/core/render.dart'; +export './src/core/linker.dart'; +export './src/core/debug/debug_element.dart' show DebugElement, + Scope, + inspectElement, + asNativeElements; +export './src/core/testability/testability.dart'; +export './src/core/change_detection.dart'; +export './src/core/platform_directives_and_pipes.dart'; +export './src/core/platform_common_providers.dart'; +export './src/core/application_common_providers.dart'; +export './src/core/reflection/reflection.dart'; diff --git a/modules/angular2/test/core/di/forward_ref_spec.ts b/modules/angular2/test/core/di/forward_ref_spec.ts index 9d584ca267..c4e4688a4e 100644 --- a/modules/angular2/test/core/di/forward_ref_spec.ts +++ b/modules/angular2/test/core/di/forward_ref_spec.ts @@ -9,7 +9,7 @@ import { it, xit, } from 'angular2/testing_internal'; -import {forwardRef, resolveForwardRef} from 'angular2/core'; +import {forwardRef, resolveForwardRef} from 'angular2/src/core/di'; import {Type} from 'angular2/src/facade/lang'; export function main() { diff --git a/modules/angular2/test/public_api_spec.ts b/modules/angular2/test/public_api_spec.ts index 6dab9fb13c..4177ee25bb 100644 --- a/modules/angular2/test/public_api_spec.ts +++ b/modules/angular2/test/public_api_spec.ts @@ -10,6 +10,7 @@ import { xdescribe, xit } from 'angular2/testing_internal'; +import {IS_DART} from 'angular2/src/facade/lang'; import {getSymbolsFromLibrary} from './symbol_inspector/symbol_inspector'; import {SymbolsDiff} from './symbol_inspector/symbol_differ'; @@ -25,7 +26,657 @@ import {SymbolsDiff} from './symbol_inspector/symbol_differ'; // ================================================================================================= // ================================================================================================= -var NG_ALL = [ +var NG_COMMON = [ + 'AbstractControl', + 'AbstractControl.asyncValidator', + 'AbstractControl.asyncValidator=', + 'AbstractControl.dirty', + 'AbstractControl.errors', + 'AbstractControl.find()', + 'AbstractControl.getError()', + 'AbstractControl.hasError()', + 'AbstractControl.markAsDirty()', + 'AbstractControl.markAsPending()', + 'AbstractControl.markAsTouched()', + 'AbstractControl.pending', + 'AbstractControl.pristine', + 'AbstractControl.setErrors()', + 'AbstractControl.setParent()', + 'AbstractControl.status', + 'AbstractControl.statusChanges', + 'AbstractControl.touched', + 'AbstractControl.untouched', + 'AbstractControl.updateValueAndValidity()', + 'AbstractControl.valid', + 'AbstractControl.validator', + 'AbstractControl.validator=', + 'AbstractControl.value', + 'AbstractControl.valueChanges', + 'AbstractControlDirective', + 'AbstractControlDirective.control', + 'AbstractControlDirective.dirty', + 'AbstractControlDirective.errors', + 'AbstractControlDirective.path', + 'AbstractControlDirective.pristine', + 'AbstractControlDirective.touched', + 'AbstractControlDirective.untouched', + 'AbstractControlDirective.valid', + 'AbstractControlDirective.value', + 'AsyncPipe', + 'AsyncPipe.ngOnDestroy()', + 'AsyncPipe.transform()', + 'COMMON_DIRECTIVES', + 'COMMON_PIPES', + 'CORE_DIRECTIVES', + 'CheckboxControlValueAccessor', + 'CheckboxControlValueAccessor.onChange', + 'CheckboxControlValueAccessor.onChange=', + 'CheckboxControlValueAccessor.onTouched', + 'CheckboxControlValueAccessor.onTouched=', + 'CheckboxControlValueAccessor.registerOnChange()', + 'CheckboxControlValueAccessor.registerOnTouched()', + 'CheckboxControlValueAccessor.writeValue()', + 'Control', + 'Control.asyncValidator', + 'Control.asyncValidator=', + 'Control.dirty', + 'Control.errors', + 'Control.find()', + 'Control.getError()', + 'Control.hasError()', + 'Control.markAsDirty()', + 'Control.markAsPending()', + 'Control.markAsTouched()', + 'Control.pending', + 'Control.pristine', + 'Control.registerOnChange()', + 'Control.setErrors()', + 'Control.setParent()', + 'Control.status', + 'Control.statusChanges', + 'Control.touched', + 'Control.untouched', + 'Control.updateValue()', + 'Control.updateValueAndValidity()', + 'Control.valid', + 'Control.validator', + 'Control.validator=', + 'Control.value', + 'Control.valueChanges', + 'ControlArray', + 'ControlArray.asyncValidator', + 'ControlArray.asyncValidator=', + 'ControlArray.at()', + 'ControlArray.controls', + 'ControlArray.controls=', + 'ControlArray.dirty', + 'ControlArray.errors', + 'ControlArray.find()', + 'ControlArray.getError()', + 'ControlArray.hasError()', + 'ControlArray.insert()', + 'ControlArray.length', + 'ControlArray.markAsDirty()', + 'ControlArray.markAsPending()', + 'ControlArray.markAsTouched()', + 'ControlArray.pending', + 'ControlArray.pristine', + 'ControlArray.push()', + 'ControlArray.removeAt()', + 'ControlArray.setErrors()', + 'ControlArray.setParent()', + 'ControlArray.status', + 'ControlArray.statusChanges', + 'ControlArray.touched', + 'ControlArray.untouched', + 'ControlArray.updateValueAndValidity()', + 'ControlArray.valid', + 'ControlArray.validator', + 'ControlArray.validator=', + 'ControlArray.value', + 'ControlArray.valueChanges', + 'ControlContainer', + 'ControlContainer.control', + 'ControlContainer.dirty', + 'ControlContainer.errors', + 'ControlContainer.formDirective', + 'ControlContainer.name', + 'ControlContainer.name=', + 'ControlContainer.path', + 'ControlContainer.pristine', + 'ControlContainer.touched', + 'ControlContainer.untouched', + 'ControlContainer.valid', + 'ControlContainer.value', + 'ControlGroup', + 'ControlGroup.addControl()', + 'ControlGroup.asyncValidator', + 'ControlGroup.asyncValidator=', + 'ControlGroup.contains()', + 'ControlGroup.controls', + 'ControlGroup.controls=', + 'ControlGroup.dirty', + 'ControlGroup.errors', + 'ControlGroup.exclude()', + 'ControlGroup.find()', + 'ControlGroup.getError()', + 'ControlGroup.hasError()', + 'ControlGroup.include()', + 'ControlGroup.markAsDirty()', + 'ControlGroup.markAsPending()', + 'ControlGroup.markAsTouched()', + 'ControlGroup.pending', + 'ControlGroup.pristine', + 'ControlGroup.removeControl()', + 'ControlGroup.setErrors()', + 'ControlGroup.setParent()', + 'ControlGroup.status', + 'ControlGroup.statusChanges', + 'ControlGroup.touched', + 'ControlGroup.untouched', + 'ControlGroup.updateValueAndValidity()', + 'ControlGroup.valid', + 'ControlGroup.validator', + 'ControlGroup.validator=', + 'ControlGroup.value', + 'ControlGroup.valueChanges', + 'ControlValueAccessor:dart', + 'CurrencyPipe', + 'CurrencyPipe.transform()', + 'DatePipe', + 'DatePipe.supports()', + 'DatePipe.transform()', + 'DecimalPipe', + 'DecimalPipe.transform()', + 'DefaultValueAccessor', + 'DefaultValueAccessor.onChange', + 'DefaultValueAccessor.onChange=', + 'DefaultValueAccessor.onTouched', + 'DefaultValueAccessor.onTouched=', + 'DefaultValueAccessor.registerOnChange()', + 'DefaultValueAccessor.registerOnTouched()', + 'DefaultValueAccessor.writeValue()', + 'FORM_BINDINGS', + 'FORM_DIRECTIVES', + 'FORM_PROVIDERS', + 'Form:dart', + 'FormBuilder', + 'FormBuilder.array()', + 'FormBuilder.control()', + 'FormBuilder.group()', + 'JsonPipe', + 'JsonPipe.transform()', + 'LowerCasePipe', + 'LowerCasePipe.transform()', + 'MaxLengthValidator', + 'MaxLengthValidator.validate()', + 'MinLengthValidator', + 'MinLengthValidator.validate()', + 'NG_ASYNC_VALIDATORS', + 'NG_VALIDATORS', + 'NG_VALUE_ACCESSOR', + 'NgClass', + 'NgClass.initialClasses=', + 'NgClass.ngDoCheck()', + 'NgClass.ngOnDestroy()', + 'NgClass.rawClass=', + 'NgControl', + 'NgControl.asyncValidator', + 'NgControl.control', + 'NgControl.dirty', + 'NgControl.errors', + 'NgControl.name', + 'NgControl.name=', + 'NgControl.path', + 'NgControl.pristine', + 'NgControl.touched', + 'NgControl.untouched', + 'NgControl.valid', + 'NgControl.validator', + 'NgControl.value', + 'NgControl.valueAccessor', + 'NgControl.valueAccessor=', + 'NgControlGroup', + 'NgControlGroup.asyncValidator', + 'NgControlGroup.control', + 'NgControlGroup.dirty', + 'NgControlGroup.errors', + 'NgControlGroup.formDirective', + 'NgControlGroup.name', + 'NgControlGroup.name=', + 'NgControlGroup.ngOnDestroy()', + 'NgControlGroup.ngOnInit()', + 'NgControlGroup.path', + 'NgControlGroup.pristine', + 'NgControlGroup.touched', + 'NgControlGroup.untouched', + 'NgControlGroup.valid', + 'NgControlGroup.validator', + 'NgControlGroup.value', + 'NgControlName', + 'NgControlName.asyncValidator', + 'NgControlName.control', + 'NgControlName.dirty', + 'NgControlName.errors', + 'NgControlName.formDirective', + 'NgControlName.model', + 'NgControlName.model=', + 'NgControlName.name', + 'NgControlName.name=', + 'NgControlName.ngOnChanges()', + 'NgControlName.ngOnDestroy()', + 'NgControlName.path', + 'NgControlName.pristine', + 'NgControlName.touched', + 'NgControlName.untouched', + 'NgControlName.update', + 'NgControlName.update=', + 'NgControlName.valid', + 'NgControlName.validator', + 'NgControlName.value', + 'NgControlName.valueAccessor', + 'NgControlName.valueAccessor=', + 'NgControlName.viewModel', + 'NgControlName.viewModel=', + 'NgControlName.viewToModelUpdate()', + 'NgControlStatus', + 'NgControlStatus.ngClassDirty', + 'NgControlStatus.ngClassInvalid', + 'NgControlStatus.ngClassPristine', + 'NgControlStatus.ngClassTouched', + 'NgControlStatus.ngClassUntouched', + 'NgControlStatus.ngClassValid', + 'NgFor', + 'NgFor.ngDoCheck()', + 'NgFor.ngForOf=', + 'NgFor.ngForTemplate=', + 'NgForm', + 'NgForm.addControl()', + 'NgForm.addControlGroup()', + 'NgForm.control', + 'NgForm.controls', + 'NgForm.dirty', + 'NgForm.errors', + 'NgForm.form', + 'NgForm.form=', + 'NgForm.formDirective', + 'NgForm.getControl()', + 'NgForm.getControlGroup()', + 'NgForm.name', + 'NgForm.name=', + 'NgForm.ngSubmit', + 'NgForm.ngSubmit=', + 'NgForm.onSubmit()', + 'NgForm.path', + 'NgForm.pristine', + 'NgForm.removeControl()', + 'NgForm.removeControlGroup()', + 'NgForm.touched', + 'NgForm.untouched', + 'NgForm.updateModel()', + 'NgForm.valid', + 'NgForm.value', + 'NgFormControl', + 'NgFormControl.asyncValidator', + 'NgFormControl.control', + 'NgFormControl.dirty', + 'NgFormControl.errors', + 'NgFormControl.form', + 'NgFormControl.form=', + 'NgFormControl.model', + 'NgFormControl.model=', + 'NgFormControl.name', + 'NgFormControl.name=', + 'NgFormControl.ngOnChanges()', + 'NgFormControl.path', + 'NgFormControl.pristine', + 'NgFormControl.touched', + 'NgFormControl.untouched', + 'NgFormControl.update', + 'NgFormControl.update=', + 'NgFormControl.valid', + 'NgFormControl.validator', + 'NgFormControl.value', + 'NgFormControl.valueAccessor', + 'NgFormControl.valueAccessor=', + 'NgFormControl.viewModel', + 'NgFormControl.viewModel=', + 'NgFormControl.viewToModelUpdate()', + 'NgFormModel', + 'NgFormModel.addControl()', + 'NgFormModel.addControlGroup()', + 'NgFormModel.control', + 'NgFormModel.directives', + 'NgFormModel.directives=', + 'NgFormModel.dirty', + 'NgFormModel.errors', + 'NgFormModel.form', + 'NgFormModel.form=', + 'NgFormModel.formDirective', + 'NgFormModel.getControl()', + 'NgFormModel.getControlGroup()', + 'NgFormModel.name', + 'NgFormModel.name=', + 'NgFormModel.ngOnChanges()', + 'NgFormModel.ngSubmit', + 'NgFormModel.ngSubmit=', + 'NgFormModel.onSubmit()', + 'NgFormModel.path', + 'NgFormModel.pristine', + 'NgFormModel.removeControl()', + 'NgFormModel.removeControlGroup()', + 'NgFormModel.touched', + 'NgFormModel.untouched', + 'NgFormModel.updateModel()', + 'NgFormModel.valid', + 'NgFormModel.value', + 'NgIf', + 'NgIf.ngIf=', + 'NgModel', + 'NgModel.asyncValidator', + 'NgModel.control', + 'NgModel.dirty', + 'NgModel.errors', + 'NgModel.model', + 'NgModel.model=', + 'NgModel.name', + 'NgModel.name=', + 'NgModel.ngOnChanges()', + 'NgModel.path', + 'NgModel.pristine', + 'NgModel.touched', + 'NgModel.untouched', + 'NgModel.update', + 'NgModel.update=', + 'NgModel.valid', + 'NgModel.validator', + 'NgModel.value', + 'NgModel.valueAccessor', + 'NgModel.valueAccessor=', + 'NgModel.viewModel', + 'NgModel.viewModel=', + 'NgModel.viewToModelUpdate()', + 'NgSelectOption', + 'NgStyle', + 'NgStyle.ngDoCheck()', + 'NgStyle.rawStyle=', + 'NgSwitch', + 'NgSwitch.ngSwitch=', + 'NgSwitchDefault', + 'NgSwitchWhen', + 'NgSwitchWhen.ngSwitchWhen=', + 'NumberPipe', + 'ObservableListDiff.check():dart', + 'ObservableListDiff.collection:dart', + 'ObservableListDiff.diff():dart', + 'ObservableListDiff.forEachAddedItem():dart', + 'ObservableListDiff.forEachItem():dart', + 'ObservableListDiff.forEachMovedItem():dart', + 'ObservableListDiff.forEachPreviousItem():dart', + 'ObservableListDiff.forEachRemovedItem():dart', + 'ObservableListDiff.isDirty:dart', + 'ObservableListDiff.length:dart', + 'ObservableListDiff.onDestroy():dart', + 'ObservableListDiff:dart', + 'ObservableListDiffFactory.create():dart', + 'ObservableListDiffFactory.supports():dart', + 'ObservableListDiffFactory:dart', + 'PercentPipe', + 'PercentPipe.transform()', + 'RequiredValidator', + 'SelectControlValueAccessor', + 'SelectControlValueAccessor.onChange', + 'SelectControlValueAccessor.onChange=', + 'SelectControlValueAccessor.onTouched', + 'SelectControlValueAccessor.onTouched=', + 'SelectControlValueAccessor.registerOnChange()', + 'SelectControlValueAccessor.registerOnTouched()', + 'SelectControlValueAccessor.value', + 'SelectControlValueAccessor.value=', + 'SelectControlValueAccessor.writeValue()', + 'SlicePipe', + 'SlicePipe.supports()', + 'SlicePipe.transform()', + 'UpperCasePipe', + 'UpperCasePipe.transform()', + 'Validator:dart', + 'Validators', + 'Validators#compose()', + 'Validators#composeAsync()', + 'Validators#maxLength()', + 'Validators#minLength()', + 'Validators#nullValidator()', + 'Validators#required()' +]; + +var NG_COMPILER = [ + "AttrAst.name", + "AttrAst.name=", + "AttrAst.sourceSpan", + "AttrAst.sourceSpan=", + "AttrAst.value", + "AttrAst.value=", + "BoundDirectivePropertyAst.directiveName", + "BoundDirectivePropertyAst.directiveName=", + "BoundDirectivePropertyAst.sourceSpan", + "BoundDirectivePropertyAst.sourceSpan=", + "BoundDirectivePropertyAst.templateName", + "BoundDirectivePropertyAst.templateName=", + "BoundDirectivePropertyAst.value", + "BoundDirectivePropertyAst.value=", + "BoundElementPropertyAst.name", + "BoundElementPropertyAst.name=", + "BoundElementPropertyAst.sourceSpan", + "BoundElementPropertyAst.sourceSpan=", + "BoundElementPropertyAst.type", + "BoundElementPropertyAst.type=", + "BoundElementPropertyAst.unit", + "BoundElementPropertyAst.unit=", + "BoundElementPropertyAst.value", + "BoundElementPropertyAst.value=", + "BoundEventAst.handler", + "BoundEventAst.handler=", + "BoundEventAst.name", + "BoundEventAst.name=", + "BoundEventAst.sourceSpan", + "BoundEventAst.sourceSpan=", + "BoundEventAst.target", + "BoundEventAst.target=", + "BoundTextAst.ngContentIndex", + "BoundTextAst.ngContentIndex=", + "BoundTextAst.sourceSpan", + "BoundTextAst.sourceSpan=", + "BoundTextAst.value", + "BoundTextAst.value=", + "CompileDirectiveMetadata.changeDetection", + "CompileDirectiveMetadata.changeDetection=", + "CompileDirectiveMetadata.dynamicLoadable", + "CompileDirectiveMetadata.dynamicLoadable=", + "CompileDirectiveMetadata.exportAs", + "CompileDirectiveMetadata.exportAs=", + "CompileDirectiveMetadata.hostAttributes", + "CompileDirectiveMetadata.hostAttributes=", + "CompileDirectiveMetadata.hostListeners", + "CompileDirectiveMetadata.hostListeners=", + "CompileDirectiveMetadata.hostProperties", + "CompileDirectiveMetadata.hostProperties=", + "CompileDirectiveMetadata.inputs", + "CompileDirectiveMetadata.inputs=", + "CompileDirectiveMetadata.isComponent", + "CompileDirectiveMetadata.isComponent=", + "CompileDirectiveMetadata.lifecycleHooks", + "CompileDirectiveMetadata.lifecycleHooks=", + "CompileDirectiveMetadata.outputs", + "CompileDirectiveMetadata.outputs=", + "CompileDirectiveMetadata.selector", + "CompileDirectiveMetadata.selector=", + "CompileDirectiveMetadata.template", + "CompileDirectiveMetadata.template=", + "CompileDirectiveMetadata.type", + "CompileDirectiveMetadata.type=", + "CompileTemplateMetadata.encapsulation", + "CompileTemplateMetadata.encapsulation=", + "CompileTemplateMetadata.ngContentSelectors", + "CompileTemplateMetadata.ngContentSelectors=", + "CompileTemplateMetadata.styleUrls", + "CompileTemplateMetadata.styleUrls=", + "CompileTemplateMetadata.styles", + "CompileTemplateMetadata.styles=", + "CompileTemplateMetadata.template", + "CompileTemplateMetadata.template=", + "CompileTemplateMetadata.templateUrl", + "CompileTemplateMetadata.templateUrl=", + "CompileTypeMetadata.isHost", + "CompileTypeMetadata.isHost=", + "CompileTypeMetadata.moduleUrl", + "CompileTypeMetadata.moduleUrl=", + "CompileTypeMetadata.name", + "CompileTypeMetadata.name=", + "CompileTypeMetadata.runtime", + "CompileTypeMetadata.runtime=", + "DirectiveAst.directive", + "DirectiveAst.directive=", + "DirectiveAst.exportAsVars", + "DirectiveAst.exportAsVars=", + "DirectiveAst.hostEvents", + "DirectiveAst.hostEvents=", + "DirectiveAst.hostProperties", + "DirectiveAst.hostProperties=", + "DirectiveAst.inputs", + "DirectiveAst.inputs=", + "DirectiveAst.sourceSpan", + "DirectiveAst.sourceSpan=", + "ElementAst.attrs", + "ElementAst.attrs=", + "ElementAst.children", + "ElementAst.children=", + "ElementAst.directives", + "ElementAst.directives=", + "ElementAst.exportAsVars", + "ElementAst.exportAsVars=", + "ElementAst.inputs", + "ElementAst.inputs=", + "ElementAst.name", + "ElementAst.name=", + "ElementAst.ngContentIndex", + "ElementAst.ngContentIndex=", + "ElementAst.outputs", + "ElementAst.outputs=", + "ElementAst.sourceSpan", + "ElementAst.sourceSpan=", + "EmbeddedTemplateAst.attrs", + "EmbeddedTemplateAst.attrs=", + "EmbeddedTemplateAst.children", + "EmbeddedTemplateAst.children=", + "EmbeddedTemplateAst.directives", + "EmbeddedTemplateAst.directives=", + "EmbeddedTemplateAst.ngContentIndex", + "EmbeddedTemplateAst.ngContentIndex=", + "EmbeddedTemplateAst.outputs", + "EmbeddedTemplateAst.outputs=", + "EmbeddedTemplateAst.sourceSpan", + "EmbeddedTemplateAst.sourceSpan=", + "EmbeddedTemplateAst.vars", + "EmbeddedTemplateAst.vars=", + "NgContentAst.index", + "NgContentAst.index=", + "NgContentAst.ngContentIndex", + "NgContentAst.ngContentIndex=", + "NgContentAst.sourceSpan", + "NgContentAst.sourceSpan=", + "PropertyBindingType#Attribute", + "PropertyBindingType#Class", + "PropertyBindingType#Property", + "PropertyBindingType#Style", + "PropertyBindingType#values", + "PropertyBindingType.index", + "SourceModule.moduleUrl", + "SourceModule.moduleUrl=", + "SourceModule.sourceWithModuleRefs", + "SourceModule.sourceWithModuleRefs=", + "SourceWithImports.imports", + "SourceWithImports.imports=", + "SourceWithImports.source", + "SourceWithImports.source=", + "TemplateAst:dart", + "TemplateAst.sourceSpan", + "TemplateAst.sourceSpan=", + "TemplateAstVisitor:dart", + "TextAst.ngContentIndex", + "TextAst.ngContentIndex=", + "TextAst.sourceSpan", + "TextAst.sourceSpan=", + "TextAst.value", + "TextAst.value=", + "VariableAst.name", + "VariableAst.name=", + "VariableAst.sourceSpan", + "VariableAst.sourceSpan=", + "VariableAst.value", + "VariableAst.value=", + "AppRootUrl", + "AppRootUrl.value", + "AppRootUrl.value=", + "DEFAULT_PACKAGE_URL_PROVIDER", + "UrlResolver", + "UrlResolver.resolve()", + "getUrlScheme()", + "AttrAst", + "AttrAst.visit()", + "BoundDirectivePropertyAst", + "BoundDirectivePropertyAst.visit()", + "BoundElementPropertyAst", + "BoundElementPropertyAst.visit()", + "BoundEventAst", + "BoundEventAst.fullName", + "BoundEventAst.visit()", + "BoundTextAst", + "BoundTextAst.visit()", + "COMPILER_PROVIDERS", + "CompileDirectiveMetadata", + "CompileDirectiveMetadata#create()", + "CompileDirectiveMetadata#fromJson()", + "CompileDirectiveMetadata.toJson()", + "CompileTemplateMetadata", + "CompileTemplateMetadata#fromJson()", + "CompileTemplateMetadata.toJson()", + "CompileTypeMetadata", + "CompileTypeMetadata#fromJson()", + "CompileTypeMetadata.toJson()", + "DirectiveAst", + "DirectiveAst.visit()", + "ElementAst", + "ElementAst.getComponent()", + "ElementAst.isBound()", + "ElementAst.visit()", + "EmbeddedTemplateAst", + "EmbeddedTemplateAst.visit()", + "NgContentAst", + "NgContentAst.visit()", + "PLATFORM_DIRECTIVES", + "PLATFORM_PIPES", + "PropertyBindingType", + "SourceModule", + "SourceModule.getSourceWithImports()", + "SourceWithImports", + "TEMPLATE_TRANSFORMS", + "TemplateCompiler", + "TemplateCompiler.clearCache()", + "TemplateCompiler.compileHostComponentRuntime()", + "TemplateCompiler.compileStylesheetCodeGen()", + "TemplateCompiler.compileTemplatesCodeGen()", + "TemplateCompiler.normalizeDirectiveMetadata()", + "TextAst", + "TextAst.visit()", + "VariableAst", + "VariableAst.visit()", + "XHR", + "XHR.get()", + "createWithoutPackagePrefix()", + "templateVisitAll()" +]; + +var NG_CORE = [ 'APP_COMPONENT', 'APP_INITIALIZER', 'APP_ID', @@ -41,46 +692,6 @@ var NG_ALL = [ 'AbstractProviderError.message', 'AbstractProviderError.message=', 'AbstractProviderError.stackTrace', - 'AbstractControl', - 'AbstractControl.dirty', - 'AbstractControl.errors', - 'AbstractControl.find()', - 'AbstractControl.getError()', - 'AbstractControl.hasError()', - 'AbstractControl.setErrors()', - 'AbstractControl.markAsDirty()', - 'AbstractControl.markAsPending()', - 'AbstractControl.markAsTouched()', - 'AbstractControl.pending', - 'AbstractControl.pristine', - 'AbstractControl.setParent()', - 'AbstractControl.status', - 'AbstractControl.touched', - 'AbstractControl.untouched', - 'AbstractControl.updateValueAndValidity()', - 'AbstractControl.valid', - 'AbstractControl.validator', - 'AbstractControl.validator=', - 'AbstractControl.asyncValidator', - 'AbstractControl.asyncValidator=', - 'AbstractControl.value', - 'AbstractControl.valueChanges', - 'AbstractControl.statusChanges', - 'AbstractControlDirective', - 'AbstractControlDirective.control', - 'AbstractControlDirective.dirty', - 'AbstractControlDirective.errors', - 'AbstractControlDirective.pristine', - 'AbstractControlDirective.touched', - 'AbstractControlDirective.untouched', - 'AbstractControlDirective.valid', - 'AbstractControlDirective.value', - 'AbstractControlDirective.path', - 'AngularEntrypoint', - 'AngularEntrypoint.name', - 'AppRootUrl', - 'AppRootUrl.value', - 'AppRootUrl.value=', 'AppViewManager:js', 'AppViewManager.getHostElement():js', /* @@ -109,9 +720,6 @@ var NG_ALL = [ 'ApplicationRef.registerDisposeListener()', 'ApplicationRef.tick()', */ - 'AsyncPipe', - 'AsyncPipe.ngOnDestroy()', - 'AsyncPipe.transform()', 'Attribute', 'Attribute.attributeName', 'Attribute.token', @@ -130,124 +738,6 @@ var NG_ALL = [ 'Binding.toClass', 'Binding.toFactory', 'Binding.toValue', - 'BROWSER_APP_PROVIDERS:js', - 'BROWSER_PROVIDERS:js', - - 'BrowserDomAdapter:js', - 'BrowserDomAdapter#makeCurrent():js', - 'BrowserDomAdapter.addClass():js', - 'BrowserDomAdapter.adoptNode():js', - 'BrowserDomAdapter.appendChild():js', - 'BrowserDomAdapter.attrToPropMap:js', - 'BrowserDomAdapter.attributeMap():js', - 'BrowserDomAdapter.cancelAnimationFrame():js', - 'BrowserDomAdapter.childNodes():js', - 'BrowserDomAdapter.childNodesAsList():js', - 'BrowserDomAdapter.classList():js', - 'BrowserDomAdapter.clearNodes():js', - 'BrowserDomAdapter.clone():js', - 'BrowserDomAdapter.content():js', - 'BrowserDomAdapter.createComment():js', - 'BrowserDomAdapter.createElement():js', - 'BrowserDomAdapter.createElementNS():js', - 'BrowserDomAdapter.createEvent():js', - 'BrowserDomAdapter.createHtmlDocument():js', - 'BrowserDomAdapter.createMouseEvent():js', - 'BrowserDomAdapter.createScriptTag():js', - 'BrowserDomAdapter.createShadowRoot():js', - 'BrowserDomAdapter.createStyleElement():js', - 'BrowserDomAdapter.createTemplate():js', - 'BrowserDomAdapter.createTextNode():js', - 'BrowserDomAdapter.defaultDoc():js', - 'BrowserDomAdapter.dispatchEvent():js', - 'BrowserDomAdapter.elementMatches():js', - 'BrowserDomAdapter.firstChild():js', - 'BrowserDomAdapter.getAnimationPrefix():js', - 'BrowserDomAdapter.getAttribute():js', - 'BrowserDomAdapter.getBaseHref():js', - 'BrowserDomAdapter.getBoundingClientRect():js', - 'BrowserDomAdapter.getChecked():js', - 'BrowserDomAdapter.getComputedStyle():js', - 'BrowserDomAdapter.getData():js', - 'BrowserDomAdapter.getDistributedNodes():js', - 'BrowserDomAdapter.getElementsByClassName():js', - 'BrowserDomAdapter.getElementsByTagName():js', - 'BrowserDomAdapter.getEventKey():js', - 'BrowserDomAdapter.getGlobalEventTarget():js', - 'BrowserDomAdapter.getHistory():js', - 'BrowserDomAdapter.getHost():js', - 'BrowserDomAdapter.getHref():js', - 'BrowserDomAdapter.getInnerHTML():js', - 'BrowserDomAdapter.getLocation():js', - 'BrowserDomAdapter.getOuterHTML():js', - 'BrowserDomAdapter.getProperty():js', - 'BrowserDomAdapter.getShadowRoot():js', - 'BrowserDomAdapter.getStyle():js', - 'BrowserDomAdapter.getText():js', - 'BrowserDomAdapter.getTitle():js', - 'BrowserDomAdapter.getTransitionEnd():js', - 'BrowserDomAdapter.getUserAgent():js', - 'BrowserDomAdapter.getValue():js', - 'BrowserDomAdapter.getXHR():js', - 'BrowserDomAdapter.hasAttribute():js', - 'BrowserDomAdapter.hasClass():js', - 'BrowserDomAdapter.hasProperty():js', - 'BrowserDomAdapter.hasShadowRoot():js', - 'BrowserDomAdapter.importIntoDoc():js', - 'BrowserDomAdapter.insertAfter():js', - 'BrowserDomAdapter.insertAllBefore():js', - 'BrowserDomAdapter.insertBefore():js', - 'BrowserDomAdapter.invoke():js', - 'BrowserDomAdapter.isCommentNode():js', - 'BrowserDomAdapter.isElementNode():js', - 'BrowserDomAdapter.isPrevented():js', - 'BrowserDomAdapter.isShadowRoot():js', - 'BrowserDomAdapter.isTemplateElement():js', - 'BrowserDomAdapter.isTextNode():js', - 'BrowserDomAdapter.log():js', - 'BrowserDomAdapter.logError():js', - 'BrowserDomAdapter.logGroup():js', - 'BrowserDomAdapter.logGroupEnd():js', - 'BrowserDomAdapter.nextSibling():js', - 'BrowserDomAdapter.nodeName():js', - 'BrowserDomAdapter.nodeValue():js', - 'BrowserDomAdapter.on():js', - 'BrowserDomAdapter.onAndCancel():js', - 'BrowserDomAdapter.parentElement():js', - 'BrowserDomAdapter.parse():js', - 'BrowserDomAdapter.performanceNow():js', - 'BrowserDomAdapter.preventDefault():js', - 'BrowserDomAdapter.query():js', - 'BrowserDomAdapter.querySelector():js', - 'BrowserDomAdapter.querySelectorAll():js', - 'BrowserDomAdapter.remove():js', - 'BrowserDomAdapter.removeAttribute():js', - 'BrowserDomAdapter.removeChild():js', - 'BrowserDomAdapter.removeClass():js', - 'BrowserDomAdapter.removeStyle():js', - 'BrowserDomAdapter.replaceChild():js', - 'BrowserDomAdapter.requestAnimationFrame():js', - 'BrowserDomAdapter.resetBaseElement():js', - 'BrowserDomAdapter.resolveAndSetHref():js', - 'BrowserDomAdapter.setAttribute():js', - 'BrowserDomAdapter.setAttributeNS():js', - 'BrowserDomAdapter.setChecked():js', - 'BrowserDomAdapter.setData():js', - 'BrowserDomAdapter.setGlobalVar():js', - 'BrowserDomAdapter.setInnerHTML():js', - 'BrowserDomAdapter.setProperty():js', - 'BrowserDomAdapter.hasStyle():js', - 'BrowserDomAdapter.setStyle():js', - 'BrowserDomAdapter.setText():js', - 'BrowserDomAdapter.setTitle():js', - 'BrowserDomAdapter.setValue():js', - 'BrowserDomAdapter.supportsAnimation():js', - 'BrowserDomAdapter.supportsDOMEvents():js', - 'BrowserDomAdapter.supportsNativeShadowDOM():js', - 'BrowserDomAdapter.tagName():js', - 'BrowserDomAdapter.templateAwareRoot():js', - 'BrowserDomAdapter.type():js', - 'Provider', 'Provider.dependencies', 'Provider.multi', @@ -263,12 +753,6 @@ var NG_ALL = [ 'ProviderBuilder.toValue()', 'ProviderBuilder.token', 'ProviderBuilder.token=', - 'By#all():js', - 'By#css():js', - 'By#directive():js', - 'By:js', - 'CORE_DIRECTIVES', - 'COMMON_DIRECTIVES', 'PLATFORM_DIRECTIVES:js', 'ChangeDetectionError', 'ChangeDetectionError.context', @@ -294,14 +778,6 @@ var NG_ALL = [ 'ChangeDetectorRef.detectChanges()', 'ChangeDetectorRef.markForCheck()', 'ChangeDetectorRef.reattach()',*/ - 'CheckboxControlValueAccessor', - 'CheckboxControlValueAccessor.onChange', - 'CheckboxControlValueAccessor.onChange=', - 'CheckboxControlValueAccessor.onTouched', - 'CheckboxControlValueAccessor.onTouched=', - 'CheckboxControlValueAccessor.registerOnChange()', - 'CheckboxControlValueAccessor.registerOnTouched()', - 'CheckboxControlValueAccessor.writeValue()', 'Class:js', 'Compiler:js', /* @@ -369,7 +845,6 @@ var NG_ALL = [ 'ComponentRef.dispose()', 'ComponentRef.hostComponentType', */ - 'ContentChild', 'ContentChild.descendants', 'ContentChild.first', @@ -402,112 +877,6 @@ var NG_ALL = [ 'ContentChildrenMetadata.selector', 'ContentChildrenMetadata.token', 'ContentChildrenMetadata.varBindings', - 'Control', - 'Control.dirty', - 'Control.errors', - 'Control.find()', - 'Control.getError()', - 'Control.hasError()', - 'Control.markAsDirty()', - 'Control.markAsPending()', - 'Control.markAsTouched()', - 'Control.pending', - 'Control.pristine', - 'Control.registerOnChange()', - 'Control.setParent()', - 'Control.status', - 'Control.touched', - 'Control.untouched', - 'Control.updateValue()', - 'Control.updateValueAndValidity()', - 'Control.valid', - 'Control.validator', - 'Control.validator=', - 'Control.asyncValidator', - 'Control.asyncValidator=', - 'Control.value', - 'Control.valueChanges', - 'Control.statusChanges', - 'Control.setErrors()', - 'ControlArray', - 'ControlArray.at()', - 'ControlArray.controls', - 'ControlArray.controls=', - 'ControlArray.dirty', - 'ControlArray.errors', - 'ControlArray.find()', - 'ControlArray.getError()', - 'ControlArray.hasError()', - 'ControlArray.insert()', - 'ControlArray.length', - 'ControlArray.markAsDirty()', - 'ControlArray.markAsPending()', - 'ControlArray.markAsTouched()', - 'ControlArray.pending', - 'ControlArray.pristine', - 'ControlArray.push()', - 'ControlArray.removeAt()', - 'ControlArray.setParent()', - 'ControlArray.status', - 'ControlArray.touched', - 'ControlArray.untouched', - 'ControlArray.updateValueAndValidity()', - 'ControlArray.valid', - 'ControlArray.validator', - 'ControlArray.validator=', - 'ControlArray.asyncValidator', - 'ControlArray.asyncValidator=', - 'ControlArray.value', - 'ControlArray.valueChanges', - 'ControlArray.statusChanges', - 'ControlArray.setErrors()', - 'ControlContainer', - 'ControlContainer.control', - 'ControlContainer.dirty', - 'ControlContainer.errors', - 'ControlContainer.formDirective', - 'ControlContainer.name', - 'ControlContainer.name=', - 'ControlContainer.path', - 'ControlContainer.pristine', - 'ControlContainer.touched', - 'ControlContainer.untouched', - 'ControlContainer.valid', - 'ControlContainer.value', - 'ControlGroup', - 'ControlGroup.addControl()', - 'ControlGroup.contains()', - 'ControlGroup.controls', - 'ControlGroup.controls=', - 'ControlGroup.dirty', - 'ControlGroup.errors', - 'ControlGroup.exclude()', - 'ControlGroup.find()', - 'ControlGroup.getError()', - 'ControlGroup.hasError()', - 'ControlGroup.include()', - 'ControlGroup.markAsDirty()', - 'ControlGroup.markAsPending()', - 'ControlGroup.markAsTouched()', - 'ControlGroup.pending', - 'ControlGroup.pristine', - 'ControlGroup.removeControl()', - 'ControlGroup.setParent()', - 'ControlGroup.status', - 'ControlGroup.touched', - 'ControlGroup.untouched', - 'ControlGroup.updateValueAndValidity()', - 'ControlGroup.valid', - 'ControlGroup.validator', - 'ControlGroup.validator=', - 'ControlGroup.asyncValidator', - 'ControlGroup.asyncValidator=', - 'ControlGroup.value', - 'ControlGroup.valueChanges', - 'ControlGroup.statusChanges', - 'ControlGroup.setErrors()', - 'CurrencyPipe', - 'CurrencyPipe.transform()', 'CyclicDependencyError', 'CyclicDependencyError.addKey()', 'CyclicDependencyError.constructResolvingMessage', @@ -520,15 +889,7 @@ var NG_ALL = [ 'CyclicDependencyError.message', 'CyclicDependencyError.message=', 'CyclicDependencyError.stackTrace', - 'COMMON_PIPES', 'PLATFORM_PIPES:js', - 'DOCUMENT', - 'DomAdapter', - 'DomAdapter.attrToPropMap', - 'DomAdapter.attrToPropMap=', - 'DatePipe', - 'DatePipe.supports()', - 'DatePipe.transform()', 'DebugElement', 'DebugElement.children', 'DebugElement.componentInstance', @@ -544,22 +905,6 @@ var NG_ALL = [ 'DebugElement.nativeElement', 'DebugElement.query()', 'DebugElement.queryAll()', - 'DecimalPipe', - 'DecimalPipe.transform()', - 'RequiredValidator', - 'MinLengthValidator', - 'MinLengthValidator.validate()', - 'MaxLengthValidator', - 'MaxLengthValidator.validate()', - 'Validator:dart', - 'DefaultValueAccessor', - 'DefaultValueAccessor.onChange', - 'DefaultValueAccessor.onChange=', - 'DefaultValueAccessor.onTouched', - 'DefaultValueAccessor.onTouched=', - 'DefaultValueAccessor.registerOnChange()', - 'DefaultValueAccessor.registerOnTouched()', - 'DefaultValueAccessor.writeValue()', 'Dependency#fromKey()', 'Dependency', 'Dependency.key', @@ -601,17 +946,12 @@ var NG_ALL = [ 'DirectiveResolver', 'DirectiveResolver.resolve()', 'DynamicComponentLoader', - 'setRootDomAdapter():js', - 'DOM:js', /* Abstract methods 'DynamicComponentLoader.loadAsRoot()', 'DynamicComponentLoader.loadIntoLocation()', 'DynamicComponentLoader.loadNextToLocation()', */ - 'enableDebugTools():js', - 'ELEMENT_PROBE_PROVIDERS:js', - 'ELEMENT_PROBE_BINDINGS:js', 'ElementRef', 'ElementRef.boundElementIndex', 'ElementRef.boundElementIndex=', @@ -619,23 +959,10 @@ var NG_ALL = [ 'ElementRef.parentView', 'ElementRef.parentView=', 'ElementRef.renderView', - 'EVENT_MANAGER_PLUGINS', - 'EventManager', - 'EventManager.addEventListener()', - 'EventManager.addGlobalEventListener()', - 'EventManager.getZone()', - 'EventManagerPlugin', - 'EventManagerPlugin.addEventListener()', - 'EventManagerPlugin.addGlobalEventListener()', - 'EventManagerPlugin.supports()', - 'EventManagerPlugin.manager:dart', - 'EventManagerPlugin.manager=:dart', 'ErrorHandlingFn:dart', 'Output', 'Output.bindingPropertyName', - 'EventEmitter', - /* Dart Stream/EventEmitter */ @@ -678,7 +1005,6 @@ var NG_ALL = [ 'EventEmitter.toSet():dart', 'EventEmitter.transform():dart', 'EventEmitter.where():dart', - 'ExceptionHandler', 'ExceptionHandler#exceptionToString()', 'ExceptionHandler.call()', @@ -692,20 +1018,12 @@ var NG_ALL = [ 'Observable.forEach():js', 'Observable.lift():js', 'Observable.subscribe():js', - 'OutputMetadata', 'OutputMetadata.bindingPropertyName', 'enableDevMode():js', 'ExpressionChangedAfterItHasBeenCheckedException', 'ExpressionChangedAfterItHasBeenCheckedException.message', 'ExpressionChangedAfterItHasBeenCheckedException.stackTrace', - 'FORM_PROVIDERS', - 'FORM_BINDINGS', - 'FORM_DIRECTIVES', - 'FormBuilder', - 'FormBuilder.array()', - 'FormBuilder.control()', - 'FormBuilder.group()', 'Host', 'HostBinding', 'HostBinding.hostPropertyName', @@ -759,8 +1077,6 @@ var NG_ALL = [ 'IterableDiffers', 'IterableDiffers.factories', 'IterableDiffers.find()', - 'JsonPipe', - 'JsonPipe.transform()', 'Key#get()', 'Key#numberOfKeys', 'Key', @@ -774,201 +1090,6 @@ var NG_ALL = [ 'KeyValueDiffers', 'KeyValueDiffers.factories', 'KeyValueDiffers.find()', - 'LowerCasePipe', - 'LowerCasePipe.transform()', - 'NG_VALIDATORS', - 'NG_VALUE_ACCESSOR', - 'NG_ASYNC_VALIDATORS', - 'NgClass', - 'NgClass.ngDoCheck()', - 'NgClass.initialClasses=', - 'NgClass.ngOnDestroy()', - 'NgClass.rawClass=', - 'NgControl', - 'NgControl.control', - 'NgControl.dirty', - 'NgControl.errors', - 'NgControl.name', - 'NgControl.name=', - 'NgControl.path', - 'NgControl.pristine', - 'NgControl.touched', - 'NgControl.untouched', - 'NgControl.valid', - 'NgControl.validator', - 'NgControl.asyncValidator', - 'NgControl.value', - 'NgControl.valueAccessor', - 'NgControl.valueAccessor=', - 'NgControlGroup', - 'NgControlGroup.control', - 'NgControlGroup.dirty', - 'NgControlGroup.errors', - 'NgControlGroup.formDirective', - 'NgControlGroup.name', - 'NgControlGroup.name=', - 'NgControlGroup.ngOnDestroy()', - 'NgControlGroup.ngOnInit()', - 'NgControlGroup.path', - 'NgControlGroup.pristine', - 'NgControlGroup.touched', - 'NgControlGroup.untouched', - 'NgControlGroup.valid', - 'NgControlGroup.value', - 'NgControlGroup.validator', - 'NgControlGroup.asyncValidator', - 'NgControlStatus', - 'NgControlStatus.ngClassDirty', - 'NgControlStatus.ngClassInvalid', - 'NgControlStatus.ngClassPristine', - 'NgControlStatus.ngClassTouched', - 'NgControlStatus.ngClassUntouched', - 'NgControlStatus.ngClassValid', - 'NgControlName', - 'NgControlName.control', - 'NgControlName.dirty', - 'NgControlName.errors', - 'NgControlName.formDirective', - 'NgControlName.model', - 'NgControlName.model=', - 'NgControlName.name', - 'NgControlName.name=', - 'NgControlName.ngOnChanges()', - 'NgControlName.ngOnDestroy()', - 'NgControlName.path', - 'NgControlName.pristine', - 'NgControlName.touched', - 'NgControlName.untouched', - 'NgControlName.update', - 'NgControlName.update=', - 'NgControlName.valid', - 'NgControlName.validator', - 'NgControlName.asyncValidator', - 'NgControlName.value', - 'NgControlName.valueAccessor', - 'NgControlName.valueAccessor=', - 'NgControlName.viewModel', - 'NgControlName.viewModel=', - 'NgControlName.viewToModelUpdate()', - 'NgFor', - 'NgFor.ngDoCheck()', - 'NgFor.ngForOf=', - 'NgFor.ngForTemplate=', - 'NgForm', - 'NgForm.addControl()', - 'NgForm.addControlGroup()', - 'NgForm.control', - 'NgForm.controls', - 'NgForm.dirty', - 'NgForm.errors', - 'NgForm.form', - 'NgForm.form=', - 'NgForm.formDirective', - 'NgForm.getControl()', - 'NgForm.getControlGroup()', - 'NgForm.name', - 'NgForm.name=', - 'NgForm.ngSubmit', - 'NgForm.ngSubmit=', - 'NgForm.onSubmit()', - 'NgForm.path', - 'NgForm.pristine', - 'NgForm.removeControl()', - 'NgForm.removeControlGroup()', - 'NgForm.touched', - 'NgForm.untouched', - 'NgForm.updateModel()', - 'NgForm.valid', - 'NgForm.value', - 'NgFormControl', - 'NgFormControl.control', - 'NgFormControl.dirty', - 'NgFormControl.errors', - 'NgFormControl.form', - 'NgFormControl.form=', - 'NgFormControl.model', - 'NgFormControl.model=', - 'NgFormControl.name', - 'NgFormControl.name=', - 'NgFormControl.ngOnChanges()', - 'NgFormControl.path', - 'NgFormControl.pristine', - 'NgFormControl.touched', - 'NgFormControl.untouched', - 'NgFormControl.update', - 'NgFormControl.update=', - 'NgFormControl.valid', - 'NgFormControl.validator', - 'NgFormControl.asyncValidator', - 'NgFormControl.value', - 'NgFormControl.valueAccessor', - 'NgFormControl.valueAccessor=', - 'NgFormControl.viewModel', - 'NgFormControl.viewModel=', - 'NgFormControl.viewToModelUpdate()', - 'NgFormModel', - 'NgFormModel.addControl()', - 'NgFormModel.addControlGroup()', - 'NgFormModel.control', - 'NgFormModel.directives', - 'NgFormModel.directives=', - 'NgFormModel.dirty', - 'NgFormModel.errors', - 'NgFormModel.form', - 'NgFormModel.form=', - 'NgFormModel.formDirective', - 'NgFormModel.getControl()', - 'NgFormModel.getControlGroup()', - 'NgFormModel.name', - 'NgFormModel.name=', - 'NgFormModel.ngSubmit', - 'NgFormModel.ngSubmit=', - 'NgFormModel.ngOnChanges()', - 'NgFormModel.onSubmit()', - 'NgFormModel.path', - 'NgFormModel.pristine', - 'NgFormModel.removeControl()', - 'NgFormModel.removeControlGroup()', - 'NgFormModel.touched', - 'NgFormModel.untouched', - 'NgFormModel.updateModel()', - 'NgFormModel.valid', - 'NgFormModel.value', - 'NgIf', - 'NgIf.ngIf=', - 'NgModel', - 'NgModel.control', - 'NgModel.dirty', - 'NgModel.errors', - 'NgModel.model', - 'NgModel.model=', - 'NgModel.name', - 'NgModel.name=', - 'NgModel.ngOnChanges()', - 'NgModel.path', - 'NgModel.pristine', - 'NgModel.touched', - 'NgModel.untouched', - 'NgModel.update', - 'NgModel.update=', - 'NgModel.valid', - 'NgModel.validator', - 'NgModel.asyncValidator', - 'NgModel.value', - 'NgModel.valueAccessor', - 'NgModel.valueAccessor=', - 'NgModel.viewModel', - 'NgModel.viewModel=', - 'NgModel.viewToModelUpdate()', - 'NgSelectOption', - 'NgStyle', - 'NgStyle.ngDoCheck()', - 'NgStyle.rawStyle=', - 'NgSwitch', - 'NgSwitch.ngSwitch=', - 'NgSwitchDefault', - 'NgSwitchWhen', - 'NgSwitchWhen.ngSwitchWhen=', 'NgZone', 'NgZone.hasPendingAsyncTasks', 'NgZone.hasPendingMicrotasks', @@ -1001,30 +1122,12 @@ var NG_ALL = [ 'NoProviderError.message', 'NoProviderError.message=', 'NoProviderError.stackTrace', - 'NumberPipe', - 'ObservableListDiff.check():dart', - 'ObservableListDiff.collection:dart', - 'ObservableListDiff.diff():dart', - 'ObservableListDiff.forEachAddedItem():dart', - 'ObservableListDiff.forEachItem():dart', - 'ObservableListDiff.forEachMovedItem():dart', - 'ObservableListDiff.forEachPreviousItem():dart', - 'ObservableListDiff.forEachRemovedItem():dart', - 'ObservableListDiff.isDirty:dart', - 'ObservableListDiff.length:dart', - 'ObservableListDiff.onDestroy():dart', - 'ObservableListDiff:dart', - 'ObservableListDiffFactory.create():dart', - 'ObservableListDiffFactory.supports():dart', - 'ObservableListDiffFactory:dart', 'OpaqueToken', 'Optional', 'OptionalMetadata', 'OutOfBoundsError', 'OutOfBoundsError.message', 'OutOfBoundsError.stackTrace', - 'PercentPipe', - 'PercentPipe.transform()', 'Pipe', 'Pipe.name', 'Pipe.pure', @@ -1139,23 +1242,10 @@ var NG_ALL = [ 'Scope#light()', 'Scope#view()', 'Scope', // TODO(misko): rename? - 'SelectControlValueAccessor', - 'SelectControlValueAccessor.onChange', - 'SelectControlValueAccessor.onChange=', - 'SelectControlValueAccessor.onTouched', - 'SelectControlValueAccessor.onTouched=', - 'SelectControlValueAccessor.registerOnChange()', - 'SelectControlValueAccessor.registerOnTouched()', - 'SelectControlValueAccessor.value', - 'SelectControlValueAccessor.value=', - 'SelectControlValueAccessor.writeValue()', 'Self', 'SelfMetadata', 'SkipSelf', 'SkipSelfMetadata', - 'SlicePipe', - 'SlicePipe.supports()', - 'SlicePipe.transform()', 'SimpleChange', 'SimpleChange.currentValue', 'SimpleChange.currentValue=', @@ -1185,27 +1275,10 @@ var NG_ALL = [ 'TestabilityRegistry.registerApplication()', 'GetTestability:dart', 'setTestabilityGetter()', - 'Type:js', - 'Title:js', - 'Title.getTitle():js', - 'Title.setTitle():js', 'TypeLiteral', 'TypeLiteral.type', - 'UpperCasePipe', - 'UpperCasePipe.transform()', - 'UrlResolver', - 'UrlResolver.resolve()', - 'getUrlScheme()', 'PACKAGE_ROOT_URL', - 'DEFAULT_PACKAGE_URL_PROVIDER', - 'Validators#compose()', - 'Validators#composeAsync()', - 'Validators#nullValidator()', - 'Validators#required()', - 'Validators#minLength()', - 'Validators#maxLength()', - 'Validators', 'View', 'View.directives', 'View.encapsulation', @@ -1310,36 +1383,22 @@ var NG_ALL = [ 'WrappedValue', 'WrappedValue.wrapped', 'WrappedValue.wrapped=', - 'WtfScopeFn:dart', 'ZeroArgFunction:dart', 'asNativeElements()', 'bind()', 'provide()', - 'bootstrap():js', 'createNgZone()', 'forwardRef():js', 'inspectElement()', - 'inspectNativeElement():js', 'platform():js', 'resolveForwardRef():js', - 'wtfCreateScope():js', 'PLATFORM_COMMON_PROVIDERS', 'PLATFORM_INITIALIZER', - 'wtfCreateScope:dart', - 'wtfEndTimeRange():js', - 'wtfEndTimeRange:dart', - 'wtfLeave():js', - 'wtfLeave:dart', - 'wtfStartTimeRange():js', - 'wtfStartTimeRange:dart', 'AfterContentChecked:dart', 'AfterContentInit:dart', 'AfterViewChecked:dart', 'AfterViewInit:dart', - 'ControlValueAccessor:dart', 'DoCheck:dart', - 'disableDebugTools():js', - 'Form:dart', 'HostViewRef:dart', 'HostViewRef.changeDetectorRef', 'HostViewRef.changeDetectorRef=', @@ -1438,53 +1497,199 @@ var NG_ALL = [ 'Stream.toSet():dart', 'Stream.transform():dart', 'Stream.where():dart', + 'GetterFn:dart', + 'MethodFn:dart', + 'NoReflectionCapabilities:dart', + 'NoReflectionCapabilities.annotations():dart', + 'NoReflectionCapabilities.factory():dart', + 'NoReflectionCapabilities.getter():dart', + 'NoReflectionCapabilities.importUri():dart', + 'NoReflectionCapabilities.interfaces():dart', + 'NoReflectionCapabilities.isReflectionEnabled():dart', + 'NoReflectionCapabilities.method():dart', + 'NoReflectionCapabilities.parameters():dart', + 'NoReflectionCapabilities.propMetadata():dart', + 'NoReflectionCapabilities.setter():dart', + 'PlatformReflectionCapabilities:dart', + 'ReflectionInfo:dart', + 'ReflectionInfo.annotations:dart', + 'ReflectionInfo.annotations=:dart', + 'ReflectionInfo.factory:dart', + 'ReflectionInfo.factory=:dart', + 'ReflectionInfo.interfaces:dart', + 'ReflectionInfo.interfaces=:dart', + 'ReflectionInfo.parameters:dart', + 'ReflectionInfo.parameters=:dart', + 'ReflectionInfo.propMetadata:dart', + 'ReflectionInfo.propMetadata=:dart', + 'Reflector:dart', + 'Reflector.annotations():dart', + 'Reflector.factory():dart', + 'Reflector.getter():dart', + 'Reflector.importUri():dart', + 'Reflector.interfaces():dart', + 'Reflector.isReflectionEnabled():dart', + 'Reflector.listUnusedKeys():dart', + 'Reflector.method():dart', + 'Reflector.parameters():dart', + 'Reflector.propMetadata():dart', + 'Reflector.reflectionCapabilities:dart', + 'Reflector.reflectionCapabilities=:dart', + 'Reflector.registerFunction():dart', + 'Reflector.registerGetters():dart', + 'Reflector.registerMethods():dart', + 'Reflector.registerSetters():dart', + 'Reflector.registerType():dart', + 'Reflector.setter():dart', + 'Reflector.trackUsage():dart', + 'SetterFn:dart' +]; - "GetterFn:dart", - "MethodFn:dart", - "NoReflectionCapabilities:dart", - "NoReflectionCapabilities.annotations():dart", - "NoReflectionCapabilities.factory():dart", - "NoReflectionCapabilities.getter():dart", - "NoReflectionCapabilities.importUri():dart", - "NoReflectionCapabilities.interfaces():dart", - "NoReflectionCapabilities.isReflectionEnabled():dart", - "NoReflectionCapabilities.method():dart", - "NoReflectionCapabilities.parameters():dart", - "NoReflectionCapabilities.propMetadata():dart", - "NoReflectionCapabilities.setter():dart", - "PlatformReflectionCapabilities:dart", - "ReflectionInfo:dart", - "ReflectionInfo.annotations:dart", - "ReflectionInfo.annotations=:dart", - "ReflectionInfo.factory:dart", - "ReflectionInfo.factory=:dart", - "ReflectionInfo.interfaces:dart", - "ReflectionInfo.interfaces=:dart", - "ReflectionInfo.parameters:dart", - "ReflectionInfo.parameters=:dart", - "ReflectionInfo.propMetadata:dart", - "ReflectionInfo.propMetadata=:dart", - "Reflector:dart", - "Reflector.annotations():dart", - "Reflector.factory():dart", - "Reflector.getter():dart", - "Reflector.importUri():dart", - "Reflector.interfaces():dart", - "Reflector.isReflectionEnabled():dart", - "Reflector.listUnusedKeys():dart", - "Reflector.method():dart", - "Reflector.parameters():dart", - "Reflector.propMetadata():dart", - "Reflector.reflectionCapabilities:dart", - "Reflector.reflectionCapabilities=:dart", - "Reflector.registerFunction():dart", - "Reflector.registerGetters():dart", - "Reflector.registerMethods():dart", - "Reflector.registerSetters():dart", - "Reflector.registerType():dart", - "Reflector.setter():dart", - "Reflector.trackUsage():dart", - "SetterFn:dart" +var NG_INSTRUMENTATION = [ + 'wtfCreateScope():js', + 'wtfCreateScope:dart', + 'wtfEndTimeRange():js', + 'wtfEndTimeRange:dart', + 'wtfLeave():js', + 'wtfLeave:dart', + 'WtfScopeFn:dart', + 'wtfStartTimeRange():js', + 'wtfStartTimeRange:dart' +]; + +var NG_PLATFORM_BROWSER = [ + 'AngularEntrypoint', + 'AngularEntrypoint.name', + 'BROWSER_APP_PROVIDERS:js', + 'BROWSER_PROVIDERS:js', + 'BrowserDomAdapter#makeCurrent():js', + 'BrowserDomAdapter.addClass():js', + 'BrowserDomAdapter.adoptNode():js', + 'BrowserDomAdapter.appendChild():js', + 'BrowserDomAdapter.attrToPropMap:js', + 'BrowserDomAdapter.attributeMap():js', + 'BrowserDomAdapter.cancelAnimationFrame():js', + 'BrowserDomAdapter.childNodes():js', + 'BrowserDomAdapter.childNodesAsList():js', + 'BrowserDomAdapter.classList():js', + 'BrowserDomAdapter.clearNodes():js', + 'BrowserDomAdapter.clone():js', + 'BrowserDomAdapter.content():js', + 'BrowserDomAdapter.createComment():js', + 'BrowserDomAdapter.createElement():js', + 'BrowserDomAdapter.createElementNS():js', + 'BrowserDomAdapter.createEvent():js', + 'BrowserDomAdapter.createHtmlDocument():js', + 'BrowserDomAdapter.createMouseEvent():js', + 'BrowserDomAdapter.createScriptTag():js', + 'BrowserDomAdapter.createShadowRoot():js', + 'BrowserDomAdapter.createStyleElement():js', + 'BrowserDomAdapter.createTemplate():js', + 'BrowserDomAdapter.createTextNode():js', + 'BrowserDomAdapter.defaultDoc():js', + 'BrowserDomAdapter.dispatchEvent():js', + 'BrowserDomAdapter.elementMatches():js', + 'BrowserDomAdapter.firstChild():js', + 'BrowserDomAdapter.getAnimationPrefix():js', + 'BrowserDomAdapter.getAttribute():js', + 'BrowserDomAdapter.getBaseHref():js', + 'BrowserDomAdapter.getBoundingClientRect():js', + 'BrowserDomAdapter.getChecked():js', + 'BrowserDomAdapter.getComputedStyle():js', + 'BrowserDomAdapter.getData():js', + 'BrowserDomAdapter.getDistributedNodes():js', + 'BrowserDomAdapter.getElementsByClassName():js', + 'BrowserDomAdapter.getElementsByTagName():js', + 'BrowserDomAdapter.getEventKey():js', + 'BrowserDomAdapter.getGlobalEventTarget():js', + 'BrowserDomAdapter.getHistory():js', + 'BrowserDomAdapter.getHost():js', + 'BrowserDomAdapter.getHref():js', + 'BrowserDomAdapter.getInnerHTML():js', + 'BrowserDomAdapter.getLocation():js', + 'BrowserDomAdapter.getOuterHTML():js', + 'BrowserDomAdapter.getProperty():js', + 'BrowserDomAdapter.getShadowRoot():js', + 'BrowserDomAdapter.getStyle():js', + 'BrowserDomAdapter.getText():js', + 'BrowserDomAdapter.getTitle():js', + 'BrowserDomAdapter.getTransitionEnd():js', + 'BrowserDomAdapter.getUserAgent():js', + 'BrowserDomAdapter.getValue():js', + 'BrowserDomAdapter.getXHR():js', + 'BrowserDomAdapter.hasAttribute():js', + 'BrowserDomAdapter.hasClass():js', + 'BrowserDomAdapter.hasProperty():js', + 'BrowserDomAdapter.hasShadowRoot():js', + 'BrowserDomAdapter.hasStyle():js', + 'BrowserDomAdapter.importIntoDoc():js', + 'BrowserDomAdapter.insertAfter():js', + 'BrowserDomAdapter.insertAllBefore():js', + 'BrowserDomAdapter.insertBefore():js', + 'BrowserDomAdapter.invoke():js', + 'BrowserDomAdapter.isCommentNode():js', + 'BrowserDomAdapter.isElementNode():js', + 'BrowserDomAdapter.isPrevented():js', + 'BrowserDomAdapter.isShadowRoot():js', + 'BrowserDomAdapter.isTemplateElement():js', + 'BrowserDomAdapter.isTextNode():js', + 'BrowserDomAdapter.log():js', + 'BrowserDomAdapter.logError():js', + 'BrowserDomAdapter.logGroup():js', + 'BrowserDomAdapter.logGroupEnd():js', + 'BrowserDomAdapter.nextSibling():js', + 'BrowserDomAdapter.nodeName():js', + 'BrowserDomAdapter.nodeValue():js', + 'BrowserDomAdapter.on():js', + 'BrowserDomAdapter.onAndCancel():js', + 'BrowserDomAdapter.parentElement():js', + 'BrowserDomAdapter.parse():js', + 'BrowserDomAdapter.performanceNow():js', + 'BrowserDomAdapter.preventDefault():js', + 'BrowserDomAdapter.query():js', + 'BrowserDomAdapter.querySelector():js', + 'BrowserDomAdapter.querySelectorAll():js', + 'BrowserDomAdapter.remove():js', + 'BrowserDomAdapter.removeAttribute():js', + 'BrowserDomAdapter.removeChild():js', + 'BrowserDomAdapter.removeClass():js', + 'BrowserDomAdapter.removeStyle():js', + 'BrowserDomAdapter.replaceChild():js', + 'BrowserDomAdapter.requestAnimationFrame():js', + 'BrowserDomAdapter.resetBaseElement():js', + 'BrowserDomAdapter.resolveAndSetHref():js', + 'BrowserDomAdapter.setAttribute():js', + 'BrowserDomAdapter.setAttributeNS():js', + 'BrowserDomAdapter.setChecked():js', + 'BrowserDomAdapter.setData():js', + 'BrowserDomAdapter.setGlobalVar():js', + 'BrowserDomAdapter.setInnerHTML():js', + 'BrowserDomAdapter.setProperty():js', + 'BrowserDomAdapter.setStyle():js', + 'BrowserDomAdapter.setText():js', + 'BrowserDomAdapter.setTitle():js', + 'BrowserDomAdapter.setValue():js', + 'BrowserDomAdapter.supportsAnimation():js', + 'BrowserDomAdapter.supportsDOMEvents():js', + 'BrowserDomAdapter.supportsNativeShadowDOM():js', + 'BrowserDomAdapter.tagName():js', + 'BrowserDomAdapter.templateAwareRoot():js', + 'BrowserDomAdapter.type():js', + 'BrowserDomAdapter:js', + 'By#all():js', + 'By#css():js', + 'By#directive():js', + 'By:js', + 'DOCUMENT', + 'ELEMENT_PROBE_BINDINGS:js', + 'ELEMENT_PROBE_PROVIDERS:js', + 'Title.getTitle():js', + 'Title.setTitle():js', + 'Title:js', + 'bootstrap():js', + 'disableDebugTools():js', + 'enableDebugTools():js', + 'inspectNativeElement():js' ]; var NG_UPGRADE = [ @@ -1501,7 +1706,14 @@ var NG_UPGRADE = [ 'UpgradeAdapterRef.ready():js' ]; -var NG_API = [].concat(NG_ALL).concat(NG_UPGRADE); +var NG_API = { + ngCommon: NG_COMMON, + ngCompiler: NG_COMPILER, + ngCore: NG_CORE, + ngInstrumentation: NG_INSTRUMENTATION, + ngPlatformBrowser: NG_PLATFORM_BROWSER, + ngUpgrade: NG_UPGRADE +}; export function main() { /** @@ -1514,7 +1726,21 @@ export function main() { */ describe('public API', () => { - it('should fail if public API has changed', - () => { expect(new SymbolsDiff(getSymbolsFromLibrary('ng'), NG_API).errors).toEqual([]); }); + var barrelList = + ['ngCommon', 'ngCompiler', 'ngCore', 'ngInstrumentation', 'ngPlatformBrowser', 'ngUpgrade']; + if (IS_DART) { + barrelList = barrelList.filter(b => b !== 'ngUpgrade'); + } + + barrelList.forEach(mod => { + // Dom Events are merged into DomAdapter in Dart + if (IS_DART && mod === 'ngPlatformDomEvent') return; + it(`should fail if public API for ${mod} has changed`, () => { + + expect(new SymbolsDiff(getSymbolsFromLibrary(mod), NG_API[mod]).errors).toEqual([]); + }) + }); + + }); } diff --git a/modules/angular2/test/symbol_inspector/symbol_inspector.dart b/modules/angular2/test/symbol_inspector/symbol_inspector.dart index 0ae5a336a5..4e25a8587b 100644 --- a/modules/angular2/test/symbol_inspector/symbol_inspector.dart +++ b/modules/angular2/test/symbol_inspector/symbol_inspector.dart @@ -2,7 +2,11 @@ library angular.symbol_inspector.symbol_inspector; import 'dart:mirrors'; import './simple_library.dart' as simple_library; -import 'package:angular2/angular2.dart' as angular2; +import 'package:angular2/common.dart'; +import 'package:angular2/compiler.dart'; +import 'package:angular2/core.dart'; +import 'package:angular2/instrumentation.dart'; +import 'package:angular2/platform/browser.dart'; const IGNORE = const { 'runtimeType': true, @@ -15,11 +19,15 @@ const IGNORE = const { const LIB_MAP = const { 'simple_library': 'angular2.test.symbol_inspector.simple_library', - 'ng': 'angular2' + 'ngCommon': 'angular2.common', + 'ngCompiler': 'angular2.compiler', + 'ngCore': 'angular2.core', + 'ngInstrumentation': 'angular2.instrumentation', + 'ngPlatformBrowser': 'angular2.platform.browser' }; // Have this list here to trick dart to force import. -var libs = [simple_library.A, angular2.Component]; +var libs = [simple_library.A, Component, Form, TemplateCompiler, NgIf, wtfCreateScope, Title]; List getSymbolsFromLibrary(String name) { var libraryName = LIB_MAP[name]; diff --git a/modules/angular2/test/symbol_inspector/symbol_inspector.ts b/modules/angular2/test/symbol_inspector/symbol_inspector.ts index f4830e637c..0df98b601d 100644 --- a/modules/angular2/test/symbol_inspector/symbol_inspector.ts +++ b/modules/angular2/test/symbol_inspector/symbol_inspector.ts @@ -1,9 +1,19 @@ import * as simple_library from './simple_library'; -import * as ng from 'angular2/angular2'; +import * as ngCommon from 'angular2/common'; +import * as ngCompiler from 'angular2/compiler'; +import * as ngCore from 'angular2/core'; +import * as ngInstrumentation from 'angular2/instrumentation'; +import * as ngPlatformBrowser from 'angular2/platform/browser'; +import * as ngUpgrade from 'angular2/upgrade'; const LIB_MAP = { 'simple_library': simple_library, - 'ng': ng + ngCommon, + ngCompiler, + ngCore, + ngInstrumentation, + ngPlatformBrowser, + ngUpgrade }; const IGNORE =