Yume
Public Attributes | List of all members
yume::ast::Attachment Struct Reference

Represents the relationship between multiple AST nodes. More...

#include <ast.hpp>

Collaboration diagram for yume::ast::Attachment:
Collaboration graph
[legend]

Public Attributes

llvm::SmallPtrSet< AST *, 2 > observers {}
 Observers are the "children" and should have their type updated when this node's type changes. More...
 
llvm::SmallPtrSet< AST *, 2 > depends {}
 Depends are the "parents" and should be verified for type compatibility when this node's type changes. More...
 

Detailed Description

Represents the relationship between multiple AST nodes.

AST nodes can be attached to propagate type information between them. TODO: describe type propagation more

Definition at line 209 of file ast.hpp.

Member Data Documentation

◆ depends

llvm::SmallPtrSet<AST*, 2> yume::ast::Attachment::depends {}

Depends are the "parents" and should be verified for type compatibility when this node's type changes.

Definition at line 213 of file ast.hpp.

◆ observers

llvm::SmallPtrSet<AST*, 2> yume::ast::Attachment::observers {}

Observers are the "children" and should have their type updated when this node's type changes.

Definition at line 211 of file ast.hpp.


The documentation for this struct was generated from the following file: