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

Method flushPascalReads

src/extraction/tree-sitter.ts:10012–10017  ·  view source on GitHub ↗

The bare names read in an expression, less those the file shows are variables of their class.

()

Source from the content-addressed store, hash-verified

10010
10011 /** The bare names read in an expression, less those the file shows are variables of their class. */
10012 private flushPascalReads(): void {
10013 for (const { ref, scope, name } of this.pascalReads) {
10014 if (!this.pascalAssigned.get(scope)?.has(name)) this.unresolvedReferences.push(ref);
10015 }
10016 this.pascalReads = [];
10017 }
10018
10019 /**
10020 * Whether a node is the name a routine's header declares (`TFoo.Bar` in

Callers 1

extractMethod · 0.95

Calls 3

hasMethod · 0.80
pushMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected