diff options
Diffstat (limited to 'src/compiler/scala/tools/nsc/matching/CodeFactory.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/matching/CodeFactory.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/matching/CodeFactory.scala b/src/compiler/scala/tools/nsc/matching/CodeFactory.scala index 56278738b4..afae88ee56 100644 --- a/src/compiler/scala/tools/nsc/matching/CodeFactory.scala +++ b/src/compiler/scala/tools/nsc/matching/CodeFactory.scala @@ -223,5 +223,11 @@ trait CodeFactory requires transform.ExplicitOuter { typed { Apply(Select(tree, nme.ne), List(Literal(Constant(null)))) } + + def IsNull(tree:Tree) = + typed { + Apply(Select(tree, nme.eq), List(Literal(Constant(null)))) + } + } |