/// <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);
     }
 }
예제 #2
0
 /// <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);
     }
 }
예제 #4
0
 /// <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);
 }
예제 #9
0
 /// <summary>
 /// Remove the <see cref="CodeObject"/> from the specified dictionary.
 /// </summary>
 public void RemoveFromDictionary(NamedCodeObjectDictionary dictionary)
 {
     dictionary.Remove(ParseToken + Name, this);
 }
예제 #10
0
 /// <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);
 }
예제 #11
0
 /// <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!");
 }
예제 #12
0
 /// <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!");
 }