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

66 lines (65 loc) 7.2 kB
export declare const SourceNodeNameRegexString = "[^@:(){}]*"; export declare const SourceNodeNameExpressionRegexString = "(?:[^@:(){}]*|\\((?:literal|expression):[^@:(){}]*\\)|\\(anonymous:[0-9]+\\))"; export declare const RootRegexString = "{(root)}"; export declare const ConstructorDeclarationRegexString = "{constructor:(constructor)}"; export declare const ClassDeclarationRegexString = "{class:([^@:(){}]*)}"; export declare const MethodDefinitionRegexString = "{method(?:@static)?(?:@get|@set)?:((?:[^@:(){}]*|\\((?:literal|expression):[^@:(){}]*\\)|\\(anonymous:[0-9]+\\))(?::[0-9]+)?)}"; export declare const GetAccessorDeclarationRegexString = "{get(?:@static)?:((?:[^@:(){}]*|\\((?:literal|expression):[^@:(){}]*\\)|\\(anonymous:[0-9]+\\))(?::[0-9]+)?)}"; export declare const SetAccessorDeclarationRegexString = "{set(?:@static)?:((?:[^@:(){}]*|\\((?:literal|expression):[^@:(){}]*\\)|\\(anonymous:[0-9]+\\))(?::[0-9]+)?)}"; export declare const FunctionDeclarationRegexString = "{function:((?:[^@:(){}]*|\\((?:literal|expression):[^@:(){}]*\\)|\\(anonymous:[0-9]+\\))(?::[0-9]+)?)}"; export declare const FunctionExpressionRegexString = "{functionExpression(?:@static)?:((?:[^@:(){}]*|\\((?:literal|expression):[^@:(){}]*\\)|\\(anonymous:[0-9]+\\))(?::[0-9]+)?)}"; export declare const ClassExpressionRegexString = "{classExpression(?:@static)?:((?:[^@:(){}]*|\\((?:literal|expression):[^@:(){}]*\\)|\\(anonymous:[0-9]+\\))(?::[0-9]+)?)}"; export declare const ClassStaticBlockDeclarationRegexString = "{(static:[0-9]+)}"; export declare const ExpressionHashRegexString = "[A-Za-z0-9]+"; export declare const ObjectLiteralExpressionRegexString = "{scope:\\(obj(?:@static)?:((?:[^@:(){}]*|\\((?:literal|expression):[^@:(){}]*\\)|\\(anonymous:[0-9]+\\)))\\)}"; export declare const ModuleDeclarationRegexString = "{scope:\\(namespace:((?:[^@:(){}]*|\\((?:literal|expression):[^@:(){}]*\\)|\\(anonymous:[0-9]+\\))(?:.(?:[^@:(){}]*|\\((?:literal|expression):[^@:(){}]*\\)|\\(anonymous:[0-9]+\\)))*):[0-9]+\\)}"; export declare const IfStatementRegexString = "{scope:(\\(if:[0-9]+\\))}"; export declare const IfThenStatementRegexString = "{scope:(\\(then\\))}"; export declare const IfElseStatementRegexString = "{scope:(\\(else\\))}"; export declare const ForStatementRegexString = "{scope:(\\(for:[0-9]+\\))}"; export declare const WhileStatementRegexString = "{scope:(\\(while:[0-9]+\\))}"; export declare const TryStatementRegexString = "{scope:(\\(try:[0-9]+\\))}"; export declare const TryBlockStatementRegexString = "{scope:(\\(try\\))}"; export declare const CatchClauseStatementRegexString = "{scope:(\\(catch\\))}"; export declare const FinallyBlockStatementRegexString = "{scope:(\\(finally\\))}"; export declare const BlockStatementRegexString = "{scope:(\\(block:[0-9]+\\))}"; export declare const SwitchStatementRegexString = "{scope:(\\(switch:[0-9]+\\))}"; export declare const SwitchCaseClauseRegexString = "{scope:(\\(case:(?:[A-Za-z0-9]+|default)(?::[0-9]+)?\\))}"; export declare const ScopeRegexString = "(?:{scope:\\(obj(?:@static)?:((?:[^@:(){}]*|\\((?:literal|expression):[^@:(){}]*\\)|\\(anonymous:[0-9]+\\)))\\)}|{scope:\\(namespace:((?:[^@:(){}]*|\\((?:literal|expression):[^@:(){}]*\\)|\\(anonymous:[0-9]+\\))(?:.(?:[^@:(){}]*|\\((?:literal|expression):[^@:(){}]*\\)|\\(anonymous:[0-9]+\\)))*):[0-9]+\\)}|{scope:(\\(if:[0-9]+\\))}|{scope:(\\(then\\))}|{scope:(\\(else\\))}|{scope:(\\(for:[0-9]+\\))}|{scope:(\\(while:[0-9]+\\))}|{scope:(\\(switch:[0-9]+\\))}|{scope:(\\(case:(?:[A-Za-z0-9]+|default)(?::[0-9]+)?\\))}|{scope:(\\(try:[0-9]+\\))}|{scope:(\\(try\\))}|{scope:(\\(catch\\))}|{scope:(\\(finally\\))}|{scope:(\\(block:[0-9]+\\))})"; export declare const LangInternalSourceNodeRegExpRegexString = "RegExp: .*"; export declare const LangInternalSourceNodeNameRegexString = "[^{}]+"; export declare const LangInternalSourceNodeIdentifierRegexString: string; export declare const SourceNodeIdentifierPathRegexString = "[^{}]+"; export declare const SourceNodeIdentifierPartRegexString = "(?:{constructor:(constructor)}|{class:([^@:(){}]*)}|{method(?:@static)?(?:@get|@set)?:((?:[^@:(){}]*|\\((?:literal|expression):[^@:(){}]*\\)|\\(anonymous:[0-9]+\\))(?::[0-9]+)?)}|{get(?:@static)?:((?:[^@:(){}]*|\\((?:literal|expression):[^@:(){}]*\\)|\\(anonymous:[0-9]+\\))(?::[0-9]+)?)}|{set(?:@static)?:((?:[^@:(){}]*|\\((?:literal|expression):[^@:(){}]*\\)|\\(anonymous:[0-9]+\\))(?::[0-9]+)?)}|{function:((?:[^@:(){}]*|\\((?:literal|expression):[^@:(){}]*\\)|\\(anonymous:[0-9]+\\))(?::[0-9]+)?)}|{functionExpression(?:@static)?:((?:[^@:(){}]*|\\((?:literal|expression):[^@:(){}]*\\)|\\(anonymous:[0-9]+\\))(?::[0-9]+)?)}|{classExpression(?:@static)?:((?:[^@:(){}]*|\\((?:literal|expression):[^@:(){}]*\\)|\\(anonymous:[0-9]+\\))(?::[0-9]+)?)}|{(static:[0-9]+)}|(?:{scope:\\(obj(?:@static)?:((?:[^@:(){}]*|\\((?:literal|expression):[^@:(){}]*\\)|\\(anonymous:[0-9]+\\)))\\)}|{scope:\\(namespace:((?:[^@:(){}]*|\\((?:literal|expression):[^@:(){}]*\\)|\\(anonymous:[0-9]+\\))(?:.(?:[^@:(){}]*|\\((?:literal|expression):[^@:(){}]*\\)|\\(anonymous:[0-9]+\\)))*):[0-9]+\\)}|{scope:(\\(if:[0-9]+\\))}|{scope:(\\(then\\))}|{scope:(\\(else\\))}|{scope:(\\(for:[0-9]+\\))}|{scope:(\\(while:[0-9]+\\))}|{scope:(\\(switch:[0-9]+\\))}|{scope:(\\(case:(?:[A-Za-z0-9]+|default)(?::[0-9]+)?\\))}|{scope:(\\(try:[0-9]+\\))}|{scope:(\\(try\\))}|{scope:(\\(catch\\))}|{scope:(\\(finally\\))}|{scope:(\\(block:[0-9]+\\))}))"; export declare const SourceNodeIdentifierRegexString: string; export declare const LangInternalPathRegexString = "node:(?:[^\\/{}]*)(?:\\/[^\\/{}]*)*"; export declare const RootRegex: RegExp; export declare const ConstructorDeclarationRegex: RegExp; export declare const ClassDeclarationRegex: RegExp; export declare const MethodDefinitionRegex: RegExp; export declare const GetAccessorDeclarationRegex: RegExp; export declare const SetAccessorDeclarationRegex: RegExp; export declare const FunctionDeclarationRegex: RegExp; export declare const FunctionExpressionRegex: RegExp; export declare const ClassExpressionRegex: RegExp; export declare const ObjectLiteralExpressionRegex: RegExp; export declare const ModuleDeclarationRegex: RegExp; export declare const IfStatementRegex: RegExp; export declare const IfThenStatementRegex: RegExp; export declare const IfElseStatementRegex: RegExp; export declare const ForStatementRegex: RegExp; export declare const WhileStatementRegex: RegExp; export declare const TryStatementRegex: RegExp; export declare const TryBlockStatementRegex: RegExp; export declare const CatchClauseStatementRegex: RegExp; export declare const FinallyBlockStatementRegex: RegExp; export declare const BlockStatementRegex: RegExp; export declare const ClassStaticBlockDeclarationRegex: RegExp; export declare const SwitchStatementRegex: RegExp; export declare const SwitchCaseClauseRegex: RegExp; export declare const ScopeRegex: RegExp; export declare const LangInternalSourceNodeRegExpRegex: RegExp; export declare const LangInternalSourceNodeIdentifierRegex: RegExp; export declare const SourceNodeIdentifierPartRegex: RegExp; export declare const SourceNodeIdentifierRegex: RegExp; export declare const LangInternalPathRegex: RegExp;