Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ LinkChildToParentNamespace()

void System.Reflection.Metadata.Ecma335.NamespaceCache.LinkChildToParentNamespace ( Dictionary< string, NamespaceDataBuilder > existingNamespaces,
NamespaceDataBuilder realChild,
ref List< NamespaceDataBuilder > virtualNamespaces )
inlineprivate

Definition at line 200 of file NamespaceCache.cs.

201 {
202 string fullName = realChild.FullName;
203 NamespaceDataBuilder child = realChild;
204 NamespaceDataBuilder value;
205 while (true)
206 {
207 int num = fullName.LastIndexOf('.');
208 string text;
209 if (num == -1)
210 {
211 if (fullName.Length == 0)
212 {
213 return;
214 }
215 text = string.Empty;
216 }
217 else
218 {
219 text = fullName.Substring(0, num);
220 }
222 {
223 break;
224 }
225 if (virtualNamespaces != null)
226 {
227 foreach (NamespaceDataBuilder virtualNamespace in virtualNamespaces)
228 {
229 if (virtualNamespace.FullName == text)
230 {
232 return;
233 }
234 }
235 }
236 else
237 {
239 }
240 NamespaceDataBuilder namespaceDataBuilder = SynthesizeNamespaceData(text, realChild.Handle);
244 child = namespaceDataBuilder;
245 }
247 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
void Add(TKey key, TValue value)
NamespaceDataBuilder SynthesizeNamespaceData(string fullName, NamespaceDefinitionHandle realChild)
void LinkChildDataToParentData(NamespaceDataBuilder child, NamespaceDataBuilder parent)

References System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Reflection.Metadata.Ecma335.NamespaceCache.LinkChildDataToParentData(), System.Reflection.Metadata.Ecma335.NamespaceCache.SynthesizeNamespaceData(), System.text, System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue(), and System.value.

Referenced by System.Reflection.Metadata.Ecma335.NamespaceCache.ResolveParentChildRelationships().