An IConfigTypeBag represents a scope in which identifiers are associated with ConfigType objects, for example declared variables and fields.
interface
|
IConfigTypeBag
|
extends
|
IVersioned
|
||
base of
|
IConfigValueBag
|
Type bags are used during parsing and PSI construction in order to resolve the types of identifier expressions. They do not contain config values.
The number of named objects in the bag.
property
|
Count
{
get
}
|
||
type
|
int32
|
||
value
|
|
The number of named objects. |
The names of all objects in the bag.
property
|
Names
{
get
}
|
||
type
|
IBagConst<string>
|
||
value
|
|
The object names. |
Returns the current version of object.
property
|
Version
{
get
}
|
||
type
|
int32
|
||
value
|
The current version number. | ||
inherited
|
IVersioned.Version
|
Remarks:
For each modification, the version is incremented by at least one.
Checks if this bag contains an object of the given name.
method
|
Contains
(string name)
|
||
type
|
bool
|
||
params
|
name
|
[not-null]
|
The name. |
returns
|
true
if
the
bag
contains
an
object
named
name,
false
if
it
does
not.
|
Looks in the config domain of this bag and tries to find the bag of the given name.
method
|
GetDomain
(string name)
|
||
type
|
IConfigValueBag
|
||
params
|
name
|
Name
of
the
bag
to
find
or
null
to
return
this
bag. |
|
returns
|
|
The type bag. Will be empty if not found. |
Returns the config type that is associated with the given name, for example the type of a script variable.
method
|
GetTypeNull
(string name)
|
||
type
|
ConfigType
|
||
params
|
name
|
[not-null]
|
The name. |
returns
|
The
associated
config
type
of
null
if
not
found. |
method
|
GetExpressionTypeNull
(string domain,
string identifier)
|
||
type
|
ConfigType
|
||
params
|
domain
|
||
identifier
|