MCPcopy Index your code
hub / github.com/VSCodeVim/Vim / funcref

Function funcref

src/vimscript/expression/build.ts:87–98  ·  view source on GitHub ↗
(args: {
  name: string;
  body?: (args: Value[]) => Value;
  arglist?: ListValue;
  dict?: DictionaryValue;
})

Source from the content-addressed store, hash-verified

85}
86
87export function funcref(args: {
88 name: string;
89 body?: (args: Value[]) => Value;
90 arglist?: ListValue;
91 dict?: DictionaryValue;
92}): FuncRefValue {
93 return {
94 type: 'funcref',
95 ...args,
96 id: funcIdGen.next(),
97 };
98}
99
100export function blob(data: Uint8Array<ArrayBuffer>): BlobValue {
101 return {

Callers 2

evaluateMethod · 0.90
evaluateFunctionCallMethod · 0.90

Calls 1

nextMethod · 0.80

Tested by

no test coverage detected