Inheritance: BaseDocumentationElement, IReferencable
Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Property"/> class.
 /// </summary>
 /// <param name="identifier">
 /// The identifier.
 /// </param>
 /// <param name="type">
 /// The type.
 /// </param>
 public Property(PropertyIdentifier identifier, DeclaredType type)
     : base(identifier)
 {
     this.Type = type;
     this.HasGet = identifier.HasGet;
     this.HasSet = identifier.HasSet;
 }
Esempio n. 2
0
 public Property(PropertyIdentifier identifier, DeclaredType type)
     : base(identifier)
 {
     Type = type;
     HasGet = identifier.HasGet;
     HasSet = identifier.HasSet;
     IsStatic = identifier.IsStatic;
 }
Esempio n. 3
0
        private void AddMatch(string outputPath, string templatePath, ViewData data, Namespace ns, DeclaredType type)
        {
            var clone = data.Clone();

            clone.Type = type;

            AddMatch(outputPath, templatePath, clone, ns);
        }
Esempio n. 4
0
        protected DeclaredType Type <T>(Namespace ns)
        {
            var type = new DeclaredType(IdentifierFor.Type(typeof(T)), ns);

            ns.AddType(type);

            return(type);
        }
Esempio n. 5
0
 public static Method Unresolved(MethodIdentifier methodIdentifier, DeclaredType type, MethodInfo representedMethod, IReferencable returnType)
 {
     return new Method(methodIdentifier, type)
     {
         IsResolved = false,
         representedMethod = representedMethod,
         ReturnType = returnType
     };
 }
        private void create_assemblies()
        {
            first_namespace = Namespace("First");
            first_type = Type<First>(first_namespace);
            second_namespace = Namespace("Second");
            second_type = Type<Second>(second_namespace);
            third_namespace = Namespace("Third");
            third_type = Type<Third>(third_namespace);

            namespaces = new[] { first_namespace, second_namespace, third_namespace };
        }
Esempio n. 7
0
        public static DeclaredType Unresolved(TypeIdentifier typeIdentifier, Type type, Namespace ns)
        {
            var declaredType = new DeclaredType(typeIdentifier, ns) { IsResolved = false, representedType = type };

            if (type.BaseType != null)
                declaredType.ParentType = Unresolved(
                    Identifier.FromType(type.BaseType),
                    type.BaseType,
                    Namespace.Unresolved(Identifier.FromNamespace(type.BaseType.Namespace)));

            IEnumerable<Type> interfaces = GetInterfaces(type);

            foreach (Type face in interfaces)
            {
                declaredType.Interfaces.Add(
                    Unresolved(
                        Identifier.FromType(face),
                        face,
                        Namespace.Unresolved(Identifier.FromNamespace(face.Namespace))));
            }

            return declaredType;
        }
Esempio n. 8
0
 public void AddType(DeclaredType type)
 {
     types.Add(type);
 }
Esempio n. 9
0
 public static Event Unresolved(EventIdentifier eventIdentifier, DeclaredType type)
 {
     return new Event(eventIdentifier, type) { IsResolved = false };
 }
Esempio n. 10
0
 public Enumeration(EnumIdentifier identifier, DeclaredType type)
     : base(identifier)
 {
     Type = type;
 }
Esempio n. 11
0
 public static Method Unresolved(MethodIdentifier methodIdentifier, DeclaredType type)
 {
     return new Method(methodIdentifier, type) { IsResolved = false };
 }
Esempio n. 12
0
 public static Method Unresolved(MethodIdentifier methodIdentifier, DeclaredType type, MethodBase declaration, IReferencable returnType)
 {
     return new Method(methodIdentifier, type)
         {
             IsResolved = false, declaration = declaration, ReturnType = returnType
         };
 }
Esempio n. 13
0
 public static Field Unresolved(FieldIdentifier fieldIdentifier, DeclaredType type, IReferencable returnType)
 {
     return new Field(fieldIdentifier, type) { IsResolved = false, ReturnType = returnType };
 }
Esempio n. 14
0
 public static Field Unresolved(FieldIdentifier fieldIdentifier, DeclaredType type)
 {
     return new Field(fieldIdentifier, type) { IsResolved = false };
 }
Esempio n. 15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Field"/> class.
 /// </summary>
 /// <param name="identifier">
 /// The identifier.
 /// </param>
 /// <param name="type">
 /// The type.
 /// </param>
 public Field(FieldIdentifier identifier, DeclaredType type)
     : base(identifier)
 {
     this.Type = type;
 }
Esempio n. 16
0
File: Field.cs Progetto: wsky/docu
 public Field(FieldIdentifier identifier, DeclaredType type)
     : base(identifier)
 {
     Type = type;
 }
Esempio n. 17
0
 public static Enumeration Unresolved(EnumIdentifier fieldIdentifier, DeclaredType type, IReferencable returnType)
 {
     return new Enumeration(fieldIdentifier, type) { IsResolved = false, ReturnType = returnType };
 }
Esempio n. 18
0
 public static Enumeration Unresolved(EnumIdentifier fieldIdentifier, DeclaredType type)
 {
     return new Enumeration(fieldIdentifier, type) { IsResolved = false };
 }
Esempio n. 19
0
 public static Property Unresolved(PropertyIdentifier propertyIdentifier, DeclaredType type, IReferencable returnType, List<Attribute> attributes)
 {
     return new Property(propertyIdentifier, type) { IsResolved = false, ReturnType = returnType, Attributes = attributes };
 }
Esempio n. 20
0
 public Event(EventIdentifier identifier, DeclaredType type)
     : base(identifier)
 {
     Type = type;
 }
Esempio n. 21
0
 public Method(MethodIdentifier identifier, DeclaredType type)
     : base(identifier)
 {
     Type = type;
     Returns = new Summary();
 }
Esempio n. 22
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Method" /> class.
 /// </summary>
 /// <param name="identifier">
 ///     The identifier.
 /// </param>
 /// <param name="type">
 ///     The type.
 /// </param>
 public Method(MethodIdentifier identifier, DeclaredType type)
     : base(identifier)
 {
     Type    = type;
     Returns = new Summary();
 }
Esempio n. 23
0
 public void AddType(DeclaredType type)
 {
     types.Add(type);
 }
Esempio n. 24
0
 public static Property Unresolved(PropertyIdentifier propertyIdentifier, DeclaredType type)
 {
     return new Property(propertyIdentifier, type) { IsResolved = false };
 }
Esempio n. 25
0
        public static DeclaredType Unresolved(TypeIdentifier typeIdentifier, Type declaration, Namespace ns)
        {
            var declaredType = new DeclaredType(typeIdentifier, ns) { IsResolved = false, declaration = declaration };

            if (declaration.BaseType != null)
            {
                declaredType.ParentType = Unresolved(
                    IdentifierFor.Type(declaration.BaseType),
                    declaration.BaseType,
                    Namespace.Unresolved(IdentifierFor.Namespace(declaration.BaseType.Namespace)));
            }

            IEnumerable<Type> interfaces = GetInterfaces(declaration);

            foreach (Type face in interfaces)
            {
                declaredType.Interfaces.Add(
                    Unresolved(IdentifierFor.Type(face), face, Namespace.Unresolved(IdentifierFor.Namespace(face.Namespace))));
            }

            return declaredType;
        }
Esempio n. 26
0
 public Enumeration(EnumIdentifier identifier, DeclaredType type)
     : base(identifier)
 {
     Type = type;
 }
Esempio n. 27
0
 public static Property Unresolved(
     PropertyIdentifier propertyIdentifier, DeclaredType type, IReferencable returnType)
 {
     return new Property(propertyIdentifier, type) { IsResolved = false, ReturnType = returnType };
 }
Esempio n. 28
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Event"/> class.
 /// </summary>
 /// <param name="identifier">
 /// The identifier.
 /// </param>
 /// <param name="type">
 /// The type.
 /// </param>
 public Event(EventIdentifier identifier, DeclaredType type)
     : base(identifier)
 {
     this.Type = type;
 }