UNPKG

@eagleoutice/flowr-dev

Version:

Static Dataflow Analyzer and Program Slicer for the R Programming Language

37 lines 2.05 kB
"use strict"; /** * On-disk schema of the `flowr-sigdb` database (schema 5): the constants, enums, numeric tuple forms and * data interfaces that define the serialized format and its read view. The reader/writer/builder logic that * operates on these lives in `./sigdb` (which re-exports this module, so `./sigdb` stays the single entry point). */ Object.defineProperty(exports, "__esModule", { value: true }); exports.DepTypeNames = exports.FnPropNames = exports.SigDbExt = exports.MaxDefaultLength = exports.DefaultCranBase = exports.SigDbSchema = exports.SigDbMagic = void 0; exports.SigDbMagic = 'flowr-sigdb'; exports.SigDbSchema = 5; /** default CRAN source-package base URL, used to build a version's tarball link */ exports.DefaultCranBase = 'https://cran.r-project.org/src/contrib/'; /** * Parameter default expressions longer than this are stored truncated (with a `…` marker): flowR only needs a * short lexeme preview of a default, not the whole expression, so a small cap keeps the dictionary compact. */ exports.MaxDefaultLength = 10; /** file extension of the (uncompressed) bundle */ exports.SigDbExt = '.sigs.ndjson'; /** the {@link FnProp} bit to its name (for decoding); integer keys iterate in ascending bit order */ exports.FnPropNames = { [1 /* FnProp.Exported */]: 'exported', [2 /* FnProp.HigherOrder */]: 'higher-order', [4 /* FnProp.Recursive */]: 'recursive', [8 /* FnProp.CallsDeprecated */]: 'calls-deprecated', [16 /* FnProp.CanThrow */]: 'can-throw', [32 /* FnProp.Deprecated */]: 'deprecated', [64 /* FnProp.CallsInternal */]: 'calls-internal', [128 /* FnProp.NonDeterministic */]: 'non-deterministic', [256 /* FnProp.NoDoc */]: 'no-doc', [512 /* FnProp.S3Method */]: 's3-method', [1024 /* FnProp.S3Owner */]: 's3-owner', [2048 /* FnProp.S4Owner */]: 's4-owner' }; /** the {@link DepType} values in order, with their names (for decoding) */ exports.DepTypeNames = ['depends', 'imports', 'linkingTo', 'suggests', 'enhances']; //# sourceMappingURL=schema.js.map