public FAMIX.EnumValue EnsureEnumField(IFieldSymbol symbol) { FAMIX.EnumValue value = this.CreateNewEntity <FAMIX.EnumValue>(typeof(FAMIX.EnumValue).FullName); value.accessibility = helper.AccessibilityName(symbol.DeclaredAccessibility); value.declaredType = this.EnsureType(symbol.Type); value.name = symbol.Name; return(value); }
public override void VisitEnumMemberDeclaration(EnumMemberDeclarationSyntax node) { string attributeName = node.Identifier.ToString(); var symbol = importer.model.GetDeclaredSymbol(node); FAMIX.EnumValue anEnumValue = importer.EnsureAttribute(symbol) as FAMIX.EnumValue; importer.CreateSourceAnchor(anEnumValue, node); if (currentTypeStack.Peek() is FAMIX.Enum) { anEnumValue.parentEnum = currentTypeStack.Peek() as FAMIX.Enum; anEnumValue.parentEnum.AddValue(anEnumValue); anEnumValue.isStub = false; } }
public void AddValue(FAMIX.EnumValue one) { values.Add(one); }