public override AstNode Visit(EnumConstantDefinition node) { // Use the same flags for all of the constants. MemberFlags flags = MemberFlags.Static | MemberFlags.Public; // The current container must be a structure. Structure building = (Structure)currentContainer; // Create the field. FieldVariable field = new FieldVariable(node.GetName(), flags, node.GetNodeType(), building); node.SetVariable(field); // Add it to the enumeration. building.AddField(field); // Return the node. return node; }