MCPcopy Create free account
hub / github.com/facebook/memlab / isFunctionType

Function isFunctionType

packages/e2e/src/code-analysis/Script.ts:46–54  ·  view source on GitHub ↗
(type: string)

Source from the content-addressed store, hash-verified

44 | ArrowFunctionExpression;
45
46function isFunctionType(type: string): boolean {
47 return (
48 type === 'FunctionDeclaration' ||
49 type === 'FunctionExpression' ||
50 type === 'ObjectMethod' ||
51 type === 'ClassMethod' ||
52 type === 'ArrowFunctionExpression'
53 );
54}
55
56export default class Script {
57 private code: string;

Callers 2

fillInVarInfoMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…