Skip to main content

Module node

Module node 

Source
Expand description

Code node representation.

A CodeNode is our abstraction over raw AST nodes. It captures the semantically meaningful parts of code: what it is, where it lives, and enough metadata to be useful for graph construction.

Structs§

CodeNode
A code entity extracted from source.

Enums§

NodeKind
The kind of code entity this node represents.
TypeRelationKind
A type relationship stored on a node until the graph builder resolves it.
Visibility
Visibility of a code entity.

Constants§

EXTENDS_REF_PREFIX
Prefix on CodeNode::references for a superclass name.
IMPLEMENTS_REF_PREFIX
Prefix on CodeNode::references for an implemented interface or trait.

Functions§

clean_type_name
Strips pointers, references, and generic arguments from a type name.
type_relation_ref
Splits an extends: / implements: reference into its kind and type name.