forked from M-Labs/artiq
1
0
Fork 0

compiler/inline: update reserved names

This commit is contained in:
Sebastien Bourdeauducq 2014-08-18 21:34:13 +08:00
parent e1cdec8c07
commit 86577ff64f
1 changed files with 5 additions and 1 deletions

View File

@ -27,6 +27,10 @@ class _ReferenceManager:
for kg in core_language.kernel_globals:
self.use_count[kg] = 1
self.use_count["range"] = 1
self.use_count["int"] = 1
self.use_count["round"] = 1
self.use_count["int64"] = 1
self.use_count["round64"] = 1
self.use_count["Fraction"] = 1
self.use_count["Quantity"] = 1
self.use_count["s_unit"] = 1
@ -102,7 +106,7 @@ class _ReferenceManager:
_embeddable_calls = {
core_language.delay, core_language.at, core_language.now,
core_language.syscall,
range,
range, int, round, core_language.int64, core_language.round64,
Fraction, units.Quantity
}