@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 • 4.42 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.LangInternalPathRegex = exports.LangInternalPathRegexString = exports.SourceNodeIdentifierRegex = exports.SourceNodeIdentifierRegexString = exports.SourceNodeIdentifierPartRegex = exports.SourceNodeIdentifierPartRegexString = exports.LangInternalSourceNodeIdentifierRegex = exports.LangInternalSourceNodeIdentifierRegexString = exports.LangInternalSourceNodeNameRegexString = exports.LangInternalSourceNodeRegExpRegexString = exports.FunctionExpressionRegex = exports.FunctionDeclarationRegex = exports.MethodDefinitionRegex = exports.ClassDeclarationRegex = exports.ConstructorDeclarationRegex = exports.RootRegex = exports.RootRegexString = exports.SourceNodeNameExpressionRegex = exports.SourceNodeNameRegexString = void 0;
exports.SourceNodeNameRegexString = '[a-zA-Z0-9_$#]+';
exports.SourceNodeNameExpressionRegex = `(?:${exports.SourceNodeNameRegexString}|\\((?:literal|expression):${exports.SourceNodeNameRegexString}\\))`;
exports.RootRegexString = '{root}';
exports.RootRegex = new RegExp(exports.RootRegexString);
exports.ConstructorDeclarationRegex = '{constructor:constructor}';
exports.ClassDeclarationRegex = `{class:${exports.SourceNodeNameRegexString}}`;
exports.MethodDefinitionRegex = `{method:${exports.SourceNodeNameExpressionRegex}}`;
exports.FunctionDeclarationRegex = `{function:${exports.SourceNodeNameExpressionRegex}}`;
exports.FunctionExpressionRegex = `{functionExpression:(?:${exports.SourceNodeNameExpressionRegex}|\\(anonymous:[0-9]+\\))}`;
exports.LangInternalSourceNodeRegExpRegexString = 'RegExp: .*';
exports.LangInternalSourceNodeNameRegexString = '[^{}]+';
exports.LangInternalSourceNodeIdentifierRegexString = '(?:' +
`{(?:${exports.LangInternalSourceNodeNameRegexString})}` +
`(?:\\.{|${exports.LangInternalSourceNodeNameRegexString}})*`
+ `|${exports.LangInternalSourceNodeRegExpRegexString})`;
exports.LangInternalSourceNodeIdentifierRegex = new RegExp(exports.LangInternalSourceNodeIdentifierRegexString);
// eslint-disable-next-line max-len
exports.SourceNodeIdentifierPartRegexString = `(?:${exports.ConstructorDeclarationRegex}|${exports.ClassDeclarationRegex}|${exports.MethodDefinitionRegex}|${exports.FunctionDeclarationRegex}|${exports.FunctionExpressionRegex})`;
exports.SourceNodeIdentifierPartRegex = new RegExp(exports.SourceNodeIdentifierPartRegexString);
exports.SourceNodeIdentifierRegexString = `(?:${exports.RootRegexString}(?:\\.${exports.SourceNodeIdentifierPartRegexString})*|${exports.LangInternalSourceNodeIdentifierRegex})`;
exports.SourceNodeIdentifierRegex = new RegExp(exports.SourceNodeIdentifierRegexString);
exports.LangInternalPathRegexString = 'node:(?:[^\\/{}]*)(?:\\/[^\\/{}]*)*';
exports.LangInternalPathRegex = new RegExp(`^${exports.LangInternalPathRegexString}$`);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU291cmNlTm9kZVJlZ2V4LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NvbnN0YW50cy9Tb3VyY2VOb2RlUmVnZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQWEsUUFBQSx5QkFBeUIsR0FBRyxpQkFBaUIsQ0FBQTtBQUM3QyxRQUFBLDZCQUE2QixHQUN6QyxNQUFNLGlDQUF5Qiw4QkFBOEIsaUNBQXlCLE1BQU0sQ0FBQTtBQUVoRixRQUFBLGVBQWUsR0FBRyxRQUFRLENBQUE7QUFDMUIsUUFBQSxTQUFTLEdBQUcsSUFBSSxNQUFNLENBQUMsdUJBQWUsQ0FBQyxDQUFBO0FBQ3ZDLFFBQUEsMkJBQTJCLEdBQUcsMkJBQTJCLENBQUE7QUFDekQsUUFBQSxxQkFBcUIsR0FBRyxVQUFVLGlDQUF5QixHQUFHLENBQUE7QUFDO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