PythonLanguageFrontend
class PythonLanguageFrontend(language: Language<PythonLanguageFrontend>, ctx: TranslationContext) : LanguageFrontend<Python.AST.AST, Python.AST.AST?>
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
This functions extracts the source code from the input file given a location. This is a bit tricky in Python, as indents are part of the syntax. We also don't want to include leading whitespaces/tabs in case of extracting a nested code fragment. Thus, we use the following approximation to retrieve the fragment's source code:
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun registerPredicateListener(predicate: BiPredicate<Any, Node>, biConsumer: BiConsumer<Any, Node>)
Link copied to clipboard