case class Source(path: PathLike, code: SourceData, lineOffset: Int, columnOffset: Int, outer: Option[Source], startLine: Option[Int] = None, startColumn: Option[Int] = None) extends Product with Serializable
A block of source code loaded from a file
- path
source file path
- code
source file contents or some subpart of
- lineOffset
line in path where source code is found
- columnOffset
column of lineOffset where source code is found
- outer
outer source container that this was extracted from
- startLine
used by Outline parser for hack
- startColumn
used by Outline parser for hack
- Alphabetic
- By Inheritance
- Source
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Source(path: PathLike, code: SourceData, lineOffset: Int, columnOffset: Int, outer: Option[Source], startLine: Option[Int] = None, startColumn: Option[Int] = None)
- path
source file path
- code
source file contents or some subpart of
- lineOffset
line in path where source code is found
- columnOffset
column of lineOffset where source code is found
- outer
outer source container that this was extracted from
- startLine
used by Outline parser for hack
- startColumn
used by Outline parser for hack
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def asInsensitiveStream: CaseInsensitiveInputStream
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asStream: CharStream
- def asUTF8: Array[Byte]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val code: SourceData
- val columnOffset: Int
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def extractSource(context: ParserRuleContext): Source
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getLocation(context: ParserRuleContext): PathLocation
Find a location for a rule, adapts based on source offsets to give absolute position in file
- val hash: Int
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val lineOffset: Int
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val outer: Option[Source]
- val path: PathLike
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def stampLocation(positionable: Positionable, context: ParserRuleContext): Unit
- val startColumn: Option[Int]
- val startLine: Option[Int]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()