Package org.sonar.python.lexer
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanconsume(org.sonar.sslr.channel.CodeReader code, com.sonar.sslr.impl.Lexer output)
-
Constructor Details
-
FStringAndTStringChannel
-
-
Method Details
-
consume
public boolean consume(org.sonar.sslr.channel.CodeReader code, com.sonar.sslr.impl.Lexer output) - Specified by:
consumein classorg.sonar.sslr.channel.Channel<com.sonar.sslr.impl.Lexer>
-