Add capacitorjs runtime
This commit is contained in:
parent
d0ece489ee
commit
f90c0e6c40
8362 changed files with 1502407 additions and 1 deletions
41
node_modules/chevrotain/lib_esm/src/lang/lang_extensions.js
generated
vendored
Normal file
41
node_modules/chevrotain/lib_esm/src/lang/lang_extensions.js
generated
vendored
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
import { isUndefined } from "../utils/utils";
|
||||
export function classNameFromInstance(instance) {
|
||||
return functionName(instance.constructor);
|
||||
}
|
||||
var NAME = "name";
|
||||
/**
|
||||
* Utility to obtain Function names.
|
||||
* Note that there should not be an assumptions on the result of this function.
|
||||
* E.g: When running from minified source code the result may be auto generated.
|
||||
*/
|
||||
export function functionName(func) {
|
||||
// Engines that support Function.prototype.name OR the nth (n>1) time after
|
||||
// the name has been computed in the following else block.
|
||||
var existingNameProp = func.name;
|
||||
/* istanbul ignore else - too many hacks for IE/old versions of node.js here*/
|
||||
if (existingNameProp) {
|
||||
return existingNameProp;
|
||||
}
|
||||
else {
|
||||
return "anonymous";
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @returns {boolean} - has the property been successfully defined
|
||||
*/
|
||||
export function defineNameProp(obj, nameValue) {
|
||||
var namePropDescriptor = Object.getOwnPropertyDescriptor(obj, NAME);
|
||||
/* istanbul ignore else -> will only run in old versions of node.js */
|
||||
if (isUndefined(namePropDescriptor) || namePropDescriptor.configurable) {
|
||||
Object.defineProperty(obj, NAME, {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: false,
|
||||
value: nameValue
|
||||
});
|
||||
return true;
|
||||
}
|
||||
/* istanbul ignore next -> will only run in old versions of node.js */
|
||||
return false;
|
||||
}
|
||||
//# sourceMappingURL=lang_extensions.js.map
|
||||
1
node_modules/chevrotain/lib_esm/src/lang/lang_extensions.js.map
generated
vendored
Normal file
1
node_modules/chevrotain/lib_esm/src/lang/lang_extensions.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"lang_extensions.js","sourceRoot":"","sources":["../../../src/lang/lang_extensions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAE5C,MAAM,UAAU,qBAAqB,CAAC,QAAa;IACjD,OAAO,YAAY,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAA;AAC3C,CAAC;AAED,IAAM,IAAI,GAAG,MAAM,CAAA;AAEnB;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAAC,IAAe;IAC1C,2EAA2E;IAC3E,0DAA0D;IAC1D,IAAI,gBAAgB,GAAS,IAAK,CAAC,IAAI,CAAA;IACvC,8EAA8E;IAC9E,IAAI,gBAAgB,EAAE;QACpB,OAAO,gBAAgB,CAAA;KACxB;SAAM;QACL,OAAO,WAAW,CAAA;KACnB;AACH,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,cAAc,CAAC,GAAG,EAAE,SAAS;IAC3C,IAAI,kBAAkB,GAAG,MAAM,CAAC,wBAAwB,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;IACnE,sEAAsE;IACtE,IAAI,WAAW,CAAC,kBAAkB,CAAC,IAAI,kBAAkB,CAAC,YAAY,EAAE;QACtE,MAAM,CAAC,cAAc,CAAC,GAAG,EAAE,IAAI,EAAE;YAC/B,UAAU,EAAE,KAAK;YACjB,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,KAAK;YACf,KAAK,EAAE,SAAS;SACjB,CAAC,CAAA;QAEF,OAAO,IAAI,CAAA;KACZ;IACD,sEAAsE;IACtE,OAAO,KAAK,CAAA;AACd,CAAC"}
|
||||
Loading…
Add table
Add a link
Reference in a new issue