Kind: Function
Source: atloria-monorepo/libs/parser-core/src/techdocs/example-grounding.ts
Return the method names an example calls on an instance of entityName that are NOT among
knownMethods — i.e. hallucinated APIs. Conservative to avoid dropping good examples:
- Binds the entity only via
new EntityName(or a<var>: EntityNametyped param/field. - Returns
[]when there are no known methods (nothing to ground) or no bound var (unsure). Calls on other objects (res.status,this.prisma.insert, standard lib) are never flagged.
Signature
tsfunction findUngroundedExampleMethods(example: string, entityName: string, knownMethods: string[]): string[]
Parameters
| Name | Type |
|---|---|
example | string |
entityName | string |
knownMethods | string[] |
Returns: string[]
Was this page helpful?