cannabis
Version:
TypeScript AST Query library
60 lines (59 loc) • 1.76 kB
TypeScript
/**
* 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.
*/
export declare enum FunctionNames {
below = "below",
follows = "follows",
in = "in",
debug = "debug",
join = "join",
includes = "includes",
compareText = "compareText",
attrs = "attrs",
depth = "depth",
pos = "pos",
nth = "nth",
first = "first",
last = "last",
count = "count",
substr = "substr",
index = "index",
trim = "trim",
lc = "lc",
uc = "uc",
type = "type",
isFunctionLike = "isFunctionLike",
getExtended = "getExtended",
getExtendedNames = "getExtendedNames",
text = "text",
extendsAllNamed = "extendsAllNamed",
extendsAnyNamed = "extendsAnyNamed",
getImplemented = "getImplemented",
getImplementedNames = "getImplementedNames",
implementsAnyNamed = "implementsAnyNamed",
implementsAllNamed = "implementsAllNamed",
findReferences = "findReferences",
sourceFile = "sourceFile",
kindName = "kindName",
parent = "parent",
children = "children",
matchEvery = "matchEvery",
matchAll = "matchAll",
array = "array",
map = "map",
declarations = "declarations",
ancestors = "ancestors",
flat = "flat",
namePath = "namePath",
siblings = "siblings",
name = "name",
derivedClasses = "derivedClasses",
getImplementations = "getImplementations",
localNames = "localNames",
typeText = "typeText",
Type = "Type",
get = "get",
returnType = "returnType"
}