@eagleoutice/flowr - v2.15.8
    Preparing search index...

    Read-only interface to the FlowrAnalyzerEnvironmentContext.

    interface ReadOnlyFlowrAnalyzerEnvironmentContext {
        builtInDefinitionsOf(name: Identifier): readonly IdentifierDefinition[];
        get builtInEnvironment(): {
            builtInEnv?: true;
            id: number;
            memory: ReadonlyMap;
            parent: { readonly id: number; readonly parent: ...; readonly memory: ReadonlyMap<BrandedIdentifier, readonly ({ readonly type: InGraphReferenceType; readonly definedAt: NodeId; ... 6 more ...; readonly cds?: readonly { ...; }[] | undefined; } | { ...; } | { ...; })[]>; readonly builtInEnv?: true | undefined; };
        };
        builtInFunctionOf(
            name: Identifier,
        ): BuiltInIdentifierDefinition | undefined;
        cleanEnv: () => REnvironmentInformation;
        get emptyBuiltInEnvironment(): {
            builtInEnv?: true;
            id: number;
            memory: ReadonlyMap;
            parent: { readonly id: number; readonly parent: ...; readonly memory: ReadonlyMap<BrandedIdentifier, readonly ({ readonly type: InGraphReferenceType; readonly definedAt: NodeId; ... 6 more ...; readonly cds?: readonly { ...; }[] | undefined; } | { ...; } | { ...; })[]>; readonly builtInEnv?: true | undefined; };
        };
        getCleanEnvFingerprint(): string;
        knowsPackage(pkg: string): boolean;
        makeCleanEnv(): REnvironmentInformation;
        makeCleanEnvWithEmptyBuiltIns(): REnvironmentInformation;
        makeEmptyEnv(): REnvironmentInformation;
        statedDefinitionsOf(
            name: Identifier,
        ): readonly IdentifierDefinition[] | undefined;
        statedFor(pkg: string): BuiltInMemory | undefined;
    }

    Implemented by

    Index
    cleanEnv: () => REnvironmentInformation

    makeCleanEnv as a stable thunk. Hand this to something that may or may not need a clean environment (see DataflowGraph#addVertex), so offering one costs nothing when it goes unused.

    • get builtInEnvironment(): {
          builtInEnv?: true;
          id: number;
          memory: ReadonlyMap;
          parent: { readonly id: number; readonly parent: ...; readonly memory: ReadonlyMap<BrandedIdentifier, readonly ({ readonly type: InGraphReferenceType; readonly definedAt: NodeId; ... 6 more ...; readonly cds?: 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<BrandedIdentifier, readonly ({ readonly type: InGraphReferenceType; readonly definedAt: NodeId; ... 6 more ...; readonly cds?: readonly { ...; }[] | undefined; } | { ...; } | { ...; })[]>; readonly builtInEnv?: true | undefined; };
      }

      • Optional ReadonlybuiltInEnv?: true

        Built-in environment that must not change; only for the top-most envs.

      • Readonlyid: number

        Unique internally generated identifier, used for debugging not comparison

      • 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<BrandedIdentifier, readonly ({ readonly type: InGraphReferenceType; readonly definedAt: NodeId; ... 6 more ...; readonly cds?: 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<BrandedIdentifier, readonly ({ readonly type: InGraphReferenceType; readonly definedAt: NodeId; ... 6 more ...; readonly cds?: 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<BrandedIdentifier, readonly ({ readonly type: InGraphReferenceType; readonly definedAt: NodeId; ... 6 more ...; readonly cds?: readonly { ...; }[] | undefined; } | { ...; } | { ...; })[]>; readonly builtInEnv?: true | undefined; };
      }

      • Optional ReadonlybuiltInEnv?: true

        Built-in environment that must not change; only for the top-most envs.

      • Readonlyid: number

        Unique internally generated identifier, used for debugging not comparison

      • 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<BrandedIdentifier, readonly ({ readonly type: InGraphReferenceType; readonly definedAt: NodeId; ... 6 more ...; readonly cds?: readonly { ...; }[] | undefined; } | { ...; } | { ...; })[]>; readonly builtInEnv?: true | undefined; }

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

    • Whether flowR carries definitions of its own for package pkg, i.e. whether it knows what attaching that package brings even when no signature database resolves it. Built once and kept, as the built-in environment does not change during an analysis.

      Parameters

      • pkg: string

      Returns boolean