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

Function looksLikeObjc

src/extraction/grammars.ts:520–523  ·  view source on GitHub ↗

* Heuristic: does a .h file contain Objective-C constructs?

(source: string)

Source from the content-addressed store, hash-verified

518 * Heuristic: does a .h file contain Objective-C constructs?
519 */
520function looksLikeObjc(source: string): boolean {
521 const sample = source.substring(0, 8192);
522 return /@(?:interface|implementation|protocol|synthesize)\b/.test(sample);
523}
524
525/**
526 * Check if a language is supported (has a grammar defined).

Callers 1

detectLanguageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected