@angular/core 2.0.0-rc.1 → 2.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{core.umd.js → bundles/core.umd.js} +6402 -4606
- package/bundles/core.umd.min.js +6 -0
- package/esm/index.d.ts +5 -4
- package/esm/index.js +9 -8
- package/esm/index.js.map +1 -1
- package/esm/private_export.d.ts +96 -11
- package/esm/private_export.js +39 -10
- package/esm/private_export.js.map +1 -1
- package/esm/private_export.metadata.json +1 -1
- package/esm/src/animation/active_animation_players_map.d.ts +11 -0
- package/esm/src/animation/active_animation_players_map.js +47 -0
- package/esm/src/animation/active_animation_players_map.js.map +1 -0
- package/esm/src/animation/animation_constants.d.ts +4 -0
- package/esm/src/animation/animation_constants.js +5 -0
- package/esm/src/animation/animation_constants.js.map +1 -0
- package/esm/src/animation/animation_constants.metadata.json +1 -0
- package/esm/src/animation/animation_driver.d.ts +9 -0
- package/esm/src/animation/animation_driver.js +9 -0
- package/esm/src/animation/animation_driver.js.map +1 -0
- package/esm/src/animation/animation_group_player.d.ts +18 -0
- package/esm/src/animation/animation_group_player.js +60 -0
- package/esm/src/animation/animation_group_player.js.map +1 -0
- package/esm/src/animation/animation_keyframe.d.ts +6 -0
- package/esm/src/animation/animation_keyframe.js +7 -0
- package/esm/src/animation/animation_keyframe.js.map +1 -0
- package/esm/src/animation/animation_player.d.ts +26 -0
- package/esm/src/animation/animation_player.js +30 -0
- package/esm/src/animation/animation_player.js.map +1 -0
- package/esm/src/animation/animation_sequence_player.d.ts +21 -0
- package/esm/src/animation/animation_sequence_player.js +64 -0
- package/esm/src/animation/animation_sequence_player.js.map +1 -0
- package/esm/src/animation/animation_style_util.d.ts +32 -0
- package/esm/src/animation/animation_style_util.js +91 -0
- package/esm/src/animation/animation_style_util.js.map +1 -0
- package/esm/src/animation/animation_style_util.metadata.json +1 -0
- package/esm/src/animation/animation_styles.d.ts +8 -0
- package/esm/src/animation/animation_styles.js +6 -0
- package/esm/src/animation/animation_styles.js.map +1 -0
- package/esm/src/animation/metadata.d.ts +511 -0
- package/esm/src/animation/metadata.js +565 -0
- package/esm/src/animation/metadata.js.map +1 -0
- package/esm/src/animation/metadata.metadata.json +1 -0
- package/esm/src/application_common_providers.d.ts +1 -0
- package/esm/src/application_common_providers.js +5 -4
- package/esm/src/application_common_providers.js.map +1 -1
- package/esm/src/application_common_providers.metadata.json +1 -1
- package/esm/src/application_ref.d.ts +17 -41
- package/esm/src/application_ref.js +32 -23
- package/esm/src/application_ref.js.map +1 -1
- package/esm/src/application_ref.metadata.json +1 -1
- package/esm/src/application_tokens.d.ts +6 -1
- package/esm/src/application_tokens.js +9 -4
- package/esm/src/application_tokens.js.map +1 -1
- package/esm/src/application_tokens.metadata.json +1 -1
- package/esm/src/change_detection/change_detection.d.ts +9 -8
- package/esm/src/change_detection/change_detection.js +7 -7
- package/esm/src/change_detection/change_detection.js.map +1 -1
- package/esm/src/change_detection/change_detection.metadata.json +1 -1
- package/esm/src/change_detection/change_detection_util.d.ts +3 -1
- package/esm/src/change_detection/change_detection_util.js +6 -5
- package/esm/src/change_detection/change_detection_util.js.map +1 -1
- package/esm/src/change_detection/change_detection_util.metadata.json +1 -1
- package/esm/src/change_detection/change_detector_ref.d.ts +3 -0
- package/esm/src/change_detection/change_detector_ref.js +3 -0
- package/esm/src/change_detection/change_detector_ref.js.map +1 -1
- package/esm/src/change_detection/constants.d.ts +1 -0
- package/esm/src/change_detection/constants.js +4 -3
- package/esm/src/change_detection/constants.js.map +1 -1
- package/esm/src/change_detection/constants.metadata.json +1 -1
- package/esm/src/change_detection/differs/default_iterable_differ.d.ts +6 -94
- package/esm/src/change_detection/differs/default_iterable_differ.js +25 -18
- package/esm/src/change_detection/differs/default_iterable_differ.js.map +1 -1
- package/esm/src/change_detection/differs/default_keyvalue_differ.d.ts +3 -30
- package/esm/src/change_detection/differs/default_keyvalue_differ.js +13 -8
- package/esm/src/change_detection/differs/default_keyvalue_differ.js.map +1 -1
- package/esm/src/change_detection/differs/iterable_differs.d.ts +4 -1
- package/esm/src/change_detection/differs/iterable_differs.js +5 -4
- package/esm/src/change_detection/differs/iterable_differs.js.map +1 -1
- package/esm/src/change_detection/differs/keyvalue_differs.d.ts +2 -1
- package/esm/src/change_detection/differs/keyvalue_differs.js +5 -4
- package/esm/src/change_detection/differs/keyvalue_differs.js.map +1 -1
- package/esm/src/change_detection/pipe_transform.js.map +1 -1
- package/esm/src/change_detection.d.ts +1 -1
- package/esm/src/change_detection.js +5 -5
- package/esm/src/change_detection.js.map +1 -1
- package/esm/src/console.js +2 -1
- package/esm/src/console.js.map +1 -1
- package/esm/src/console.metadata.json +1 -1
- package/esm/src/debug/debug_node.d.ts +20 -2
- package/esm/src/debug/debug_node.js +16 -2
- package/esm/src/debug/debug_node.js.map +1 -1
- package/esm/src/debug/debug_node.metadata.json +1 -0
- package/esm/src/debug/debug_renderer.d.ts +10 -6
- package/esm/src/debug/debug_renderer.js +13 -2
- package/esm/src/debug/debug_renderer.js.map +1 -1
- package/esm/src/di/decorators.d.ts +13 -1
- package/esm/src/di/decorators.js +7 -1
- package/esm/src/di/decorators.js.map +1 -1
- package/esm/src/di/decorators.metadata.json +1 -1
- package/esm/src/di/forward_ref.d.ts +3 -1
- package/esm/src/di/forward_ref.js +3 -1
- package/esm/src/di/forward_ref.js.map +1 -1
- package/esm/src/di/injector.d.ts +4 -1
- package/esm/src/di/injector.js +5 -2
- package/esm/src/di/injector.js.map +1 -1
- package/esm/src/di/injector.metadata.json +1 -1
- package/esm/src/di/metadata.d.ts +8 -1
- package/esm/src/di/metadata.js +10 -3
- package/esm/src/di/metadata.js.map +1 -1
- package/esm/src/di/opaque_token.d.ts +2 -1
- package/esm/src/di/opaque_token.js +22 -21
- package/esm/src/di/opaque_token.js.map +1 -1
- package/esm/src/di/provider.d.ts +11 -10
- package/esm/src/di/provider.js +17 -14
- package/esm/src/di/provider.js.map +1 -1
- package/esm/src/di/provider.metadata.json +1 -0
- package/esm/src/di/provider_util.js.map +1 -1
- package/esm/src/di/provider_util.metadata.json +1 -0
- package/esm/src/di/reflective_exceptions.d.ts +11 -16
- package/esm/src/di/reflective_exceptions.js +28 -22
- package/esm/src/di/reflective_exceptions.js.map +1 -1
- package/esm/src/di/reflective_injector.d.ts +3 -33
- package/esm/src/di/reflective_injector.js +10 -7
- package/esm/src/di/reflective_injector.js.map +1 -1
- package/esm/src/di/reflective_key.d.ts +1 -8
- package/esm/src/di/reflective_key.js +3 -2
- package/esm/src/di/reflective_key.js.map +1 -1
- package/esm/src/di/reflective_provider.d.ts +2 -1
- package/esm/src/di/reflective_provider.js +6 -5
- package/esm/src/di/reflective_provider.js.map +1 -1
- package/esm/src/di/reflective_provider.metadata.json +1 -0
- package/esm/src/di.d.ts +2 -2
- package/esm/src/di.js +6 -6
- package/esm/src/di.js.map +1 -1
- package/esm/src/facade/async.d.ts +11 -4
- package/esm/src/facade/async.js +25 -15
- package/esm/src/facade/async.js.map +1 -1
- package/esm/src/facade/base_wrapped_exception.js +4 -4
- package/esm/src/facade/base_wrapped_exception.js.map +1 -1
- package/esm/src/facade/collection.js +1 -1
- package/esm/src/facade/collection.js.map +1 -1
- package/esm/src/facade/collection.metadata.json +1 -1
- package/esm/src/facade/exception_handler.d.ts +2 -11
- package/esm/src/facade/exception_handler.js +8 -7
- package/esm/src/facade/exception_handler.js.map +1 -1
- package/esm/src/facade/exceptions.d.ts +4 -0
- package/esm/src/facade/exceptions.js +6 -2
- package/esm/src/facade/exceptions.js.map +1 -1
- package/esm/src/facade/exceptions.metadata.json +1 -0
- package/esm/src/facade/lang.d.ts +6 -4
- package/esm/src/facade/lang.js +12 -11
- package/esm/src/facade/lang.js.map +1 -1
- package/esm/src/facade/lang.metadata.json +1 -1
- package/esm/src/facade/math.d.ts +2 -0
- package/esm/src/facade/math.js +4 -0
- package/esm/src/facade/math.js.map +1 -0
- package/esm/src/facade/math.metadata.json +1 -0
- package/esm/src/facade/promise.js.map +1 -1
- package/esm/src/linker/component_factory.d.ts +5 -4
- package/esm/src/linker/component_factory.js +7 -3
- package/esm/src/linker/component_factory.js.map +1 -1
- package/esm/src/linker/component_resolver.d.ts +5 -4
- package/esm/src/linker/component_resolver.js +12 -7
- package/esm/src/linker/component_resolver.js.map +1 -1
- package/esm/src/linker/component_resolver.metadata.json +1 -1
- package/esm/src/linker/debug_context.js +5 -4
- package/esm/src/linker/debug_context.js.map +1 -1
- package/esm/src/linker/dynamic_component_loader.d.ts +5 -6
- package/esm/src/linker/dynamic_component_loader.js +5 -3
- package/esm/src/linker/dynamic_component_loader.js.map +1 -1
- package/esm/src/linker/dynamic_component_loader.metadata.json +1 -1
- package/esm/src/linker/element.d.ts +3 -3
- package/esm/src/linker/element.js +5 -5
- package/esm/src/linker/element.js.map +1 -1
- package/esm/src/linker/element_injector.js.map +1 -1
- package/esm/src/linker/element_ref.d.ts +1 -0
- package/esm/src/linker/element_ref.js +5 -5
- package/esm/src/linker/element_ref.js.map +1 -1
- package/esm/src/linker/exceptions.d.ts +4 -1
- package/esm/src/linker/exceptions.js +4 -1
- package/esm/src/linker/exceptions.js.map +1 -1
- package/esm/src/linker/query_list.d.ts +3 -10
- package/esm/src/linker/query_list.js +8 -7
- package/esm/src/linker/query_list.js.map +1 -1
- package/esm/src/linker/systemjs_component_resolver.d.ts +21 -0
- package/esm/src/linker/systemjs_component_resolver.js +44 -0
- package/esm/src/linker/systemjs_component_resolver.js.map +1 -0
- package/esm/src/linker/template_ref.d.ts +2 -1
- package/esm/src/linker/template_ref.js +1 -0
- package/esm/src/linker/template_ref.js.map +1 -1
- package/esm/src/linker/view.d.ts +12 -1
- package/esm/src/linker/view.js +62 -16
- package/esm/src/linker/view.js.map +1 -1
- package/esm/src/linker/view_container_ref.d.ts +2 -10
- package/esm/src/linker/view_container_ref.js +4 -3
- package/esm/src/linker/view_container_ref.js.map +1 -1
- package/esm/src/linker/view_ref.d.ts +5 -1
- package/esm/src/linker/view_ref.js +6 -2
- package/esm/src/linker/view_ref.js.map +1 -1
- package/esm/src/linker/view_type.js.map +1 -1
- package/esm/src/linker/view_utils.d.ts +2 -4
- package/esm/src/linker/view_utils.js +21 -21
- package/esm/src/linker/view_utils.js.map +1 -1
- package/esm/src/linker/view_utils.metadata.json +1 -1
- package/esm/src/linker.d.ts +5 -4
- package/esm/src/linker.js +5 -4
- package/esm/src/linker.js.map +1 -1
- package/esm/src/metadata/di.d.ts +8 -1
- package/esm/src/metadata/di.js +10 -3
- package/esm/src/metadata/di.js.map +1 -1
- package/esm/src/metadata/directives.d.ts +104 -20
- package/esm/src/metadata/directives.js +25 -19
- package/esm/src/metadata/directives.js.map +1 -1
- package/esm/src/metadata/lifecycle_hooks.d.ts +46 -31
- package/esm/src/metadata/lifecycle_hooks.js +464 -10
- package/esm/src/metadata/lifecycle_hooks.js.map +1 -1
- package/esm/src/metadata/lifecycle_hooks.metadata.json +1 -1
- package/esm/src/metadata/view.d.ts +6 -2
- package/esm/src/metadata/view.js +3 -1
- package/esm/src/metadata/view.js.map +1 -1
- package/esm/src/metadata/view.metadata.json +1 -1
- package/esm/src/metadata.d.ts +49 -15
- package/esm/src/metadata.js +35 -10
- package/esm/src/metadata.js.map +1 -1
- package/esm/src/metadata.metadata.json +1 -1
- package/esm/src/platform_common_providers.d.ts +1 -0
- package/esm/src/platform_common_providers.js +3 -3
- package/esm/src/platform_common_providers.js.map +1 -1
- package/esm/src/platform_common_providers.metadata.json +1 -1
- package/esm/src/platform_directives_and_pipes.d.ts +48 -45
- package/esm/src/platform_directives_and_pipes.js +50 -47
- package/esm/src/platform_directives_and_pipes.js.map +1 -1
- package/esm/src/platform_directives_and_pipes.metadata.json +1 -1
- package/esm/src/profile/profile.d.ts +5 -1
- package/esm/src/profile/profile.js +4 -0
- package/esm/src/profile/profile.js.map +1 -1
- package/esm/src/profile/profile.metadata.json +1 -1
- package/esm/src/profile/wtf_impl.js +1 -1
- package/esm/src/profile/wtf_impl.js.map +1 -1
- package/esm/src/profile/wtf_impl.metadata.json +1 -0
- package/esm/src/profile/wtf_init.js +2 -2
- package/esm/src/profile/wtf_init.js.map +1 -1
- package/esm/src/reflection/platform_reflection_capabilities.d.ts +4 -3
- package/esm/src/reflection/platform_reflection_capabilities.js.map +1 -1
- package/esm/src/reflection/reflection.d.ts +1 -1
- package/esm/src/reflection/reflection.js +2 -2
- package/esm/src/reflection/reflection.js.map +1 -1
- package/esm/src/reflection/reflection.metadata.json +1 -1
- package/esm/src/reflection/reflection_capabilities.d.ts +4 -5
- package/esm/src/reflection/reflection_capabilities.js +22 -10
- package/esm/src/reflection/reflection_capabilities.js.map +1 -1
- package/esm/src/reflection/reflector.d.ts +8 -20
- package/esm/src/reflection/reflector.js +13 -3
- package/esm/src/reflection/reflector.js.map +1 -1
- package/esm/src/reflection/reflector_reader.js +3 -3
- package/esm/src/reflection/reflector_reader.js.map +1 -1
- package/esm/src/reflection/types.js.map +1 -1
- package/esm/src/render/api.d.ts +17 -6
- package/esm/src/render/api.js +8 -1
- package/esm/src/render/api.js.map +1 -1
- package/esm/src/render.d.ts +1 -1
- package/esm/src/render.js +1 -1
- package/esm/src/render.js.map +1 -1
- package/esm/src/security.js +6 -6
- package/esm/src/security.js.map +1 -1
- package/esm/src/testability/testability.d.ts +3 -19
- package/esm/src/testability/testability.js +10 -5
- package/esm/src/testability/testability.js.map +1 -1
- package/esm/src/testability/testability.metadata.json +1 -1
- package/esm/src/util/decorators.d.ts +2 -1
- package/esm/src/util/decorators.js +10 -9
- package/esm/src/util/decorators.js.map +1 -1
- package/esm/src/util.js.map +1 -1
- package/esm/src/zone/ng_zone.d.ts +6 -17
- package/esm/src/zone/ng_zone.js +7 -6
- package/esm/src/zone/ng_zone.js.map +1 -1
- package/esm/src/zone/ng_zone_impl.d.ts +1 -4
- package/esm/src/zone/ng_zone_impl.js +3 -2
- package/esm/src/zone/ng_zone_impl.js.map +1 -1
- package/esm/src/zone.js.map +1 -1
- package/esm/testing/async.js +20 -22
- package/esm/testing/async.js.map +1 -1
- package/esm/testing/async.metadata.json +1 -0
- package/esm/testing/async_test_completer.js.map +1 -1
- package/esm/testing/fake_async.d.ts +4 -1
- package/esm/testing/fake_async.js +9 -2
- package/esm/testing/fake_async.js.map +1 -1
- package/esm/testing/lang_utils.js +1 -1
- package/esm/testing/lang_utils.js.map +1 -1
- package/esm/testing/lang_utils.metadata.json +1 -0
- package/esm/testing/logger.js +5 -3
- package/esm/testing/logger.js.map +1 -1
- package/esm/testing/logger.metadata.json +1 -1
- package/esm/testing/mock_application_ref.d.ts +1 -1
- package/esm/testing/mock_application_ref.js +1 -0
- package/esm/testing/mock_application_ref.js.map +1 -1
- package/esm/testing/mock_application_ref.metadata.json +1 -1
- package/esm/testing/ng_zone_mock.d.ts +0 -1
- package/esm/testing/ng_zone_mock.js +2 -1
- package/esm/testing/ng_zone_mock.js.map +1 -1
- package/esm/testing/ng_zone_mock.metadata.json +1 -1
- package/esm/testing/regexp.js +1 -1
- package/esm/testing/regexp.js.map +1 -1
- package/esm/testing/regexp.metadata.json +1 -0
- package/esm/testing/test_injector.d.ts +6 -12
- package/esm/testing/test_injector.js +4 -10
- package/esm/testing/test_injector.js.map +1 -1
- package/esm/testing/test_injector.metadata.json +1 -0
- package/esm/testing/testing.d.ts +2 -2
- package/esm/testing/testing.js +2 -2
- package/esm/testing/testing.js.map +1 -1
- package/esm/testing/testing.metadata.json +1 -1
- package/esm/testing.js.map +1 -1
- package/index.d.ts +5 -4
- package/index.js +10 -8
- package/index.js.map +1 -1
- package/package.json +5 -1
- package/private_export.d.ts +96 -11
- package/private_export.js +39 -10
- package/private_export.js.map +1 -1
- package/private_export.metadata.json +1 -1
- package/src/animation/active_animation_players_map.d.ts +11 -0
- package/src/animation/active_animation_players_map.js +54 -0
- package/src/animation/active_animation_players_map.js.map +1 -0
- package/src/animation/animation_constants.d.ts +4 -0
- package/src/animation/animation_constants.js +6 -0
- package/src/animation/animation_constants.js.map +1 -0
- package/src/animation/animation_constants.metadata.json +1 -0
- package/src/animation/animation_driver.d.ts +9 -0
- package/src/animation/animation_driver.js +25 -0
- package/src/animation/animation_driver.js.map +1 -0
- package/src/animation/animation_group_player.d.ts +18 -0
- package/src/animation/animation_group_player.js +64 -0
- package/src/animation/animation_group_player.js.map +1 -0
- package/src/animation/animation_keyframe.d.ts +6 -0
- package/src/animation/animation_keyframe.js +10 -0
- package/src/animation/animation_keyframe.js.map +1 -0
- package/src/animation/animation_player.d.ts +26 -0
- package/src/animation/animation_player.js +42 -0
- package/src/animation/animation_player.js.map +1 -0
- package/src/animation/animation_sequence_player.d.ts +21 -0
- package/src/animation/animation_sequence_player.js +69 -0
- package/src/animation/animation_sequence_player.js.map +1 -0
- package/src/animation/animation_style_util.d.ts +32 -0
- package/src/animation/animation_style_util.js +99 -0
- package/src/animation/animation_style_util.js.map +1 -0
- package/src/animation/animation_style_util.metadata.json +1 -0
- package/src/animation/animation_styles.d.ts +8 -0
- package/src/animation/animation_styles.js +9 -0
- package/src/animation/animation_styles.js.map +1 -0
- package/src/animation/metadata.d.ts +511 -0
- package/src/animation/metadata.js +627 -0
- package/src/animation/metadata.js.map +1 -0
- package/src/animation/metadata.metadata.json +1 -0
- package/src/application_common_providers.d.ts +1 -0
- package/src/application_common_providers.js +4 -3
- package/src/application_common_providers.js.map +1 -1
- package/src/application_common_providers.metadata.json +1 -1
- package/src/application_ref.d.ts +17 -41
- package/src/application_ref.js +30 -21
- package/src/application_ref.js.map +1 -1
- package/src/application_ref.metadata.json +1 -1
- package/src/application_tokens.d.ts +6 -1
- package/src/application_tokens.js +9 -4
- package/src/application_tokens.js.map +1 -1
- package/src/application_tokens.metadata.json +1 -1
- package/src/change_detection/change_detection.d.ts +9 -8
- package/src/change_detection/change_detection.js +21 -21
- package/src/change_detection/change_detection.js.map +1 -1
- package/src/change_detection/change_detection.metadata.json +1 -1
- package/src/change_detection/change_detection_util.d.ts +3 -1
- package/src/change_detection/change_detection_util.js +6 -5
- package/src/change_detection/change_detection_util.js.map +1 -1
- package/src/change_detection/change_detection_util.metadata.json +1 -1
- package/src/change_detection/change_detector_ref.d.ts +3 -0
- package/src/change_detection/change_detector_ref.js +3 -0
- package/src/change_detection/change_detector_ref.js.map +1 -1
- package/src/change_detection/constants.d.ts +1 -0
- package/src/change_detection/constants.js +4 -3
- package/src/change_detection/constants.js.map +1 -1
- package/src/change_detection/constants.metadata.json +1 -1
- package/src/change_detection/differs/default_iterable_differ.d.ts +6 -94
- package/src/change_detection/differs/default_iterable_differ.js +25 -18
- package/src/change_detection/differs/default_iterable_differ.js.map +1 -1
- package/src/change_detection/differs/default_keyvalue_differ.d.ts +3 -30
- package/src/change_detection/differs/default_keyvalue_differ.js +13 -8
- package/src/change_detection/differs/default_keyvalue_differ.js.map +1 -1
- package/src/change_detection/differs/iterable_differs.d.ts +4 -1
- package/src/change_detection/differs/iterable_differs.js +4 -3
- package/src/change_detection/differs/iterable_differs.js.map +1 -1
- package/src/change_detection/differs/keyvalue_differs.d.ts +2 -1
- package/src/change_detection/differs/keyvalue_differs.js +4 -3
- package/src/change_detection/differs/keyvalue_differs.js.map +1 -1
- package/src/change_detection/pipe_transform.js.map +1 -1
- package/src/change_detection.d.ts +1 -1
- package/src/change_detection.js +9 -9
- package/src/change_detection.js.map +1 -1
- package/src/console.js +2 -1
- package/src/console.js.map +1 -1
- package/src/console.metadata.json +1 -1
- package/src/debug/debug_node.d.ts +20 -2
- package/src/debug/debug_node.js +16 -2
- package/src/debug/debug_node.js.map +1 -1
- package/src/debug/debug_node.metadata.json +1 -0
- package/src/debug/debug_renderer.d.ts +10 -6
- package/src/debug/debug_renderer.js +12 -1
- package/src/debug/debug_renderer.js.map +1 -1
- package/src/di/decorators.d.ts +13 -1
- package/src/di/decorators.js +7 -1
- package/src/di/decorators.js.map +1 -1
- package/src/di/decorators.metadata.json +1 -1
- package/src/di/forward_ref.d.ts +3 -1
- package/src/di/forward_ref.js +3 -1
- package/src/di/forward_ref.js.map +1 -1
- package/src/di/injector.d.ts +4 -1
- package/src/di/injector.js +5 -2
- package/src/di/injector.js.map +1 -1
- package/src/di/injector.metadata.json +1 -1
- package/src/di/metadata.d.ts +8 -1
- package/src/di/metadata.js +10 -3
- package/src/di/metadata.js.map +1 -1
- package/src/di/opaque_token.d.ts +2 -1
- package/src/di/opaque_token.js +22 -21
- package/src/di/opaque_token.js.map +1 -1
- package/src/di/provider.d.ts +11 -10
- package/src/di/provider.js +17 -14
- package/src/di/provider.js.map +1 -1
- package/src/di/provider.metadata.json +1 -0
- package/src/di/provider_util.js.map +1 -1
- package/src/di/provider_util.metadata.json +1 -0
- package/src/di/reflective_exceptions.d.ts +11 -16
- package/src/di/reflective_exceptions.js +28 -22
- package/src/di/reflective_exceptions.js.map +1 -1
- package/src/di/reflective_injector.d.ts +3 -33
- package/src/di/reflective_injector.js +9 -6
- package/src/di/reflective_injector.js.map +1 -1
- package/src/di/reflective_key.d.ts +1 -8
- package/src/di/reflective_key.js +3 -2
- package/src/di/reflective_key.js.map +1 -1
- package/src/di/reflective_provider.d.ts +2 -1
- package/src/di/reflective_provider.js +6 -5
- package/src/di/reflective_provider.js.map +1 -1
- package/src/di/reflective_provider.metadata.json +1 -0
- package/src/di.d.ts +2 -2
- package/src/di.js +7 -9
- package/src/di.js.map +1 -1
- package/src/facade/async.d.ts +11 -4
- package/src/facade/async.js +27 -17
- package/src/facade/async.js.map +1 -1
- package/src/facade/base_wrapped_exception.js +4 -4
- package/src/facade/base_wrapped_exception.js.map +1 -1
- package/src/facade/collection.js.map +1 -1
- package/src/facade/collection.metadata.json +1 -1
- package/src/facade/exception_handler.d.ts +2 -11
- package/src/facade/exception_handler.js +8 -7
- package/src/facade/exception_handler.js.map +1 -1
- package/src/facade/exceptions.d.ts +4 -0
- package/src/facade/exceptions.js +6 -2
- package/src/facade/exceptions.js.map +1 -1
- package/src/facade/exceptions.metadata.json +1 -0
- package/src/facade/lang.d.ts +6 -4
- package/src/facade/lang.js +12 -11
- package/src/facade/lang.js.map +1 -1
- package/src/facade/lang.metadata.json +1 -1
- package/src/facade/math.d.ts +2 -0
- package/src/facade/math.js +5 -0
- package/src/facade/math.js.map +1 -0
- package/src/facade/math.metadata.json +1 -0
- package/src/facade/promise.js.map +1 -1
- package/src/linker/component_factory.d.ts +5 -4
- package/src/linker/component_factory.js +7 -3
- package/src/linker/component_factory.js.map +1 -1
- package/src/linker/component_resolver.d.ts +5 -4
- package/src/linker/component_resolver.js +12 -7
- package/src/linker/component_resolver.js.map +1 -1
- package/src/linker/component_resolver.metadata.json +1 -1
- package/src/linker/debug_context.js +5 -4
- package/src/linker/debug_context.js.map +1 -1
- package/src/linker/dynamic_component_loader.d.ts +5 -6
- package/src/linker/dynamic_component_loader.js +5 -3
- package/src/linker/dynamic_component_loader.js.map +1 -1
- package/src/linker/dynamic_component_loader.metadata.json +1 -1
- package/src/linker/element.d.ts +3 -3
- package/src/linker/element.js +5 -5
- package/src/linker/element.js.map +1 -1
- package/src/linker/element_injector.js.map +1 -1
- package/src/linker/element_ref.d.ts +1 -0
- package/src/linker/element_ref.js +5 -5
- package/src/linker/element_ref.js.map +1 -1
- package/src/linker/exceptions.d.ts +4 -1
- package/src/linker/exceptions.js +4 -1
- package/src/linker/exceptions.js.map +1 -1
- package/src/linker/query_list.d.ts +3 -10
- package/src/linker/query_list.js +8 -7
- package/src/linker/query_list.js.map +1 -1
- package/src/linker/systemjs_component_resolver.d.ts +21 -0
- package/src/linker/systemjs_component_resolver.js +52 -0
- package/src/linker/systemjs_component_resolver.js.map +1 -0
- package/src/linker/template_ref.d.ts +2 -1
- package/src/linker/template_ref.js +1 -0
- package/src/linker/template_ref.js.map +1 -1
- package/src/linker/view.d.ts +12 -1
- package/src/linker/view.js +65 -15
- package/src/linker/view.js.map +1 -1
- package/src/linker/view_container_ref.d.ts +2 -10
- package/src/linker/view_container_ref.js +4 -3
- package/src/linker/view_container_ref.js.map +1 -1
- package/src/linker/view_ref.d.ts +5 -1
- package/src/linker/view_ref.js +6 -2
- package/src/linker/view_ref.js.map +1 -1
- package/src/linker/view_type.js.map +1 -1
- package/src/linker/view_utils.d.ts +2 -4
- package/src/linker/view_utils.js +21 -21
- package/src/linker/view_utils.js.map +1 -1
- package/src/linker/view_utils.metadata.json +1 -1
- package/src/linker.d.ts +5 -4
- package/src/linker.js +12 -9
- package/src/linker.js.map +1 -1
- package/src/metadata/di.d.ts +8 -1
- package/src/metadata/di.js +10 -3
- package/src/metadata/di.js.map +1 -1
- package/src/metadata/directives.d.ts +104 -20
- package/src/metadata/directives.js +25 -27
- package/src/metadata/directives.js.map +1 -1
- package/src/metadata/lifecycle_hooks.d.ts +46 -31
- package/src/metadata/lifecycle_hooks.js +496 -10
- package/src/metadata/lifecycle_hooks.js.map +1 -1
- package/src/metadata/lifecycle_hooks.metadata.json +1 -1
- package/src/metadata/view.d.ts +6 -2
- package/src/metadata/view.js +3 -1
- package/src/metadata/view.js.map +1 -1
- package/src/metadata/view.metadata.json +1 -1
- package/src/metadata.d.ts +49 -15
- package/src/metadata.js +70 -37
- package/src/metadata.js.map +1 -1
- package/src/metadata.metadata.json +1 -1
- package/src/platform_common_providers.d.ts +1 -0
- package/src/platform_common_providers.js +3 -3
- package/src/platform_common_providers.js.map +1 -1
- package/src/platform_common_providers.metadata.json +1 -1
- package/src/platform_directives_and_pipes.d.ts +48 -45
- package/src/platform_directives_and_pipes.js +50 -47
- package/src/platform_directives_and_pipes.js.map +1 -1
- package/src/platform_directives_and_pipes.metadata.json +1 -1
- package/src/profile/profile.d.ts +5 -1
- package/src/profile/profile.js +5 -3
- package/src/profile/profile.js.map +1 -1
- package/src/profile/profile.metadata.json +1 -1
- package/src/profile/wtf_impl.js +1 -1
- package/src/profile/wtf_impl.js.map +1 -1
- package/src/profile/wtf_impl.metadata.json +1 -0
- package/src/profile/wtf_init.js +2 -2
- package/src/profile/wtf_init.js.map +1 -1
- package/src/reflection/platform_reflection_capabilities.d.ts +4 -3
- package/src/reflection/platform_reflection_capabilities.js.map +1 -1
- package/src/reflection/reflection.d.ts +1 -1
- package/src/reflection/reflection.js +2 -2
- package/src/reflection/reflection.js.map +1 -1
- package/src/reflection/reflection.metadata.json +1 -1
- package/src/reflection/reflection_capabilities.d.ts +4 -5
- package/src/reflection/reflection_capabilities.js +24 -10
- package/src/reflection/reflection_capabilities.js.map +1 -1
- package/src/reflection/reflector.d.ts +8 -20
- package/src/reflection/reflector.js +13 -3
- package/src/reflection/reflector.js.map +1 -1
- package/src/reflection/reflector_reader.js +3 -3
- package/src/reflection/reflector_reader.js.map +1 -1
- package/src/reflection/types.js.map +1 -1
- package/src/render/api.d.ts +17 -6
- package/src/render/api.js +8 -1
- package/src/render/api.js.map +1 -1
- package/src/render.d.ts +1 -1
- package/src/render.js +2 -2
- package/src/render.js.map +1 -1
- package/src/security.js +6 -6
- package/src/security.js.map +1 -1
- package/src/testability/testability.d.ts +3 -19
- package/src/testability/testability.js +10 -5
- package/src/testability/testability.js.map +1 -1
- package/src/testability/testability.metadata.json +1 -1
- package/src/util/decorators.d.ts +2 -1
- package/src/util/decorators.js +10 -9
- package/src/util/decorators.js.map +1 -1
- package/src/util.js.map +1 -1
- package/src/zone/ng_zone.d.ts +6 -17
- package/src/zone/ng_zone.js +11 -6
- package/src/zone/ng_zone.js.map +1 -1
- package/src/zone/ng_zone_impl.d.ts +1 -4
- package/src/zone/ng_zone_impl.js +3 -2
- package/src/zone/ng_zone_impl.js.map +1 -1
- package/src/zone.js.map +1 -1
- package/testing/async.js +20 -22
- package/testing/async.js.map +1 -1
- package/testing/async.metadata.json +1 -0
- package/testing/async_test_completer.js.map +1 -1
- package/testing/fake_async.d.ts +4 -1
- package/testing/fake_async.js +10 -2
- package/testing/fake_async.js.map +1 -1
- package/testing/lang_utils.js +1 -1
- package/testing/lang_utils.js.map +1 -1
- package/testing/lang_utils.metadata.json +1 -0
- package/testing/logger.js +5 -3
- package/testing/logger.js.map +1 -1
- package/testing/logger.metadata.json +1 -1
- package/testing/mock_application_ref.d.ts +1 -1
- package/testing/mock_application_ref.js +1 -0
- package/testing/mock_application_ref.js.map +1 -1
- package/testing/mock_application_ref.metadata.json +1 -1
- package/testing/ng_zone_mock.d.ts +0 -1
- package/testing/ng_zone_mock.js +2 -1
- package/testing/ng_zone_mock.js.map +1 -1
- package/testing/ng_zone_mock.metadata.json +1 -1
- package/testing/regexp.js +1 -1
- package/testing/regexp.js.map +1 -1
- package/testing/regexp.metadata.json +1 -0
- package/testing/test_injector.d.ts +6 -12
- package/testing/test_injector.js +3 -9
- package/testing/test_injector.js.map +1 -1
- package/testing/test_injector.metadata.json +1 -0
- package/testing/testing.d.ts +2 -2
- package/testing/testing.js +5 -5
- package/testing/testing.js.map +1 -1
- package/testing/testing.metadata.json +1 -1
- package/testing.js.map +1 -1
|
@@ -1,50 +1,53 @@
|
|
|
1
1
|
import { OpaqueToken } from './di';
|
|
2
2
|
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
3
|
+
A token that can be provided when bootstrapping an application to make an array of directives
|
|
4
|
+
* available in every component of the application.
|
|
5
|
+
*
|
|
6
|
+
* ### Example
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import {PLATFORM_DIRECTIVES} from '@angular/core';
|
|
10
|
+
* import {OtherDirective} from './myDirectives';
|
|
11
|
+
*
|
|
12
|
+
* @Component({
|
|
13
|
+
* selector: 'my-component',
|
|
14
|
+
* template: `
|
|
15
|
+
* <!-- can use other directive even though the component does not list it in `directives` -->
|
|
16
|
+
* <other-directive></other-directive>
|
|
17
|
+
* `
|
|
18
|
+
* })
|
|
19
|
+
* export class MyComponent {
|
|
20
|
+
* ...
|
|
21
|
+
* }
|
|
22
|
+
*
|
|
23
|
+
* bootstrap(MyComponent, [{provide: PLATFORM_DIRECTIVES, useValue: [OtherDirective],
|
|
24
|
+
multi:true}]);
|
|
25
|
+
* ```
|
|
26
|
+
* @stable
|
|
27
|
+
*/
|
|
26
28
|
export declare const PLATFORM_DIRECTIVES: OpaqueToken;
|
|
27
29
|
/**
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
30
|
+
* A token that can be provided when bootstraping an application to make an array of pipes
|
|
31
|
+
* available in every component of the application.
|
|
32
|
+
*
|
|
33
|
+
* ### Example
|
|
34
|
+
*
|
|
35
|
+
* ```typescript
|
|
36
|
+
* import {PLATFORM_PIPES} from '@angular/core';
|
|
37
|
+
* import {OtherPipe} from './myPipe';
|
|
38
|
+
*
|
|
39
|
+
* @Component({
|
|
40
|
+
* selector: 'my-component',
|
|
41
|
+
* template: `
|
|
42
|
+
* {{123 | other-pipe}}
|
|
43
|
+
* `
|
|
44
|
+
* })
|
|
45
|
+
* export class MyComponent {
|
|
46
|
+
* ...
|
|
47
|
+
* }
|
|
48
|
+
*
|
|
49
|
+
* bootstrap(MyComponent, [{provide: PLATFORM_PIPES, useValue: [OtherPipe], multi:true}]);
|
|
50
|
+
* ```
|
|
51
|
+
* @stable
|
|
52
|
+
*/
|
|
50
53
|
export declare const PLATFORM_PIPES: OpaqueToken;
|
|
@@ -1,53 +1,56 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var di_1 = require('./di');
|
|
3
3
|
/**
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
4
|
+
A token that can be provided when bootstrapping an application to make an array of directives
|
|
5
|
+
* available in every component of the application.
|
|
6
|
+
*
|
|
7
|
+
* ### Example
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import {PLATFORM_DIRECTIVES} from '@angular/core';
|
|
11
|
+
* import {OtherDirective} from './myDirectives';
|
|
12
|
+
*
|
|
13
|
+
* @Component({
|
|
14
|
+
* selector: 'my-component',
|
|
15
|
+
* template: `
|
|
16
|
+
* <!-- can use other directive even though the component does not list it in `directives` -->
|
|
17
|
+
* <other-directive></other-directive>
|
|
18
|
+
* `
|
|
19
|
+
* })
|
|
20
|
+
* export class MyComponent {
|
|
21
|
+
* ...
|
|
22
|
+
* }
|
|
23
|
+
*
|
|
24
|
+
* bootstrap(MyComponent, [{provide: PLATFORM_DIRECTIVES, useValue: [OtherDirective],
|
|
25
|
+
multi:true}]);
|
|
26
|
+
* ```
|
|
27
|
+
* @stable
|
|
28
|
+
*/
|
|
27
29
|
exports.PLATFORM_DIRECTIVES =
|
|
28
|
-
/*@ts2dart_const*/ new di_1.OpaqueToken(
|
|
30
|
+
/*@ts2dart_const*/ new di_1.OpaqueToken('Platform Directives');
|
|
29
31
|
/**
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
32
|
+
* A token that can be provided when bootstraping an application to make an array of pipes
|
|
33
|
+
* available in every component of the application.
|
|
34
|
+
*
|
|
35
|
+
* ### Example
|
|
36
|
+
*
|
|
37
|
+
* ```typescript
|
|
38
|
+
* import {PLATFORM_PIPES} from '@angular/core';
|
|
39
|
+
* import {OtherPipe} from './myPipe';
|
|
40
|
+
*
|
|
41
|
+
* @Component({
|
|
42
|
+
* selector: 'my-component',
|
|
43
|
+
* template: `
|
|
44
|
+
* {{123 | other-pipe}}
|
|
45
|
+
* `
|
|
46
|
+
* })
|
|
47
|
+
* export class MyComponent {
|
|
48
|
+
* ...
|
|
49
|
+
* }
|
|
50
|
+
*
|
|
51
|
+
* bootstrap(MyComponent, [{provide: PLATFORM_PIPES, useValue: [OtherPipe], multi:true}]);
|
|
52
|
+
* ```
|
|
53
|
+
* @stable
|
|
54
|
+
*/
|
|
55
|
+
exports.PLATFORM_PIPES = new di_1.OpaqueToken('Platform Pipes');
|
|
53
56
|
//# sourceMappingURL=platform_directives_and_pipes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform_directives_and_pipes.js","sourceRoot":"","sources":["../../../../modules/@angular/core/src/platform_directives_and_pipes.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"platform_directives_and_pipes.js","sourceRoot":"","sources":["../../../../modules/@angular/core/src/platform_directives_and_pipes.ts"],"names":[],"mappings":";AAAA,mBAA0B,MAAM,CAAC,CAAA;AAEjC;;;;;;;;;;;;;;;;;;;;;;;;;IAyBI;AAES,2BAAmB;AAC5B,kBAAkB,CAAC,IAAI,gBAAW,CAAC,qBAAqB,CAAC,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;;;;;IAuBI;AAES,sBAAc,GAAmC,IAAI,gBAAW,CAAC,gBAAgB,CAAC,CAAC","sourcesContent":["import {OpaqueToken} from './di';\n\n/**\n A token that can be provided when bootstrapping an application to make an array of directives\n * available in every component of the application.\n *\n * ### Example\n *\n * ```typescript\n * import {PLATFORM_DIRECTIVES} from '@angular/core';\n * import {OtherDirective} from './myDirectives';\n *\n * @Component({\n * selector: 'my-component',\n * template: `\n * <!-- can use other directive even though the component does not list it in `directives` -->\n * <other-directive></other-directive>\n * `\n * })\n * export class MyComponent {\n * ...\n * }\n *\n * bootstrap(MyComponent, [{provide: PLATFORM_DIRECTIVES, useValue: [OtherDirective],\n multi:true}]);\n * ```\n * @stable\n */\n\nexport const PLATFORM_DIRECTIVES: OpaqueToken =\n /*@ts2dart_const*/ new OpaqueToken('Platform Directives');\n\n/**\n * A token that can be provided when bootstraping an application to make an array of pipes\n * available in every component of the application.\n *\n * ### Example\n *\n * ```typescript\n * import {PLATFORM_PIPES} from '@angular/core';\n * import {OtherPipe} from './myPipe';\n *\n * @Component({\n * selector: 'my-component',\n * template: `\n * {{123 | other-pipe}}\n * `\n * })\n * export class MyComponent {\n * ...\n * }\n *\n * bootstrap(MyComponent, [{provide: PLATFORM_PIPES, useValue: [OtherPipe], multi:true}]);\n * ```\n * @stable\n */\n\nexport const PLATFORM_PIPES: OpaqueToken = /*@ts2dart_const*/ new OpaqueToken('Platform Pipes');\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","metadata":{"PLATFORM_DIRECTIVES":{"__symbolic":"new","expression":{"__symbolic":"reference","
|
|
1
|
+
{"__symbolic":"module","version":1,"metadata":{"PLATFORM_DIRECTIVES":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./di","name":"OpaqueToken"},"arguments":["Platform Directives"]},"PLATFORM_PIPES":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./di","name":"OpaqueToken"},"arguments":["Platform Pipes"]}}}
|
package/src/profile/profile.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { WtfScopeFn } from './wtf_impl';
|
|
2
1
|
import * as impl from './wtf_impl';
|
|
2
|
+
export { WtfScopeFn } from './wtf_impl';
|
|
3
3
|
/**
|
|
4
4
|
* True if WTF is enabled.
|
|
5
5
|
*/
|
|
@@ -32,6 +32,7 @@ export declare var wtfEnabled: boolean;
|
|
|
32
32
|
* needs to be fixed before the app should be profiled. Add try-finally only when you expect that
|
|
33
33
|
* an exception is expected during normal execution while profiling.
|
|
34
34
|
*
|
|
35
|
+
* @experimental
|
|
35
36
|
*/
|
|
36
37
|
export declare var wtfCreateScope: (signature: string, flags?: any) => impl.WtfScopeFn;
|
|
37
38
|
/**
|
|
@@ -41,6 +42,7 @@ export declare var wtfCreateScope: (signature: string, flags?: any) => impl.WtfS
|
|
|
41
42
|
* - `returnValue` (optional) to be passed to the WTF.
|
|
42
43
|
*
|
|
43
44
|
* Returns the `returnValue for easy chaining.
|
|
45
|
+
* @experimental
|
|
44
46
|
*/
|
|
45
47
|
export declare var wtfLeave: <T>(scope: any, returnValue?: T) => T;
|
|
46
48
|
/**
|
|
@@ -54,11 +56,13 @@ export declare var wtfLeave: <T>(scope: any, returnValue?: T) => T;
|
|
|
54
56
|
* wtfEndTimeRange(s);
|
|
55
57
|
* });
|
|
56
58
|
* }
|
|
59
|
+
* @experimental
|
|
57
60
|
*/
|
|
58
61
|
export declare var wtfStartTimeRange: (rangeType: string, action: string) => any;
|
|
59
62
|
/**
|
|
60
63
|
* Ends a async time range operation.
|
|
61
64
|
* [range] is the return value from [wtfStartTimeRange] Async ranges only work if WTF has been
|
|
62
65
|
* enabled.
|
|
66
|
+
* @experimental
|
|
63
67
|
*/
|
|
64
68
|
export declare var wtfEndTimeRange: (range: any) => void;
|
package/src/profile/profile.js
CHANGED
|
@@ -36,6 +36,7 @@ function noopScope(arg0, arg1) {
|
|
|
36
36
|
* needs to be fixed before the app should be profiled. Add try-finally only when you expect that
|
|
37
37
|
* an exception is expected during normal execution while profiling.
|
|
38
38
|
*
|
|
39
|
+
* @experimental
|
|
39
40
|
*/
|
|
40
41
|
exports.wtfCreateScope = exports.wtfEnabled ? impl.createScope : function (signature, flags) { return noopScope; };
|
|
41
42
|
/**
|
|
@@ -45,6 +46,7 @@ exports.wtfCreateScope = exports.wtfEnabled ? impl.createScope : function (signa
|
|
|
45
46
|
* - `returnValue` (optional) to be passed to the WTF.
|
|
46
47
|
*
|
|
47
48
|
* Returns the `returnValue for easy chaining.
|
|
49
|
+
* @experimental
|
|
48
50
|
*/
|
|
49
51
|
exports.wtfLeave = exports.wtfEnabled ? impl.leave : function (s, r) { return r; };
|
|
50
52
|
/**
|
|
@@ -58,14 +60,14 @@ exports.wtfLeave = exports.wtfEnabled ? impl.leave : function (s, r) { return r;
|
|
|
58
60
|
* wtfEndTimeRange(s);
|
|
59
61
|
* });
|
|
60
62
|
* }
|
|
63
|
+
* @experimental
|
|
61
64
|
*/
|
|
62
65
|
exports.wtfStartTimeRange = exports.wtfEnabled ? impl.startTimeRange : function (rangeType, action) { return null; };
|
|
63
66
|
/**
|
|
64
67
|
* Ends a async time range operation.
|
|
65
68
|
* [range] is the return value from [wtfStartTimeRange] Async ranges only work if WTF has been
|
|
66
69
|
* enabled.
|
|
70
|
+
* @experimental
|
|
67
71
|
*/
|
|
68
|
-
exports.wtfEndTimeRange = exports.wtfEnabled ? impl.endTimeRange : function (r) {
|
|
69
|
-
return null;
|
|
70
|
-
};
|
|
72
|
+
exports.wtfEndTimeRange = exports.wtfEnabled ? impl.endTimeRange : function (r) { return null; };
|
|
71
73
|
//# sourceMappingURL=profile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/profile/profile.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"profile.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/profile/profile.ts"],"names":[],"mappings":";AAAA,IAAY,IAAI,WAAM,YAAY,CAAC,CAAA;AAKnC,6EAA6E;AAE7E;;GAEG;AACQ,kBAAU,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;AAEzC,mBAAmB,IAAU,EAAE,IAAU;IACvC,MAAM,CAAC,IAAI,CAAC;AACd,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACQ,sBAAc,GACrB,kBAAU,GAAG,IAAI,CAAC,WAAW,GAAG,UAAC,SAAiB,EAAE,KAAW,IAAK,OAAA,SAAS,EAAT,CAAS,CAAC;AAElF;;;;;;;;GAQG;AACQ,gBAAQ,GACf,kBAAU,GAAG,IAAI,CAAC,KAAK,GAAG,UAAC,CAAM,EAAE,CAAO,IAAK,OAAA,CAAC,EAAD,CAAC,CAAC;AAErD;;;;;;;;;;;;GAYG;AACQ,yBAAiB,GACxB,kBAAU,GAAG,IAAI,CAAC,cAAc,GAAG,UAAC,SAAiB,EAAE,MAAc,IAAK,OAAA,IAAI,EAAJ,CAAI,CAAC;AAEnF;;;;;GAKG;AACQ,uBAAe,GACtB,kBAAU,GAAG,IAAI,CAAC,YAAY,GAAG,UAAC,CAAM,IAAK,OAAA,IAAI,EAAJ,CAAI,CAAC","sourcesContent":["import * as impl from './wtf_impl';\n\nexport {WtfScopeFn} from './wtf_impl';\n\n\n// Change exports to const once https://github.com/angular/ts2dart/issues/150\n\n/**\n * True if WTF is enabled.\n */\nexport var wtfEnabled = impl.detectWTF();\n\nfunction noopScope(arg0?: any, arg1?: any): any {\n return null;\n}\n\n/**\n * Create trace scope.\n *\n * Scopes must be strictly nested and are analogous to stack frames, but\n * do not have to follow the stack frames. Instead it is recommended that they follow logical\n * nesting. You may want to use\n * [Event\n * Signatures](http://google.github.io/tracing-framework/instrumenting-code.html#custom-events)\n * as they are defined in WTF.\n *\n * Used to mark scope entry. The return value is used to leave the scope.\n *\n * var myScope = wtfCreateScope('MyClass#myMethod(ascii someVal)');\n *\n * someMethod() {\n * var s = myScope('Foo'); // 'Foo' gets stored in tracing UI\n * // DO SOME WORK HERE\n * return wtfLeave(s, 123); // Return value 123\n * }\n *\n * Note, adding try-finally block around the work to ensure that `wtfLeave` gets called can\n * negatively impact the performance of your application. For this reason we recommend that\n * you don't add them to ensure that `wtfLeave` gets called. In production `wtfLeave` is a noop and\n * so try-finally block has no value. When debugging perf issues, skipping `wtfLeave`, do to\n * exception, will produce incorrect trace, but presence of exception signifies logic error which\n * needs to be fixed before the app should be profiled. Add try-finally only when you expect that\n * an exception is expected during normal execution while profiling.\n *\n * @experimental\n */\nexport var wtfCreateScope: (signature: string, flags?: any) => impl.WtfScopeFn =\n wtfEnabled ? impl.createScope : (signature: string, flags?: any) => noopScope;\n\n/**\n * Used to mark end of Scope.\n *\n * - `scope` to end.\n * - `returnValue` (optional) to be passed to the WTF.\n *\n * Returns the `returnValue for easy chaining.\n * @experimental\n */\nexport var wtfLeave: <T>(scope: any, returnValue?: T) => T =\n wtfEnabled ? impl.leave : (s: any, r?: any) => r;\n\n/**\n * Used to mark Async start. Async are similar to scope but they don't have to be strictly nested.\n * The return value is used in the call to [endAsync]. Async ranges only work if WTF has been\n * enabled.\n *\n * someMethod() {\n * var s = wtfStartTimeRange('HTTP:GET', 'some.url');\n * var future = new Future.delay(5).then((_) {\n * wtfEndTimeRange(s);\n * });\n * }\n * @experimental\n */\nexport var wtfStartTimeRange: (rangeType: string, action: string) => any =\n wtfEnabled ? impl.startTimeRange : (rangeType: string, action: string) => null;\n\n/**\n * Ends a async time range operation.\n * [range] is the return value from [wtfStartTimeRange] Async ranges only work if WTF has been\n * enabled.\n * @experimental\n */\nexport var wtfEndTimeRange: (range: any) => void =\n wtfEnabled ? impl.endTimeRange : (r: any) => null;\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","metadata":{"wtfEnabled":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"detectWTF","
|
|
1
|
+
{"__symbolic":"module","version":1,"metadata":{"wtfEnabled":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"./wtf_impl","name":"detectWTF"}},"wtfCreateScope":{"__symbolic":"error","message":"Expression form not supported","line":46,"character":80},"wtfLeave":{"__symbolic":"error","message":"Expression form not supported","line":58,"character":60},"wtfStartTimeRange":{"__symbolic":"error","message":"Expression form not supported","line":74,"character":74},"wtfEndTimeRange":{"__symbolic":"error","message":"Expression form not supported","line":83,"character":50}}}
|
package/src/profile/wtf_impl.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wtf_impl.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/profile/wtf_impl.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"wtf_impl.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/profile/wtf_impl.ts"],"names":[],"mappings":";AAAA,qBAAqB,gBAAgB,CAAC,CAAA;AA0BtC,IAAI,KAAY,CAAC;AACjB,IAAI,MAAc,CAAC;AAEnB;IACE,IAAI,GAAG,GAAS,aAAgC,CAAC,KAAK,CAAC,CAAC;IACxD,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QACR,KAAK,GAAG,GAAG,CAAC,OAAO,CAAC,CAAC;QACrB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;YACV,MAAM,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC;YACzB,MAAM,CAAC,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IACD,MAAM,CAAC,KAAK,CAAC;AACf,CAAC;AAVe,iBAAS,YAUxB,CAAA;AAED,qBAA4B,SAAiB,EAAE,KAAiB;IAAjB,qBAAiB,GAAjB,YAAiB;IAC9D,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC;AAFe,mBAAW,cAE1B,CAAA;AAED,eAAyB,KAAY,EAAE,WAAe;IACpD,KAAK,CAAC,UAAU,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;IACrC,MAAM,CAAC,WAAW,CAAC;AACrB,CAAC;AAHe,aAAK,QAGpB,CAAA;AAED,wBAA+B,SAAiB,EAAE,MAAc;IAC9D,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;AACjD,CAAC;AAFe,sBAAc,iBAE7B,CAAA;AAED,sBAA6B,KAAY;IACvC,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;AAC5B,CAAC;AAFe,oBAAY,eAE3B,CAAA","sourcesContent":["import {global} from '../facade/lang';\n\n/**\n * A scope function for the Web Tracing Framework (WTF).\n */\nexport interface WtfScopeFn { (arg0?: any, arg1?: any): any; }\n\ninterface WTF {\n trace: Trace;\n}\n\ninterface Trace {\n events: Events;\n leaveScope(scope: Scope, returnValue: any): any /** TODO #9100 */;\n beginTimeRange(rangeType: string, action: string): Range;\n endTimeRange(range: Range): any /** TODO #9100 */;\n}\n\nexport interface Range {}\n\ninterface Events {\n createScope(signature: string, flags: any): Scope;\n}\n\nexport interface Scope { (...args: any[] /** TODO #9100 */): any; }\n\nvar trace: Trace;\nvar events: Events;\n\nexport function detectWTF(): boolean {\n var wtf: WTF = (global as any /** TODO #9100 */)['wtf'];\n if (wtf) {\n trace = wtf['trace'];\n if (trace) {\n events = trace['events'];\n return true;\n }\n }\n return false;\n}\n\nexport function createScope(signature: string, flags: any = null): any {\n return events.createScope(signature, flags);\n}\n\nexport function leave<T>(scope: Scope, returnValue?: T): T {\n trace.leaveScope(scope, returnValue);\n return returnValue;\n}\n\nexport function startTimeRange(rangeType: string, action: string): Range {\n return trace.beginTimeRange(rangeType, action);\n}\n\nexport function endTimeRange(range: Range): void {\n trace.endTimeRange(range);\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"__symbolic":"module","version":1,"metadata":{"createScope":{"__symbolic":"function","parameters":["signature","flags"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"events"},"member":"createScope"},"arguments":[{"__symbolic":"reference","name":"signature"},{"__symbolic":"reference","name":"flags"}]}},"startTimeRange":{"__symbolic":"function","parameters":["rangeType","action"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"trace"},"member":"beginTimeRange"},"arguments":[{"__symbolic":"reference","name":"rangeType"},{"__symbolic":"reference","name":"action"}]}}}}
|
package/src/profile/wtf_init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wtf_init.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/profile/wtf_init.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"wtf_init.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/profile/wtf_init.ts"],"names":[],"mappings":";AAAA;;GAEG;AACH,qBAA2B,CAAC;AAAZ,eAAO,UAAK,CAAA","sourcesContent":["/**\n * This is here because DART requires it. It is noop in JS.\n */\nexport function wtfInit() {}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Type } from '
|
|
2
|
-
import { GetterFn,
|
|
1
|
+
import { Type } from '../facade/lang';
|
|
2
|
+
import { GetterFn, MethodFn, SetterFn } from './types';
|
|
3
3
|
export interface PlatformReflectionCapabilities {
|
|
4
4
|
isReflectionEnabled(): boolean;
|
|
5
5
|
factory(type: Type): Function;
|
|
6
6
|
interfaces(type: Type): any[];
|
|
7
|
+
hasLifecycleHook(type: any, lcInterface: any, lcProperty: string): boolean;
|
|
7
8
|
parameters(type: any): any[][];
|
|
8
9
|
annotations(type: any): any[];
|
|
9
10
|
propMetadata(typeOrFunc: any): {
|
|
@@ -12,5 +13,5 @@ export interface PlatformReflectionCapabilities {
|
|
|
12
13
|
getter(name: string): GetterFn;
|
|
13
14
|
setter(name: string): SetterFn;
|
|
14
15
|
method(name: string): MethodFn;
|
|
15
|
-
importUri(type:
|
|
16
|
+
importUri(type: any): string;
|
|
16
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform_reflection_capabilities.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/reflection/platform_reflection_capabilities.ts"],"names":[],"mappings":"","sourcesContent":["
|
|
1
|
+
{"version":3,"file":"platform_reflection_capabilities.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/reflection/platform_reflection_capabilities.ts"],"names":[],"mappings":"","sourcesContent":["import {Type} from '../facade/lang';\n\nimport {GetterFn, MethodFn, SetterFn} from './types';\n\nexport interface PlatformReflectionCapabilities {\n isReflectionEnabled(): boolean;\n factory(type: Type): Function;\n interfaces(type: Type): any[];\n hasLifecycleHook(type: any, lcInterface: /*Type*/ any, lcProperty: string): boolean;\n parameters(type: any): any[][];\n annotations(type: any): any[];\n propMetadata(typeOrFunc: any): {[key: string]: any[]};\n getter(name: string): GetterFn;\n setter(name: string): SetterFn;\n method(name: string): MethodFn;\n importUri(type: any): string;\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var reflection_capabilities_1 = require('./reflection_capabilities');
|
|
2
3
|
var reflector_1 = require('./reflector');
|
|
3
4
|
var reflector_2 = require('./reflector');
|
|
4
|
-
exports.Reflector = reflector_2.Reflector;
|
|
5
5
|
exports.ReflectionInfo = reflector_2.ReflectionInfo;
|
|
6
|
-
|
|
6
|
+
exports.Reflector = reflector_2.Reflector;
|
|
7
7
|
/**
|
|
8
8
|
* The {@link Reflector} used internally in Angular to access metadata
|
|
9
9
|
* about symbols.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reflection.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/reflection/reflection.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"reflection.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/reflection/reflection.ts"],"names":[],"mappings":";AAAA,wCAAqC,2BAA2B,CAAC,CAAA;AACjE,0BAAwB,aAAa,CAAC,CAAA;AAEtC,0BAAwC,aAAa,CAAC;AAA9C,oDAAc;AAAE,0CAA8B;AAGtD;;;GAGG;AACQ,iBAAS,GAAG,IAAI,qBAAS,CAAC,IAAI,gDAAsB,EAAE,CAAC,CAAC","sourcesContent":["import {ReflectionCapabilities} from './reflection_capabilities';\nimport {Reflector} from './reflector';\n\nexport {ReflectionInfo, Reflector} from './reflector';\n\n\n/**\n * The {@link Reflector} used internally in Angular to access metadata\n * about symbols.\n */\nexport var reflector = new Reflector(new ReflectionCapabilities());\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","metadata":{"reflector":{"__symbolic":"new","expression":{"__symbolic":"reference","
|
|
1
|
+
{"__symbolic":"module","version":1,"metadata":{"reflector":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./reflector","name":"Reflector"},"arguments":[{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./reflection_capabilities","name":"ReflectionCapabilities"}}]}}}
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { GetterFn, SetterFn, MethodFn } from './types';
|
|
1
|
+
import { ConcreteType, Type } from '../facade/lang';
|
|
3
2
|
import { PlatformReflectionCapabilities } from './platform_reflection_capabilities';
|
|
3
|
+
import { GetterFn, MethodFn, SetterFn } from './types';
|
|
4
4
|
export declare class ReflectionCapabilities implements PlatformReflectionCapabilities {
|
|
5
5
|
private _reflect;
|
|
6
6
|
constructor(reflect?: any);
|
|
7
7
|
isReflectionEnabled(): boolean;
|
|
8
8
|
factory(t: ConcreteType): Function;
|
|
9
|
-
/** @internal */
|
|
10
|
-
_zipTypesAndAnnotations(paramTypes: any, paramAnnotations: any): any[][];
|
|
11
9
|
parameters(typeOrFunc: Type): any[][];
|
|
12
10
|
annotations(typeOrFunc: Type): any[];
|
|
13
11
|
propMetadata(typeOrFunc: any): {
|
|
14
12
|
[key: string]: any[];
|
|
15
13
|
};
|
|
16
14
|
interfaces(type: Type): any[];
|
|
15
|
+
hasLifecycleHook(type: any, lcInterface: Type, lcProperty: string): boolean;
|
|
17
16
|
getter(name: string): GetterFn;
|
|
18
17
|
setter(name: string): SetterFn;
|
|
19
18
|
method(name: string): MethodFn;
|
|
20
|
-
importUri(type:
|
|
19
|
+
importUri(type: any): string;
|
|
21
20
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var lang_1 = require('
|
|
3
|
-
var exceptions_1 = require('../../src/facade/exceptions');
|
|
2
|
+
var lang_1 = require('../facade/lang');
|
|
4
3
|
var ReflectionCapabilities = (function () {
|
|
5
4
|
function ReflectionCapabilities(reflect) {
|
|
6
5
|
this._reflect = lang_1.isPresent(reflect) ? reflect : lang_1.global.Reflect;
|
|
@@ -85,7 +84,7 @@ var ReflectionCapabilities = (function () {
|
|
|
85
84
|
throw new Error("Cannot create a factory for '" + lang_1.stringify(t) + "' because its constructor has more than 20 arguments");
|
|
86
85
|
};
|
|
87
86
|
/** @internal */
|
|
88
|
-
ReflectionCapabilities.prototype._zipTypesAndAnnotations = function (paramTypes
|
|
87
|
+
ReflectionCapabilities.prototype._zipTypesAndAnnotations = function (paramTypes /** TODO #9100 */, paramAnnotations /** TODO #9100 */) {
|
|
89
88
|
var result;
|
|
90
89
|
if (typeof paramTypes === 'undefined') {
|
|
91
90
|
result = new Array(paramAnnotations.length);
|
|
@@ -120,8 +119,10 @@ var ReflectionCapabilities = (function () {
|
|
|
120
119
|
// API of tsickle for lowering decorators to properties on the class.
|
|
121
120
|
if (lang_1.isPresent(typeOrFunc.ctorParameters)) {
|
|
122
121
|
var ctorParameters = typeOrFunc.ctorParameters;
|
|
123
|
-
var paramTypes_1 = ctorParameters.map(function (ctorParam) { return ctorParam && ctorParam.type; });
|
|
124
|
-
var paramAnnotations_1 = ctorParameters.map(function (ctorParam
|
|
122
|
+
var paramTypes_1 = ctorParameters.map(function (ctorParam /** TODO #9100 */) { return ctorParam && ctorParam.type; });
|
|
123
|
+
var paramAnnotations_1 = ctorParameters.map(function (ctorParam /** TODO #9100 */) {
|
|
124
|
+
return ctorParam && convertTsickleDecoratorIntoMetadata(ctorParam.decorators);
|
|
125
|
+
});
|
|
125
126
|
return this._zipTypesAndAnnotations(paramTypes_1, paramAnnotations_1);
|
|
126
127
|
}
|
|
127
128
|
// API for metadata created by invoking the decorators.
|
|
@@ -171,8 +172,7 @@ var ReflectionCapabilities = (function () {
|
|
|
171
172
|
if (lang_1.isPresent(typeOrFunc.propDecorators)) {
|
|
172
173
|
var propDecorators_1 = typeOrFunc.propDecorators;
|
|
173
174
|
var propMetadata_1 = {};
|
|
174
|
-
Object.keys(propDecorators_1)
|
|
175
|
-
.forEach(function (prop) {
|
|
175
|
+
Object.keys(propDecorators_1).forEach(function (prop) {
|
|
176
176
|
propMetadata_1[prop] = convertTsickleDecoratorIntoMetadata(propDecorators_1[prop]);
|
|
177
177
|
});
|
|
178
178
|
return propMetadata_1;
|
|
@@ -185,8 +185,15 @@ var ReflectionCapabilities = (function () {
|
|
|
185
185
|
}
|
|
186
186
|
return {};
|
|
187
187
|
};
|
|
188
|
-
|
|
189
|
-
|
|
188
|
+
// Note: JavaScript does not support to query for interfaces during runtime.
|
|
189
|
+
// However, we can't throw here as the reflector will always call this method
|
|
190
|
+
// when asked for a lifecycle interface as this is what we check in Dart.
|
|
191
|
+
ReflectionCapabilities.prototype.interfaces = function (type) { return []; };
|
|
192
|
+
ReflectionCapabilities.prototype.hasLifecycleHook = function (type, lcInterface, lcProperty) {
|
|
193
|
+
if (!(type instanceof lang_1.Type))
|
|
194
|
+
return false;
|
|
195
|
+
var proto = type.prototype;
|
|
196
|
+
return !!proto[lcProperty];
|
|
190
197
|
};
|
|
191
198
|
ReflectionCapabilities.prototype.getter = function (name) { return new Function('o', 'return o.' + name + ';'); };
|
|
192
199
|
ReflectionCapabilities.prototype.setter = function (name) {
|
|
@@ -197,7 +204,14 @@ var ReflectionCapabilities = (function () {
|
|
|
197
204
|
return new Function('o', 'args', functionBody);
|
|
198
205
|
};
|
|
199
206
|
// There is not a concept of import uri in Js, but this is useful in developing Dart applications.
|
|
200
|
-
ReflectionCapabilities.prototype.importUri = function (type) {
|
|
207
|
+
ReflectionCapabilities.prototype.importUri = function (type) {
|
|
208
|
+
// StaticSymbol
|
|
209
|
+
if (typeof type === 'object' && type['filePath']) {
|
|
210
|
+
return type['filePath'];
|
|
211
|
+
}
|
|
212
|
+
// Runtime type
|
|
213
|
+
return "./" + lang_1.stringify(type);
|
|
214
|
+
};
|
|
201
215
|
return ReflectionCapabilities;
|
|
202
216
|
}());
|
|
203
217
|
exports.ReflectionCapabilities = ReflectionCapabilities;
|