Skip to content

Function: scanSource()

ts
function scanSource(source, fileName?): readonly EntitlementMatch[];

Defined in: packages/core/src/introspection/EntitlementScanner.ts:330

Scan source text for entitlement patterns.

Parameters

ParameterTypeDescription
sourcestringThe source code text to scan
fileName?stringFile name for reporting (optional)

Returns

readonly EntitlementMatch[]

All entitlement matches found