Class#
- class scubatrace.Class(node: Node, file: File | BlockStatement)#
Bases:
BlockStatementA class in the source code.
- static create(node: Node, parent: File | BlockStatement)#
Factory function to create a Class instance based on the language of the file.
- property fields: list[Field]#
Fields (attributes or member variables) in the class.
- property name: str#
The name of the class.
- property name_node: Node#
The tree-sitter node representing the name of the class.