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

19 lines (18 loc) 1.08 kB
import { BaseModel } from './BaseModel'; import { ModelMap } from './ModelMap'; import { ProgramStructureTreeType, IdentifierType, NodeLocation, NodeLocationRange, IProgramStructureTree, SourceNodeIdentifier_string } from '../types'; export declare class ProgramStructureTree extends BaseModel { id: number; type: ProgramStructureTreeType; identifierType: IdentifierType; identifier: SourceNodeIdentifier_string; beginLoc: NodeLocation; endLoc: NodeLocation; children: ModelMap<string, ProgramStructureTree>; constructor(id: number, type: ProgramStructureTreeType, identifierType: IdentifierType, identifier: SourceNodeIdentifier_string, beginLoc: NodeLocation, endLoc: NodeLocation); toJSON(): IProgramStructureTree; static fromJSON(json: string | IProgramStructureTree): ProgramStructureTree; containsLocation(loc: NodeLocation): boolean; identifierBySourceLocation(targetLoc: NodeLocation): SourceNodeIdentifier_string; sourceLocationOfIdentifier(identifier: SourceNodeIdentifier_string): NodeLocationRange | undefined; }