summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/interpreter/Parsed.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/scala/tools/nsc/interpreter/Parsed.scala')
-rw-r--r--src/compiler/scala/tools/nsc/interpreter/Parsed.scala14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/compiler/scala/tools/nsc/interpreter/Parsed.scala b/src/compiler/scala/tools/nsc/interpreter/Parsed.scala
index 3d72e4b2a4..24c01e9ae6 100644
--- a/src/compiler/scala/tools/nsc/interpreter/Parsed.scala
+++ b/src/compiler/scala/tools/nsc/interpreter/Parsed.scala
@@ -17,7 +17,7 @@ class Parsed private (
) extends Delimited {
def isEmpty = args.isEmpty
def isUnqualified = args.size == 1
- // def isQualified = args.size > 1
+ def isQualified = args.size > 1
def isAtStart = cursor <= 0
private var _verbosity = 0
@@ -31,7 +31,7 @@ class Parsed private (
def bufferTail = new Parsed(buffer drop headLength, cursor - headLength, delimited) withVerbosity verbosity
def prev = new Parsed(buffer, cursor - 1, delimited) withVerbosity verbosity
- // def next = new Parsed(buffer, cursor + 1, delimited) withVerbosity verbosity
+ def next = new Parsed(buffer, cursor + 1, delimited) withVerbosity verbosity
def currentChar = buffer(cursor)
def currentArg = args.last
def position =
@@ -41,8 +41,8 @@ class Parsed private (
def isFirstDelimiter = !isEmpty && isDelimiterChar(buffer.head)
def isLastDelimiter = !isEmpty && isDelimiterChar(buffer.last)
- // def firstIfDelimiter = if (isFirstDelimiter) buffer.head.toString else ""
- // def lastIfDelimiter = if (isLastDelimiter) buffer.last.toString else ""
+ def firstIfDelimiter = if (isFirstDelimiter) buffer.head.toString else ""
+ def lastIfDelimiter = if (isLastDelimiter) buffer.last.toString else ""
def isQuoted = false // TODO
def isEscaped = !isAtStart && isEscapeChar(currentChar) && !isEscapeChar(prev.currentChar)
@@ -56,13 +56,13 @@ object Parsed {
private def onull(s: String) = if (s == null) "" else s
- // def apply(s: String): Parsed = apply(onull(s), onull(s).length)
+ def apply(s: String): Parsed = apply(onull(s), onull(s).length)
def apply(s: String, cursor: Int): Parsed = apply(onull(s), cursor, DefaultDelimiters)
def apply(s: String, cursor: Int, delimited: Char => Boolean): Parsed =
new Parsed(onull(s), cursor, delimited)
- // def dotted(s: String): Parsed = dotted(onull(s), onull(s).length)
+ def dotted(s: String): Parsed = dotted(onull(s), onull(s).length)
def dotted(s: String, cursor: Int): Parsed = new Parsed(onull(s), cursor, _ == '.')
- // def undelimited(s: String, cursor: Int): Parsed = new Parsed(onull(s), cursor, _ => false)
+ def undelimited(s: String, cursor: Int): Parsed = new Parsed(onull(s), cursor, _ => false)
}