@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.05 kB
TypeScript
import { ProgramStructureTreeType } from '../types/model/ProgramStructureTree';
import { SourceNodeIdentifier_string, SourceNodeIdentifierPart_string } from '../types/SourceNodeIdentifiers';
export declare class SourceNodeIdentifierHelper {
static split(identifier: SourceNodeIdentifier_string): SourceNodeIdentifierPart_string[];
static join(identifierParts: SourceNodeIdentifierPart_string[]): SourceNodeIdentifier_string;
/**
* Validates if the given identifier part is a valid source node identifier part.
* Important! Does not validate node internal source node identifiers.
*
* @returns wether the identifier part is valid or not
*/
static validateSourceNodeIdentifierPart(identifierPart: SourceNodeIdentifierPart_string): boolean;
static parseSourceNodeIdentifierPart(identifierPart: SourceNodeIdentifierPart_string): {
type: ProgramStructureTreeType;
name: string;
} | null;
static functionNameToSourceNodeIdentifier(functionName: string): SourceNodeIdentifier_string;
}