/// <summary> /// Remove the <see cref="CodeObject"/> from the specified dictionary. /// </summary> public override void RemoveFromDictionary(NamedCodeObjectDictionary dictionary) { // For MultiFieldDecls, we need to remove each individual FieldDecl foreach (FieldDecl fieldDecl in _fieldDecls) { dictionary.Remove(fieldDecl.Name, fieldDecl); } }
/// <summary> /// Remove the <see cref="CodeObject"/> from the specified dictionary. /// </summary> public override void RemoveFromDictionary(NamedCodeObjectDictionary dictionary) { // For MultiEnumMemberDecls, we need to remove each individual EnumMemberDecl foreach (EnumMemberDecl enumMemberDecl in _enumMemberDecls) { dictionary.Remove(enumMemberDecl.Name, enumMemberDecl); } }
/// <summary> /// Add the <see cref="CodeObject"/> to the specified dictionary. /// </summary> public override void AddToDictionary(NamedCodeObjectDictionary dictionary) { // For MultiFieldDecls, we need to add each individual FieldDecl foreach (FieldDecl fieldDecl in _fieldDecls) { dictionary.Add(fieldDecl.Name, fieldDecl); } }
/// <summary> /// Add the <see cref="CodeObject"/> to the specified dictionary. /// </summary> public override void AddToDictionary(NamedCodeObjectDictionary dictionary) { // For MultiEnumMemberDecls, we need to add each individual EnumMemberDecl foreach (EnumMemberDecl enumMemberDecl in _enumMemberDecls) { dictionary.Add(enumMemberDecl.Name, enumMemberDecl); } }
/// <summary> /// Remove the <see cref="CodeObject"/> from the specified dictionary. /// </summary> public override void RemoveFromDictionary(NamedCodeObjectDictionary dictionary) { // For MultiLocalDecls, we need to remove each individual LocalDecl foreach (LocalDecl localDecl in _localDecls) { dictionary.Remove(localDecl.Name, localDecl); } }
/// <summary> /// Add the <see cref="CodeObject"/> to the specified dictionary. /// </summary> public override void AddToDictionary(NamedCodeObjectDictionary dictionary) { // For MultiLocalDecls, we need to add each individual LocalDecl foreach (LocalDecl localDecl in _localDecls) { dictionary.Add(localDecl.Name, localDecl); } }
/// <summary> /// Remove the <see cref="CodeObject"/> from the specified dictionary. /// </summary> public virtual void RemoveFromDictionary(NamedCodeObjectDictionary dictionary) { dictionary.Remove(Name, this); }
/// <summary> /// Add the <see cref="CodeObject"/> to the specified dictionary. /// </summary> public virtual void AddToDictionary(NamedCodeObjectDictionary dictionary) { dictionary.Add(Name, this); }
/// <summary> /// Remove the <see cref="CodeObject"/> from the specified dictionary. /// </summary> public void RemoveFromDictionary(NamedCodeObjectDictionary dictionary) { dictionary.Remove(ParseToken + Name, this); }
/// <summary> /// Add the <see cref="CodeObject"/> to the specified dictionary. /// </summary> public void AddToDictionary(NamedCodeObjectDictionary dictionary) { // Prefix Labels and SwitchItems with a ':' to segregate them dictionary.Add(ParseToken + Name, this); }
/// <summary> /// This method shouldn't be called on this type. /// </summary> public void RemoveFromDictionary(NamedCodeObjectDictionary dictionary) { throw new Exception("Can't remove a NamespaceTypeGroup from a NamedCodeObjectDictionary!"); }
/// <summary> /// This method shouldn't be called on this type. /// </summary> public void AddToDictionary(NamedCodeObjectDictionary dictionary) { throw new Exception("Can't add a NamespaceTypeGroup to a NamedCodeObjectDictionary!"); }