BasePattern

abstract class BasePattern(var pyObject: PyObject) : Python.AST.AST, Python.AST.WithLocation
ast.pattern = class pattern(AST)
| pattern = MatchValue(expr value)
| | MatchSingleton(constant value)
| | MatchSequence(pattern* patterns)
| | MatchMapping(expr* keys, pattern* patterns, identifier? rest)
| | MatchClass(expr cls, pattern* patterns, identifier* kwd_attrs, pattern* kwd_patterns)
| | MatchStar(identifier? name)
| | MatchAs(pattern? pattern, identifier? name)
| | MatchOr(pattern* patterns)

Inheritors

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