refactor(i18n): extract Extractor from extract_i18n (#12417)

I put an extractor into your extract so you can extract while you
extract.

This allows integrators to call Extractor as a library. Also refactors
Extractor a bit so that callers need fewer arguments or arguments that
are at the right semantic level.

The refactoring causes no function change.
This commit is contained in:
Martin Probst
2016-10-21 15:17:57 -07:00
committed by Igor Minar
parent 57051f01ce
commit bfc97ff2cd
3 changed files with 174 additions and 141 deletions

View File

@ -7,6 +7,7 @@
*/
export {CodeGenerator} from './src/codegen';
export {Extractor} from './src/extractor';
export {NodeReflectorHostContext, ReflectorHost, ReflectorHostContext} from './src/reflector_host';
export {StaticReflector, StaticReflectorHost, StaticSymbol} from './src/static_reflector';