MatchSingleton

class MatchSingleton(var pyObject: PyObject) : Python.AST.BasePattern
ast.MatchSingleton = class MatchSingleton(pattern)
| MatchSingleton(constant value)

Constructors

Link copied to clipboard
constructor(pyObject: PyObject)

Properties

Link copied to clipboard
open val col_offset: Int

Maps to the col_offset filed from Python's ast.

Link copied to clipboard

Maps to the end_col_offset filed from Python's ast.

Link copied to clipboard
open val end_lineno: Int

Maps to the end_lineno filed from Python's ast.

Link copied to clipboard
open val lineno: Int

Maps to the lineno filed from Python's ast.

Link copied to clipboard
var pyObject: PyObject
Link copied to clipboard
val value: Any?

value is not optional. We have to make it nullable though because the value will be set to null if the case matches on None. This is known behavior of jep (similar to literals/constants).