public virtual void DefineConstants ()
{
if (constants != null) {
foreach (Const c in constants) {
c.DefineValue ();
}
}
if (instance_constructors != null) {
foreach (MethodCore m in instance_constructors) {
var p = m.ParameterInfo;
if (!p.IsEmpty) {
p.ResolveDefaultValues (m);
}
}
}
if (methods != null) {
foreach (MethodCore m in methods) {
var p = m.ParameterInfo;
if (!p.IsEmpty) {
p.ResolveDefaultValues (m);
}
}
}
if (indexers != null) {
foreach (Indexer i in indexers) {
i.ParameterInfo.ResolveDefaultValues (i);
}
}
if (types != null) {
foreach (var t in types)
t.DefineConstants ();
}
}