This context is responsible for providing the built-in environment. It creates the built-in environment based on the configuration provided in the FlowrAnalyzerContext.

Implements

Constructors

Properties

name: "flowr-analyzer-environment-context" = 'flowr-analyzer-environment-context'

Accessors

  • get builtInEnvironment(): {
        builtInEnv?: true;
        id: number;
        memory: ReadonlyMap;
        parent: { readonly id: number; readonly parent: ...; readonly memory: ReadonlyMap<Identifier, readonly ({ readonly type: InGraphReferenceType; readonly definedAt: NodeId; ... 4 more ...; readonly controlDependencies: readonly { ...; }[] | undefined; } | { ...; } | { ...; })[]>; readonly builtInEnv?: true | undefined; };
    }

    Get the built-in environment used during analysis.

    Returns {
        builtInEnv?: true;
        id: number;
        memory: ReadonlyMap;
        parent: { readonly id: number; readonly parent: ...; readonly memory: ReadonlyMap<Identifier, readonly ({ readonly type: InGraphReferenceType; readonly definedAt: NodeId; ... 4 more ...; readonly controlDependencies: readonly { ...; }[] | undefined; } | { ...; } | { ...; })[]>; readonly builtInEnv?: true | undefined; };
    }

    • Optional ReadonlybuiltInEnv?: true

      Is this a built-in environment that is not allowed to change? Please use this carefully and only for the top-most envs!

    • Readonlyid: number

      Unique and internally generated identifier -- will not be used for comparison but helps with debugging for tracking identities

    • Readonlymemory: ReadonlyMap

      Maps to exactly one definition of an identifier if the source is known, otherwise to a list of all possible definitions

    • Readonlyparent: { readonly id: number; readonly parent: ...; readonly memory: ReadonlyMap<Identifier, readonly ({ readonly type: InGraphReferenceType; readonly definedAt: NodeId; ... 4 more ...; readonly controlDependencies: readonly { ...; }[] | undefined; } | { ...; } | { ...; })[]>; readonly builtInEnv?: true | undefined; }

      Lexical parent of the environment, if any (can be manipulated by R code)

  • get emptyBuiltInEnvironment(): {
        builtInEnv?: true;
        id: number;
        memory: ReadonlyMap;
        parent: { readonly id: number; readonly parent: ...; readonly memory: ReadonlyMap<Identifier, readonly ({ readonly type: InGraphReferenceType; readonly definedAt: NodeId; ... 4 more ...; readonly controlDependencies: readonly { ...; }[] | undefined; } | { ...; } | { ...; })[]>; readonly builtInEnv?: true | undefined; };
    }

    Get the empty built-in environment used during analysis. The empty built-in environment only contains primitive definitions.

    Returns {
        builtInEnv?: true;
        id: number;
        memory: ReadonlyMap;
        parent: { readonly id: number; readonly parent: ...; readonly memory: ReadonlyMap<Identifier, readonly ({ readonly type: InGraphReferenceType; readonly definedAt: NodeId; ... 4 more ...; readonly controlDependencies: readonly { ...; }[] | undefined; } | { ...; } | { ...; })[]>; readonly builtInEnv?: true | undefined; };
    }

    • Optional ReadonlybuiltInEnv?: true

      Is this a built-in environment that is not allowed to change? Please use this carefully and only for the top-most envs!

    • Readonlyid: number

      Unique and internally generated identifier -- will not be used for comparison but helps with debugging for tracking identities

    • Readonlymemory: ReadonlyMap

      Maps to exactly one definition of an identifier if the source is known, otherwise to a list of all possible definitions

    • Readonlyparent: { readonly id: number; readonly parent: ...; readonly memory: ReadonlyMap<Identifier, readonly ({ readonly type: InGraphReferenceType; readonly definedAt: NodeId; ... 4 more ...; readonly controlDependencies: readonly { ...; }[] | undefined; } | { ...; } | { ...; })[]>; readonly builtInEnv?: true | undefined; }

      Lexical parent of the environment, if any (can be manipulated by R code)

Methods