Example #1
0
        public TypeItem(TypeMetadata source) : base(source)
        {
            _details =
                $"Type: {source.Name}{(source.BaseType != null ? ", extends " + source.BaseType.Name : string.Empty)}";
            if (source.ImplementedInterfaces != null)
            {
                _details += ",implements ";
                foreach (ITypeMetadata intf in source.ImplementedInterfaces)
                {
                    _details += $"{intf.Name}, ";
                }
            }

            _details += $"\nType Kind: {source.TypeKind.ToString()}\n";
            _details += $"Modifiers: {source.ModifiersString()}.";
        }