Skip to content

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 ​

ParameterType
textstring

Returns ​

string

Core packages released under MIT. Studio app released under FSL-1.1-ALv2.