From 8a61ff432543a29234193cd1f7c14abd3f3d31a0 Mon Sep 17 00:00:00 2001 From: Felix Mulder Date: Wed, 2 Nov 2016 11:08:28 +0100 Subject: Move compiler and compiler tests to compiler dir --- compiler/src/dotty/tools/dotc/util/common.scala | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 compiler/src/dotty/tools/dotc/util/common.scala (limited to 'compiler/src/dotty/tools/dotc/util/common.scala') diff --git a/compiler/src/dotty/tools/dotc/util/common.scala b/compiler/src/dotty/tools/dotc/util/common.scala new file mode 100644 index 000000000..d9798aec5 --- /dev/null +++ b/compiler/src/dotty/tools/dotc/util/common.scala @@ -0,0 +1,14 @@ +package dotty.tools.dotc +package util + +import core.Names.Name +import core.Types.WildcardType + +/** Common values hoisted out for performance */ +object common { + + val alwaysTrue = Function.const(true) _ + val alwaysZero = Function.const(0) _ + val alwaysWildcardType = Function.const(WildcardType) _ + +} -- cgit v1.2.3