void AddModifiers (AttributedNode parent, LocationsBag.MemberLocations location) { if (location == null || location.Modifiers == null) return; foreach (var modifier in location.Modifiers) { parent.AddChild (new CSharpModifierToken (Convert (modifier.Item2), modifierTable[modifier.Item1]), AttributedNode.ModifierRole); } }
void AddType (AttributedNode child) { if (typeStack.Count > 0) { typeStack.Peek ().AddChild (child, TypeDeclaration.MemberRole); } else { AddToNamespace (child); } }