Class FStringAndTStringChannel

java.lang.Object
org.sonar.sslr.channel.Channel<com.sonar.sslr.impl.Lexer>
org.sonar.python.lexer.FStringAndTStringChannel

public class FStringAndTStringChannel extends org.sonar.sslr.channel.Channel<com.sonar.sslr.impl.Lexer>
A channel to handle f-strings and t-strings See https://docs.python.org/3.12/reference/lexical_analysis.html#formatted-string-literals See https://docs.python.org/3.14/reference/lexical_analysis.html#template-string-literals
  • Constructor Details

    • FStringAndTStringChannel

      public FStringAndTStringChannel(LexerState lexerState)
  • Method Details

    • consume

      public boolean consume(org.sonar.sslr.channel.CodeReader code, com.sonar.sslr.impl.Lexer output)
      Specified by:
      consume in class org.sonar.sslr.channel.Channel<com.sonar.sslr.impl.Lexer>