Parse: Test that we only parse function bodies in primary files

I added this optimization a while ago but didn't add a test for it.
This commit is contained in:
Slava Pestov
2018-03-06 19:35:47 -08:00
parent d62e5163da
commit 6065168928
3 changed files with 26 additions and 3 deletions

View File

@@ -132,6 +132,9 @@ FRONTEND_STATISTIC(AST, NumPrecedenceGroups)
/// Number of conformances used by code processed by this frontend job.
FRONTEND_STATISTIC(AST, NumUsedConformances)
/// Number of full function bodies parsed.
FRONTEND_STATISTIC(Parse, NumFunctionsParsed)
/// Number of conformances that were deserialized by this frontend job.
FRONTEND_STATISTIC(Sema, NumConformancesDeserialized)