cannabis
Version:
TypeScript AST Query library
116 lines • 3.74 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* This enum contains the function names supported by cannabis, plus also the ASTQ library built in functions.
* User's can reference function names from their queries using this instead of hard coding their names as
* strings. Also could help when needing to list all supported functions.
*/
var FunctionNames;
(function (FunctionNames) {
FunctionNames["below"] = "below";
FunctionNames["follows"] = "follows";
FunctionNames["in"] = "in";
FunctionNames["debug"] = "debug";
FunctionNames["join"] = "join";
FunctionNames["includes"] = "includes";
FunctionNames["compareText"] = "compareText";
FunctionNames["attrs"] = "attrs";
FunctionNames["depth"] = "depth";
FunctionNames["pos"] = "pos";
FunctionNames["nth"] = "nth";
FunctionNames["first"] = "first";
FunctionNames["last"] = "last";
FunctionNames["count"] = "count";
FunctionNames["substr"] = "substr";
FunctionNames["index"] = "index";
FunctionNames["trim"] = "trim";
FunctionNames["lc"] = "lc";
FunctionNames["uc"] = "uc";
FunctionNames["type"] = "type";
FunctionNames["isFunctionLike"] = "isFunctionLike";
FunctionNames["getExtended"] = "getExtended";
FunctionNames["getExtendedNames"] = "getExtendedNames";
FunctionNames["text"] = "text";
FunctionNames["extendsAllNamed"] = "extendsAllNamed";
FunctionNames["extendsAnyNamed"] = "extendsAnyNamed";
FunctionNames["getImplemented"] = "getImplemented";
FunctionNames["getImplementedNames"] = "getImplementedNames";
FunctionNames["implementsAnyNamed"] = "implementsAnyNamed";
FunctionNames["implementsAllNamed"] = "implementsAllNamed";
FunctionNames["findReferences"] = "findReferences";
FunctionNames["sourceFile"] = "sourceFile";
FunctionNames["kindName"] = "kindName";
FunctionNames["parent"] = "parent";
FunctionNames["children"] = "children";
FunctionNames["matchEvery"] = "matchEvery";
FunctionNames["matchAll"] = "matchAll";
FunctionNames["array"] = "array";
FunctionNames["map"] = "map";
FunctionNames["declarations"] = "declarations";
FunctionNames["ancestors"] = "ancestors";
FunctionNames["flat"] = "flat";
FunctionNames["namePath"] = "namePath";
FunctionNames["siblings"] = "siblings";
FunctionNames["name"] = "name";
FunctionNames["derivedClasses"] = "derivedClasses";
FunctionNames["getImplementations"] = "getImplementations";
FunctionNames["localNames"] = "localNames";
FunctionNames["typeText"] = "typeText";
FunctionNames["Type"] = "Type";
FunctionNames["get"] = "get";
FunctionNames["returnType"] = "returnType";
})(FunctionNames = exports.FunctionNames || (exports.FunctionNames = {}));
var o = {
below: 1,
follows: 1,
in: 1,
debug: 1,
join: 1,
includes: 1,
compareText: 1,
attrs: 1,
depth: 1,
pos: 1,
nth: 1,
first: 1,
last: 1,
count: 1,
substr: 1,
index: 1,
trim: 1,
lc: 1, uc: 1,
type: 1,
isFunctionLike: 1,
getExtended: 1,
getExtendedNames: 1,
text: 1,
extendsAllNamed: 1,
extendsAnyNamed: 1,
getImplemented: 1,
getImplementedNames: 1,
implementsAnyNamed: 1,
implementsAllNamed: 1,
findReferences: 1,
sourceFile: 1,
kindName: 1,
parent: 1,
children: 1,
matchEvery: 1,
matchAll: 1,
array: 1,
map: 1,
declarations: 1,
ancestors: 1,
flat: 1,
namePath: 1,
siblings: 1,
name: 1,
derivedClasses: 1,
getImplementations: 1,
localNames: 1,
typeText: 1,
Type: 1,
get: 1,
returnType: 1
};
//# sourceMappingURL=functionTypes.js.map