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

io.joern.rubysrc2cpg.parser.InterpolationHandling.scala Maven / Gradle / Ivy

There is a newer version: 4.0.78
Show newest version
package io.joern.rubysrc2cpg.parser

import scala.collection.mutable

trait InterpolationHandling { this: RubyLexerBase =>

  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