コード例 #1
0
 void AddCommentTags(ICompilationUnit cu, System.Collections.Generic.List <ICSharpCode.NRefactory.Parser.TagComment> tagComments)
 {
     foreach (ICSharpCode.NRefactory.Parser.TagComment tagComment in tagComments)
     {
         DomRegion tagRegion = new DomRegion(tagComment.StartPosition.Y, tagComment.StartPosition.X);
         var       tag       = new ICSharpCode.SharpDevelop.Dom.TagComment(tagComment.Tag, tagRegion, tagComment.CommentText);
         cu.TagComments.Add(tag);
     }
 }
コード例 #2
0
ファイル: Parser.cs プロジェクト: xuchuansheng/GenXSource
		void AddCommentTags(ICompilationUnit cu, System.Collections.Generic.List<ICSharpCode.NRefactory.Parser.TagComment> tagComments)
		{
			foreach (ICSharpCode.NRefactory.Parser.TagComment tagComment in tagComments) {
				DomRegion tagRegion = new DomRegion(tagComment.StartPosition.Y, tagComment.StartPosition.X);
				ICSharpCode.SharpDevelop.Dom.TagComment tag = new ICSharpCode.SharpDevelop.Dom.TagComment(tagComment.Tag, tagRegion);
				tag.CommentString = tagComment.CommentText;
				cu.TagComments.Add(tag);
			}
		}