~ubuntu-branches/ubuntu/hoary/monodevelop/hoary

« back to all changes in this revision

Viewing changes to src/Main/Base/Internal/Parser/Implementations/AbstractCompilationUnit.cs

  • Committer: Bazaar Package Importer
  • Author(s): Brandon Hale
  • Date: 2004-10-07 11:51:11 UTC
  • Revision ID: james.westby@ubuntu.com-20041007115111-pxcqnwfxyq5mhcx5
Tags: 0.5.1-3
Use dh_netdeps in debian/rules and debian/control

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// <file>
 
2
//     <copyright see="prj:///doc/copyright.txt"/>
 
3
//     <license see="prj:///doc/license.txt"/>
 
4
//     <owner name="Mike Krüger" email="mike@icsharpcode.net"/>
 
5
//     <version value="$version"/>
 
6
// </file>
 
7
using System;
 
8
using System.Collections;
 
9
using System.Collections.Specialized;
 
10
 
 
11
namespace MonoDevelop.Internal.Parser
 
12
{
 
13
        public class FoldingRegion
 
14
        {
 
15
                string  name;
 
16
                IRegion region;
 
17
                
 
18
                public string Name {
 
19
                        get {
 
20
                                return name;
 
21
                        }
 
22
                }
 
23
                
 
24
                public IRegion Region {
 
25
                        get {
 
26
                                return region;
 
27
                        }
 
28
                }
 
29
                
 
30
                public FoldingRegion(string name, IRegion region)
 
31
                {
 
32
                        this.name = name;
 
33
                        this.region = region;
 
34
                }
 
35
        }
 
36
        
 
37
        [Serializable]
 
38
        public abstract class AbstractCompilationUnit : ICompilationUnit
 
39
        {
 
40
                protected IUsingCollection usings = new IUsingCollection();
 
41
                protected ClassCollection classes = new ClassCollection();
 
42
                protected AttributeSectionCollection attributes = new AttributeSectionCollection();
 
43
                protected bool errorsDuringCompile = false;
 
44
                protected object tag               = null;
 
45
                protected ArrayList foldingRegions = new ArrayList();
 
46
                protected string erroroutput = String.Empty;
 
47
                
 
48
                public bool ErrorsDuringCompile {
 
49
                        get {
 
50
                                return errorsDuringCompile;
 
51
                        }
 
52
                        set {
 
53
                                errorsDuringCompile = value;
 
54
                        }
 
55
                }
 
56
 
 
57
                public string ErrorOutput {
 
58
                        get {
 
59
                                return erroroutput;
 
60
                        }
 
61
                        set {
 
62
                                erroroutput = value;
 
63
                        }
 
64
                }
 
65
                
 
66
                public object Tag {
 
67
                        get {
 
68
                                return tag;
 
69
                        }
 
70
                        set {
 
71
                                tag = value;
 
72
                        }
 
73
                }
 
74
                
 
75
                public virtual IUsingCollection Usings {
 
76
                        get {
 
77
                                return usings;
 
78
                        }
 
79
                }
 
80
 
 
81
                public virtual AttributeSectionCollection Attributes {
 
82
                        get {
 
83
                                return attributes;
 
84
                        }
 
85
                }
 
86
 
 
87
                public virtual ClassCollection Classes {
 
88
                        get {
 
89
                                return classes;
 
90
                        }
 
91
                }
 
92
                
 
93
                public ArrayList FoldingRegions {
 
94
                        get {
 
95
                                return foldingRegions;
 
96
                        }
 
97
                }
 
98
 
 
99
                public abstract CommentCollection MiscComments {
 
100
                        get;
 
101
                }
 
102
 
 
103
                public abstract CommentCollection DokuComments {
 
104
                        get;
 
105
                }
 
106
 
 
107
                public abstract TagCollection TagComments {
 
108
                        get;
 
109
                }
 
110
        }
 
111
}