summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/ast/parser/BracePatch.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2009-06-24 15:37:16 +0000
committerMartin Odersky <odersky@gmail.com>2009-06-24 15:37:16 +0000
commit410efa8317f2a244f45f33b2ae7c17be5472f5d5 (patch)
tree0cddab6b90904718b8162797656ab7076bb920ce /src/compiler/scala/tools/nsc/ast/parser/BracePatch.scala
parent1c9870541fb22ac032edaa0be0103cc1aa2c99b4 (diff)
downloadscala-410efa8317f2a244f45f33b2ae7c17be5472f5d5.tar.gz
scala-410efa8317f2a244f45f33b2ae7c17be5472f5d5.tar.bz2
scala-410efa8317f2a244f45f33b2ae7c17be5472f5d5.zip
fixed variance bug; added smart brace insertion...
fixed variance bug; added smart brace insertion to parser. moved interactive compiler interface along.
Diffstat (limited to 'src/compiler/scala/tools/nsc/ast/parser/BracePatch.scala')
-rw-r--r--src/compiler/scala/tools/nsc/ast/parser/BracePatch.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/parser/BracePatch.scala b/src/compiler/scala/tools/nsc/ast/parser/BracePatch.scala
new file mode 100644
index 0000000000..00d2e1a2ba
--- /dev/null
+++ b/src/compiler/scala/tools/nsc/ast/parser/BracePatch.scala
@@ -0,0 +1,11 @@
+/* NSC -- new Scala compiler
+ * Copyright 2005-2009 LAMP/EPFL
+ * @author Martin Odersky
+ */
+package scala.tools.nsc.ast.parser
+
+/** A patch that postulates that a brace needs to be inserted or deleted at a given position.
+ * @param off The offset where the brace needs to be inserted or deleted
+ * @param inserted If true, brace needs to be inserted, otherwise brace needs to be deleted.
+ */
+case class BracePatch(off: Int, inserted: Boolean)