/// <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> /// 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> /// Add the <see cref="CodeObject"/> to the specified dictionary. /// </summary> public virtual void AddToDictionary(NamedCodeObjectDictionary dictionary) { dictionary.Add(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); }