UNPKG

@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

28 lines (27 loc) 1.72 kB
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, SourceNodeIdentifierPart_string } from '../../types'; export declare class SourceNodeIndex<T extends SourceNodeIndexType> extends BaseModel { identifier: SourceNodeIdentifier_string | LangInternalSourceNodeIdentifier_string; private _id; children?: ModelMap<SourceNodeIdentifierPart_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); private _functionName?; get functionName(): string; 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: SourceNodeIdentifierPart_string[], pathIndex: PathIndex, type: T): SourceNodeIndex<T>; globalIdentifier(): GlobalIdentifier; }