diff options
Diffstat (limited to 'src/dotty/tools/dotc/util')
-rw-r--r-- | src/dotty/tools/dotc/util/common.scala | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/util/common.scala b/src/dotty/tools/dotc/util/common.scala new file mode 100644 index 000000000..5f133b079 --- /dev/null +++ b/src/dotty/tools/dotc/util/common.scala @@ -0,0 +1,16 @@ +package dotty.tools.dotc +package util + +import core.Names.Name +import core.Types.WildcardType + +/** Common values hoisted out for performance */ +object common { + + val emptyDNF = (Nil, Set[Name]()) :: Nil + + val alwaysTrue = Function.const(true) _ + val alwaysZero = Function.const(0) _ + val alwaysWildcardType = Function.const(WildcardType) _ + +}
\ No newline at end of file |