fix(dart/transform): Don't set ReflectionCapabilities over an async gap

Update the transformer's `TemplateCompiler` phase to avoid setting
`reflector.reflectionCapabilities`, allowing asynchronous
operations, and restoring the original value, which allows
`reflector.reflectionCapabilities` to get into a bad state.
This commit is contained in:
Tim Blasi
2015-06-04 18:14:46 -07:00
parent f3dd9b5b31
commit d1b35f9174
4 changed files with 69 additions and 55 deletions

View File

@ -103,7 +103,6 @@ void allTests() {
output = await process(new AssetId('a', inputPath));
_formatThenExpectEquals(output, expected);
});
});
}