@@ -8,24 +8,24 @@ const CSS_EXTENSION = '.css';
88const SHIMMED_STYLESHEET_EXTENSION = '.css.shim.dart' ;
99const NON_SHIMMED_STYLESHEET_EXTENSION = '.css.dart' ;
1010const DEPS_EXTENSION = '.ng_deps.dart' ;
11- const DEPS_JSON_EXTENSION = '.ng_deps.json' ;
1211const META_EXTENSION = '.ng_meta.json' ;
13- const TEMPLATE_EXTENSION = '.template.dart' ;
1412const REFLECTION_CAPABILITIES_NAME = 'ReflectionCapabilities' ;
1513const REFLECTOR_IMPORT = 'package:angular2/src/core/reflection/reflection.dart' ;
1614const REFLECTOR_PREFIX = '_ngRef' ;
1715const REGISTER_TYPE_METHOD_NAME = 'registerType' ;
1816const REGISTER_GETTERS_METHOD_NAME = 'registerGetters' ;
1917const REGISTER_SETTERS_METHOD_NAME = 'registerSetters' ;
2018const REGISTER_METHODS_METHOD_NAME = 'registerMethods' ;
19+ const SUMMARY_META_EXTENSION = '.ng_summary.json' ;
20+ const TEMPLATE_EXTENSION = '.template.dart' ;
2121
2222/// Note that due to the implementation of `_toExtension` , ordering is
2323/// important. For example, putting '.dart' first in this list will cause
2424/// incorrect behavior.
2525const ALL_EXTENSIONS = const [
2626 DEPS_EXTENSION ,
27- DEPS_JSON_EXTENSION ,
2827 META_EXTENSION ,
28+ SUMMARY_META_EXTENSION ,
2929 TEMPLATE_EXTENSION ,
3030 '.dart'
3131];
@@ -38,10 +38,6 @@ String toMetaExtension(String uri) =>
3838String toDepsExtension (String uri) =>
3939 _toExtension (uri, ALL_EXTENSIONS , DEPS_EXTENSION );
4040
41- /// Returns `uri` with its extension updated to [DEPS_JSON_EXTENSION] .
42- String toJsonExtension (String uri) =>
43- _toExtension (uri, ALL_EXTENSIONS , DEPS_JSON_EXTENSION );
44-
4541/// Returns `uri` with its extension updated to [TEMPLATES_EXTENSION] .
4642String toTemplateExtension (String uri) =>
4743 _toExtension (uri, ALL_EXTENSIONS , TEMPLATE_EXTENSION );
@@ -54,6 +50,10 @@ String toShimmedStylesheetExtension(String uri) =>
5450String toNonShimmedStylesheetExtension (String uri) =>
5551 _toExtension (uri, const [CSS_EXTENSION ], NON_SHIMMED_STYLESHEET_EXTENSION );
5652
53+ /// Returns `uri` with its extension updated to [SUMMARY_META_EXTENSION] .
54+ String toSummaryExtension (String uri) =>
55+ _toExtension (uri, ALL_EXTENSIONS , SUMMARY_META_EXTENSION );
56+
5757/// Returns `uri` with its extension updated to `toExtension` if its
5858/// extension is currently in `fromExtension` .
5959String _toExtension (
0 commit comments