Coco Abstract Syntax Tree

Decl
Properties:
  • kind (String) – The kind of node.
  • fully_qualified_name (String) –
  • metadata (Metadata) –
  • name (String) –
  • position (SourceRange) –
  • decls (Array[Decl]) –
Metadata
Properties:cognitive_complexity (Integer) –
Package
Properties:
  • name (String) – The name of the package.
  • modules (Array[Decl]) –
  • root_directory (String) –
Root
Properties:packages (Array[Package]) –
SourceLocation

A single location

Properties:
  • column (Integer) – The 1-based column
  • file (String) – The file that contains the error, relative to the Coco.toml file
  • line (Integer) – The 1-based line
SourceRange

A range in a document. The range is half-open: it includes the start but excludes the end.

Properties: