Ejemplo n.º 1
0
 public virtual void WriteTypeDeclarationsOnly(TypeDefinition member, IWriterContextService writerContextService, bool writeDocumentation, bool showCompilerGeneratedMembers = false)
 {
     this.writerContextService = writerContextService;
     this.writerContext        = writerContextService.GetWriterContext(member, Language);
     this.currentWritingInfo   = new WritingInfo(member);
     WriteTypeDeclarationsOnlyInternal(member, writeDocumentation, showCompilerGeneratedMembers);
 }
 public virtual void WriteTypeDeclarationsOnly(TypeDefinition member, IWriterContextService writerContextService)
 {
     this.writerContextService = writerContextService;
     this.writerContext        = writerContextService.GetWriterContext(member, Language);
     this.currentWritingInfo   = new WritingInfo(member);
     WriteTypeDeclarationsOnlyInternal(member);
 }
 public virtual void WriteBody(IMemberDefinition member, IWriterContextService writerContextService)
 {
     this.writerContextService = writerContextService;
     this.currentWritingInfo   = new WritingInfo(member);
     this.writingInfos         = new List <WritingInfo>();
     this.writingInfos.Add(this.currentWritingInfo);
     this.writerContext = writerContextService.GetWriterContext(member, Language);
     WriteBodyInternal(member);
 }
Ejemplo n.º 4
0
 public void WriteBody(IMemberDefinition member, IWriterContextService writerContextService, bool writeFullQualifiedNames)
 {
     this.writerContextService = writerContextService;
     this.writerContext        = writerContextService.GetWriterContext(member, Language);
     this.currentWritingInfo   = new WritingInfo(member);
     UpdateWritingInfo(this.writerContext, this.currentWritingInfo);
     this.writingInfos = new List <WritingInfo>();
     this.writingInfos.Add(this.currentWritingInfo);
     WriteBodyInternal(member, writeFullQualifiedNames);
 }
 public override void WriteBody(IMemberDefinition member, IWriterContextService writerContextService)
 {
     this.writerContextService = writerContextService;
     this.writerContext = writerContextService.GetWriterContext(member, Language);
     this.currentWritingInfo = new WritingInfo(member);
     UpdateWritingInfo(this.writerContext, this.currentWritingInfo);
     this.writingInfos = new List<WritingInfo>();
     this.writingInfos.Add(this.currentWritingInfo);
     WriteBodyInternal(member);
 }
Ejemplo n.º 6
0
		public override void WriteBody(IMemberDefinition member, IWriterContextService writerContextService)
		{
			this.writerContextService = writerContextService;
			this.writerContext = writerContextService.GetWriterContext(member, this.get_Language());
			this.currentWritingInfo = new WritingInfo(member);
			this.UpdateWritingInfo(this.writerContext, this.currentWritingInfo);
			this.writingInfos = new List<WritingInfo>();
			this.writingInfos.Add(this.currentWritingInfo);
			this.WriteBodyInternal(member);
			return;
		}
Ejemplo n.º 7
0
 public List <WritingInfo> WritePartialTypeAndNamespaces(TypeDefinition type, IWriterContextService writerContextService, bool showCompilerGeneratedMembers, bool writeFullyQualifiedNames, bool writeDocumentation, Dictionary <string, ICollection <string> > fieldsToSkip = null)
 {
     this.writerContextService = writerContextService;
     this.writerContext        = writerContextService.GetWriterContext(type, Language);
     this.CurrentType          = type;
     this.currentWritingInfo   = new WritingInfo(type);
     UpdateWritingInfo(this.writerContext, this.currentWritingInfo);
     this.writingInfos = new List <WritingInfo>();
     this.writingInfos.Add(this.currentWritingInfo);
     WritePartialTypeAndNamespacesInternal(type, showCompilerGeneratedMembers, writeFullyQualifiedNames, writeDocumentation, fieldsToSkip);
     return(writingInfos);
 }
 public List <WritingInfo> WritePartialTypeAndNamespaces(TypeDefinition type, IWriterContextService writerContextService, Dictionary <string, ICollection <string> > fieldsToSkip = null)
 {
     this.writerContextService = writerContextService;
     this.writerContext        = writerContextService.GetWriterContext(type, Language);
     this.CurrentType          = type;
     this.currentWritingInfo   = new WritingInfo(type);
     UpdateWritingInfo(this.writerContext, this.currentWritingInfo);
     this.writingInfos = new List <WritingInfo>();
     this.writingInfos.Add(this.currentWritingInfo);
     WritePartialTypeAndNamespacesInternal(type, fieldsToSkip);
     return(writingInfos);
 }
Ejemplo n.º 9
0
 public List <WritingInfo> WriteTypeAndNamespaces(TypeDefinition type, IWriterContextService writerContextService, bool writeDocumentation, bool showCompilerGeneratedMembers, bool writeFullyQualifiedNames)
 {
     this.writerContextService = writerContextService;
     this.writerContext        = writerContextService.GetWriterContext(type, Language);
     this.CurrentType          = type;
     this.currentNamespace     = GetCurrentNamespace(type);
     this.currentWritingInfo   = new WritingInfo(type);
     UpdateWritingInfo(this.writerContext, this.currentWritingInfo);
     this.writingInfos = new List <WritingInfo>();
     this.writingInfos.Add(this.currentWritingInfo);
     WriteTypeAndNamespacesInternal(type, writeDocumentation, showCompilerGeneratedMembers, writeFullyQualifiedNames);
     return(writingInfos);
 }
		public List<WritingInfo> WriteTypeAndNamespaces(TypeDefinition type, IWriterContextService writerContextService, bool writeDocumentation, bool showCompilerGeneratedMembers, bool writeFullyQualifiedNames)
		{
			this.writerContextService = writerContextService;
			this.writerContext = writerContextService.GetWriterContext(type, Language);
			this.CurrentType = type;
			this.currentNamespace = GetCurrentNamespace(type);
			this.currentWritingInfo = new WritingInfo(type);
			UpdateWritingInfo(this.writerContext, this.currentWritingInfo);
			this.writingInfos = new List<WritingInfo>();
			this.writingInfos.Add(this.currentWritingInfo);
			WriteTypeAndNamespacesInternal(type, writeDocumentation, showCompilerGeneratedMembers, writeFullyQualifiedNames);
            return writingInfos;
		}
 public List <WritingInfo> WriteTypeAndNamespaces(TypeDefinition type, IWriterContextService writerContextService)
 {
     this.writerContextService = writerContextService;
     this.writerContext        = writerContextService.GetWriterContext(type, Language);
     this.CurrentType          = type;
     this.currentNamespace     = GetCurrentNamespace(type);
     this.currentWritingInfo   = new WritingInfo(type);
     UpdateWritingInfo(this.writerContext, this.currentWritingInfo);
     this.writingInfos = new List <WritingInfo>();
     this.writingInfos.Add(this.currentWritingInfo);
     WriteTypeAndNamespacesInternal(type);
     return(writingInfos);
 }
        public virtual List <WritingInfo> Write(IMemberDefinition member, IWriterContextService writerContextService)
        {
            this.writerContextService = writerContextService;
            this.writerContext        = writerContextService.GetWriterContext(member, Language);

            if (member is TypeDefinition)
            {
                this.CurrentType = member as TypeDefinition;
            }

            this.currentWritingInfo = new WritingInfo(member);
            UpdateWritingInfo(this.writerContext, this.currentWritingInfo);
            this.writingInfos = new List <WritingInfo>();
            this.writingInfos.Add(this.currentWritingInfo);

            WriteInternal(member);

            return(writingInfos);
        }
Ejemplo n.º 13
0
        public virtual List <WritingInfo> Write(IMemberDefinition member, IWriterContextService writerContextService, bool writeDocumentation, bool showCompilerGeneratedMembers = false)
        {
            this.writerContextService = writerContextService;
            this.writerContext        = writerContextService.GetWriterContext(member, Language);

            if (member is TypeDefinition)
            {
                this.CurrentType = member as TypeDefinition;
            }

            this.currentWritingInfo = new WritingInfo(member);
            UpdateWritingInfo(this.writerContext, this.currentWritingInfo);
            this.writingInfos = new List <WritingInfo>();
            this.writingInfos.Add(this.currentWritingInfo);

            WriteInternal(member, writeDocumentation, showCompilerGeneratedMembers);

            return(writingInfos);
        }
        public void WriteTypeDeclaration(TypeDefinition type, IWriterContextService writerContextService)
        {
            this.writerContextService = writerContextService;
            this.writerContext        = writerContextService.GetWriterContext(type, Language);
            this.currentWritingInfo   = new WritingInfo(type);

            WriteAttributes(type, new string[] { "System.Reflection.DefaultMemberAttribute" });

            membersStack.Push(type);
            if (this.ShouldWriteAsDelegate(type))
            {
                WriteDelegate(type);
                WriteLine();
                membersStack.Pop();
                return;
            }

            WriteTypeDeclaration(type);
            WriteLine();

            membersStack.Pop();
        }
        public virtual List<WritingInfo> Write(IMemberDefinition member, IWriterContextService writerContextService, bool writeDocumentation, bool showCompilerGeneratedMembers = false)
        {
            this.writerContextService = writerContextService;
            this.writerContext = writerContextService.GetWriterContext(member, Language);

            if (member is TypeDefinition)
            {
                this.CurrentType = member as TypeDefinition;
            }

            this.currentWritingInfo = new WritingInfo(member);
            UpdateWritingInfo(this.writerContext, this.currentWritingInfo);
            this.writingInfos = new List<WritingInfo>();
            this.writingInfos.Add(this.currentWritingInfo);

            WriteInternal(member, writeDocumentation, showCompilerGeneratedMembers);

            return writingInfos;
        }
		public List<WritingInfo> WritePartialTypeAndNamespaces(TypeDefinition type, IWriterContextService writerContextService, bool showCompilerGeneratedMembers, bool writeFullyQualifiedNames, bool writeDocumentation, Dictionary<string, ICollection<string>> fieldsToSkip = null)
		{
			this.writerContextService = writerContextService;
			this.writerContext = writerContextService.GetWriterContext(type, Language);
			this.CurrentType = type;
			this.currentWritingInfo = new WritingInfo(type);
			UpdateWritingInfo(this.writerContext, this.currentWritingInfo);
			this.writingInfos = new List<WritingInfo>();
			this.writingInfos.Add(this.currentWritingInfo);
			WritePartialTypeAndNamespacesInternal(type, showCompilerGeneratedMembers, writeFullyQualifiedNames, writeDocumentation, fieldsToSkip);
            return writingInfos;
		}
 public List<WritingInfo> WriteTypeAndNamespaces(TypeDefinition type, IWriterContextService writerContextService)
 {
     this.writerContextService = writerContextService;
     this.writerContext = writerContextService.GetWriterContext(type, Language);
     this.CurrentType = type;
     this.currentNamespace = GetCurrentNamespace(type);
     this.currentWritingInfo = new WritingInfo(type);
     UpdateWritingInfo(this.writerContext, this.currentWritingInfo);
     this.writingInfos = new List<WritingInfo>();
     this.writingInfos.Add(this.currentWritingInfo);
     WriteTypeAndNamespacesInternal(type);
     return writingInfos;
 }
 public List<WritingInfo> WritePartialTypeAndNamespaces(TypeDefinition type, IWriterContextService writerContextService, Dictionary<string, ICollection<string>> fieldsToSkip = null)
 {
     this.writerContextService = writerContextService;
     this.writerContext = writerContextService.GetWriterContext(type, Language);
     this.CurrentType = type;
     this.currentWritingInfo = new WritingInfo(type);
     UpdateWritingInfo(this.writerContext, this.currentWritingInfo);
     this.writingInfos = new List<WritingInfo>();
     this.writingInfos.Add(this.currentWritingInfo);
     WritePartialTypeAndNamespacesInternal(type, fieldsToSkip);
     return writingInfos;
 }
        public void WriteTypeDeclaration(TypeDefinition type, IWriterContextService writerContextService, bool showCompilerGeneratedMembers = false)
        {
            this.writerContextService = writerContextService;
            this.writerContext = writerContextService.GetWriterContext(type, Language);
            this.currentWritingInfo = new WritingInfo(type);

            WriteAttributes(type, new string[] { "System.Reflection.DefaultMemberAttribute" });

            membersStack.Push(type);
            if (type.IsDelegate())
            {
                WriteDelegate(type);
                WriteLine();
                membersStack.Pop();
                return;
            }

            WriteTypeDeclaration(type);
            WriteLine();

            membersStack.Pop();
        }
 public virtual void WriteTypeDeclarationsOnly(TypeDefinition member, IWriterContextService writerContextService, bool writeDocumentation, bool showCompilerGeneratedMembers = false)
 {
     this.writerContextService = writerContextService;
     this.writerContext = writerContextService.GetWriterContext(member, Language);
     this.currentWritingInfo = new WritingInfo(member);
     WriteTypeDeclarationsOnlyInternal(member, writeDocumentation, showCompilerGeneratedMembers);
 }
		public void WriteBody(IMemberDefinition member, IWriterContextService writerContextService, bool writeFullQualifiedNames)
		{
			this.writerContextService = writerContextService;
			this.writerContext = writerContextService.GetWriterContext(member, Language);
			this.currentWritingInfo = new WritingInfo(member);
			UpdateWritingInfo(this.writerContext, this.currentWritingInfo);
			this.writingInfos = new List<WritingInfo>();
			this.writingInfos.Add(this.currentWritingInfo);
			WriteBodyInternal(member, writeFullQualifiedNames);
		}