MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / constructedClass

Function constructedClass

src/resolution/ruby-parameter-flow.ts:426–429  ·  view source on GitHub ↗

The class a `Foo.new(…)` constructs, or null for any other text.

(text: string)

Source from the content-addressed store, hash-verified

424
425/** The class a `Foo.new(…)` constructs, or null for any other text. */
426function constructedClass(text: string): string | null {
427 const made = CONSTRUCTED.exec(text);
428 return made && (made[2] === undefined || closesAtEnd(made[2])) ? made[1]! : null;
429}
430
431export const rubyParameterFlow: ParameterFlowLanguage = {
432 language: 'ruby',

Callers 1

valueOfFunction · 0.85

Calls 2

closesAtEndFunction · 0.70
execMethod · 0.65

Tested by

no test coverage detected