Something like a in b <- a. Without any surrounding information, a will produce the identifier reference a. Similarly, b will create a reference.

interface BuiltInIdentifierConstant<T> {
    controlDependencies: undefined | ControlDependency[];
    definedAt: "built-in";
    name: undefined | Identifier;
    nodeId: NodeId;
    type: BuiltInConstant;
    value: T;
}

Type Parameters

  • T = unknown

Hierarchy (view full)

Hierarchy-Diagram

UML class diagram of BuiltInIdentifierConstant

Properties

controlDependencies: undefined | ControlDependency[]

If the reference is only effective, if, for example, an if-then-else condition is true, this references the root of the if. As a hacky intermediate solution (until we have pointer-analysis), an empty array may indicate a maybe which is due to pointer access (e.g., in a[x] <- 3).

definedAt: "built-in"
name: undefined | Identifier

Name the reference is identified by (e.g., the name of the variable), undefined if the reference is "artificial" (e.g., anonymous)

nodeId: NodeId

Node which represents the reference in the AST

Type of the reference to be resolved

value: T