Struct stack_graphs::graph::Symbol [−][src]
#[repr(C)]pub struct Symbol { /* fields omitted */ }
Expand description
A name that we are trying to resolve using stack graphs.
This typically represents a portion of an identifier as it appears in the source language. It
can also represent some other “operation” that can occur in source code, and which needs to be
modeled in a stack graph — for instance, many languages will use a “fake” symbol named .
to
represent member access.
We deduplicate Symbol
instances in a StackGraph
— that is, we ensure that there are never
multiple Symbol
instances with the same content. That means that you can compare handles
to symbols using simple equality, without having to dereference into the StackGraph
arena.