示例#1
0
 protected Declaration(Declaration declaration)
     : this()
 {
     Namespace         = declaration.Namespace;
     OriginalNamespace = declaration.OriginalNamespace;
     OriginalName      = declaration.OriginalName;
     name                = declaration.Name;
     Comment             = declaration.Comment;
     generationKind      = declaration.generationKind;
     Access              = declaration.Access;
     DebugText           = declaration.DebugText;
     IsIncomplete        = declaration.IsIncomplete;
     IsDependent         = declaration.IsDependent;
     CompleteDeclaration = declaration.CompleteDeclaration;
     DefinitionOrder     = declaration.DefinitionOrder;
     ExcludeFromPasses   = new HashSet <System.Type>(
         declaration.ExcludeFromPasses);
     PreprocessedEntities = new List <PreprocessedEntity>(
         declaration.PreprocessedEntities);
     OriginalPtr           = declaration.OriginalPtr;
     LineNumberStart       = declaration.LineNumberStart;
     LineNumberEnd         = declaration.LineNumberEnd;
     IsImplicit            = declaration.IsImplicit;
     AssociatedDeclaration = declaration.AssociatedDeclaration;
     DeclMap = declaration.DeclMap;
 }
示例#2
0
        AST.RawComment VisitRawComment(RawComment rawComment)
        {
            var _rawComment = new AST.RawComment
            {
                Kind      = ConvertRawCommentKind(rawComment.RawCommentKind),
                BriefText = rawComment.BriefText,
                Text      = rawComment.Text,
            };

            if (rawComment.FullComment != null)
            {
                _rawComment.FullComment = commentConverter.Visit(rawComment.FullComment)
                                          as AST.FullComment;
            }

            return(_rawComment);
        }
示例#3
0
 protected Declaration(Declaration declaration)
     : this()
 {
     Namespace           = declaration.Namespace;
     OriginalName        = declaration.OriginalName;
     name                = declaration.Name;
     Comment             = declaration.Comment;
     IgnoreFlags         = declaration.IgnoreFlags;
     Access              = declaration.Access;
     DebugText           = declaration.DebugText;
     IsIncomplete        = declaration.IsIncomplete;
     IsDependent         = declaration.IsDependent;
     CompleteDeclaration = declaration.CompleteDeclaration;
     DefinitionOrder     = declaration.DefinitionOrder;
     ExcludeFromPasses   = new HashSet <System.Type>(
         declaration.ExcludeFromPasses);
     PreprocessedEntities = new List <PreprocessedEntity>(
         declaration.PreprocessedEntities);
     OriginalPtr = declaration.OriginalPtr;
 }