io.joern.rubysrc2cpg.deprecated.parser.InterpolationHandling.scala Maven / Gradle / Ivy
package io.joern.rubysrc2cpg.deprecated.parser
import scala.collection.mutable
trait InterpolationHandling { this: DeprecatedRubyLexerBase =>
private val interpolationEndTokenType = mutable.Stack[Int]()
def pushInterpolationEndTokenType(endTokenType: Int): Unit = {
interpolationEndTokenType.push(endTokenType)
}
def popInterpolationEndTokenType(): Int = {
interpolationEndTokenType.pop()
}
def isEndOfInterpolation: Boolean = {
interpolationEndTokenType.nonEmpty
}
}