@oaklean/profiler-core
Version:
Part of the @oaklean suite. It provides all basic functions to work with the `.oak` file format. It allows parsing the `.oak` file format as well as tools for analyzing the measurement values. It also provides all necessary capabilities required for prec
27 lines (26 loc) • 1.6 kB
TypeScript
/// <reference types="node" />
import { PathIndex } from './PathIndex';
import { GlobalIndex } from './GlobalIndex';
import { BaseModel } from '../BaseModel';
import { ModelMap } from '../ModelMap';
import { GlobalIdentifier } from '../../system/GlobalIdentifier';
import { SourceNodeIndexID, ISourceNodeIndex, SourceNodeIndexType, LangInternalSourceNodeIdentifier_string, SourceNodeIdentifier_string } from '../../types';
export declare class SourceNodeIndex<T extends SourceNodeIndexType> extends BaseModel {
identifier: SourceNodeIdentifier_string | LangInternalSourceNodeIdentifier_string;
private _id;
children?: ModelMap<string, SourceNodeIndex<SourceNodeIndexType>>;
type: T;
pathIndex: PathIndex;
constructor(identifier: SourceNodeIdentifier_string | LangInternalSourceNodeIdentifier_string, pathIndex: PathIndex, type: T, id?: SourceNodeIndexID<T>);
private _notPresentInOriginalSourceCode?;
get presentInOriginalSourceCode(): boolean;
set presentInOriginalSourceCode(v: boolean);
insertToOtherIndex(globalIndex: GlobalIndex): SourceNodeIndex<SourceNodeIndexType.SourceNode>;
toBuffer(): Buffer;
isSourceNode(): this is SourceNodeIndex<SourceNodeIndexType.SourceNode>;
selfAssignId: T extends SourceNodeIndexType.SourceNode ? () => SourceNodeIndexID<T> : never;
get id(): SourceNodeIndexID<T>;
toJSON(): ISourceNodeIndex<T>;
static fromJSON<T extends SourceNodeIndexType>(json: string | ISourceNodeIndex<T>, sourceNodeParts: string[], pathIndex: PathIndex, type: T): SourceNodeIndex<T>;
globalIdentifier(): GlobalIdentifier;
}