NewScope
Creates a new scope in the format name + defaultScopeDelimiterRune. If the last character is already a defaultScopeDelimiterRune, then it does not add it to the scope name.
def NewScope(
name: string
) - > Scope
Creates a new scope in the format name + defaultScopeDelimiterRune. If the last character is already a defaultScopeDelimiterRune, then it does not add it to the scope name.
Parameters
| Name | Type | Description |
|---|---|---|
| name | string | The base name for the new scope. This cannot be an empty string. |
Returns
| Type | Description |
|---|---|
Scope | A new Scope object with the sanitized name. |