IConfigTypeBag

Description

interface Tinman.Core.Config.IConfigTypeBag

Derived from

IVersioned

Extended by

IConfigValueBag

A IConfigTypeBag represents a scope in which identifiers are associated with ConfigType objects, for example declared variables and fields.

Type bags are used during parsing and PSI construction in order to resolve the types of identifier expressions. They do not contain config values.

Public / Methods

Contains


public method Contains → (1)

name in : string

[not-null]
The name.

returns → bool

true if the bag contains an object named name in, false if it does not.

Checks if this bag contains an object of the given name.

Get​Domain


public method GetDomain → (1)

name in : string

Name of the bag to find or null to return this bag.

returns → IConfigValueBag

The type bag. Will be empty if not found.

Looks in the config domain of this bag and tries to find the bag of the given name.

Get​Type​Null


public method GetTypeNull → (1)

name in : string

[not-null]
The name.

returns → ConfigType

The associated config type of null if not found.

Returns the config type that is associated with the given name, for example the type of a script variable.

ConfigException

If an unexpected error has occurred while obtaining the config type.

Public / Attributes

Count


public attribute Count → (get)

value : int32

[>=0]
The number of named objects.

The number of named objects in the bag.

Names


public attribute Names → (get)

value : IBagConst<string>

[not-null]
The object names.

The names of all objects in the bag.

Extensions

Get​Type​Null


public static method GetTypeNull → (2)

domain in : string

The domain. If null, this type bag will be used.

name in : string

[not-null]
The name.

returns → ConfigType

The associated config type of null if not found.

Returns the config type that is associated with the given fully qualified name, for example the type of a script variable.

ConfigException

If an unexpected error has occurred while obtaining the config type.