rune-langium / core/src / namespaceFromSource
Function: namespaceFromSource()
ts
function namespaceFromSource(text): string;Defined in: packages/core/src/naming/namespace.ts:20
Extract the namespace from raw .rosetta source text. Returns '' when no namespace declaration is present (matching the historical callers).
Parameters
| Parameter | Type |
|---|---|
text | string |
Returns
string