summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/ast/parser/BracePair.scala
blob: d5fae97eb861e8f887f5e79316b547892ba3a2be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* NSC -- new Scala compiler
 * Copyright 2005-2013 LAMP/EPFL
 * @author  Martin Odersky
 */
package scala.tools.nsc
package ast.parser

/** A descriptor for a matching pair of braces.
 *  @param loff    The offset of the opening brace (-1 means missing)
 *  @param lindent The indentation depth of the line of the opening brace (-1 means missing)
 *  @param roff    The offset of the closing brace (-1 means missing)
 *  @param rindent The indentation depth of the line of the closing brace (-1 means missing)
 *  @param nested The brace pairs nested in this one
 */
case class BracePair(loff: Int, lindent: Int, roff: Int, rindent: Int, nested: List[BracePair])