All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy