~ubuntu-branches/ubuntu/oneiric/monodevelop/oneiric

« back to all changes in this revision

Viewing changes to src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet.Gui/ILanguageCompletionBuilder.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2011-06-27 17:03:13 UTC
  • mto: (1.8.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 54.
  • Revision ID: james.westby@ubuntu.com-20110627170313-6cvz3s19x6e9hqe9
ImportĀ upstreamĀ versionĀ 2.5.92+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
                public string LocalDocument { get; set; }
55
55
                public ParsedDocument ParsedLocalDocument { get; set; }
56
56
                public int CaretPosition { get; set; }
 
57
                public int OriginalCaretPosition { get; set; }
 
58
                public MonoDevelop.Ide.Gui.Document HiddenDocument { get; set; }
 
59
                
 
60
                public List<OffsetInfo> OffsetInfos = new List<OffsetInfo> ();
 
61
                
 
62
                public class OffsetInfo 
 
63
                {
 
64
                        public int FromOffset {
 
65
                                get;
 
66
                                private set;
 
67
                        }
 
68
 
 
69
                        public int ToOffset {
 
70
                                get;
 
71
                                private set;
 
72
                        }
 
73
 
 
74
                        public int Length {
 
75
                                get;
 
76
                                private set;
 
77
                        }
 
78
                        
 
79
                        public OffsetInfo (int fromOffset, int toOffset, int length)
 
80
                        {
 
81
                                this.FromOffset = fromOffset;
 
82
                                this.ToOffset = toOffset;
 
83
                                this.Length = length;
 
84
                        }
 
85
                }
 
86
                
 
87
                public void AddTextPosition (int fromOffset, int toOffset, int length)
 
88
                {
 
89
                        OffsetInfos.Add (new OffsetInfo (fromOffset, toOffset, length));
 
90
                }
57
91
        }
58
92
        
59
93
        /// <summary>
61
95
        /// </summary>
62
96
        public class DocumentInfo
63
97
        {
64
 
                public DocumentInfo (AspNetParsedDocument aspNetParsedDocument, IEnumerable<string> imports,
 
98
                public DocumentInfo (ProjectDom dom, AspNetParsedDocument aspNetParsedDocument, IEnumerable<string> imports,
65
99
                                     IList<ProjectDom> references)
66
100
                {
 
101
                        this.Dom = dom;
67
102
                        this.AspNetDocument = aspNetParsedDocument;
68
103
                        this.Imports = imports;
69
104
                        this.References = references;
74
109
                
75
110
                IType codeBesideClass;
76
111
                
 
112
                public ProjectDom Dom { get; private set; }
77
113
                public AspNetParsedDocument AspNetDocument { get; private set; }
78
114
                public ParsedDocument ParsedDocument { get; set; }
79
115
                public List<ExpressionNode> Expressions { get; private set; }
141
177
                
142
178
                ParsedDocument BuildDocument (DocumentInfo info, TextEditorData textEditorData);
143
179
                
144
 
                LocalDocumentInfo BuildLocalDocument (DocumentInfo info, TextEditorData textEditorData, string expressionText, string textAfterCaret, 
145
 
                        bool isExpression);
146
 
                
147
 
                ICompletionDataList HandlePopupCompletion (MonoDevelop.Ide.Gui.Document document, DocumentInfo info, 
148
 
                        LocalDocumentInfo localInfo, ProjectDom dom);
149
 
                ICompletionDataList HandleCompletion (MonoDevelop.Ide.Gui.Document document, DocumentInfo info, 
150
 
                        LocalDocumentInfo localInfo, ProjectDom dom, char currentChar, ref int triggerWordLength);
151
 
                IParameterDataProvider HandleParameterCompletion (MonoDevelop.Ide.Gui.Document document, DocumentInfo info,
152
 
                        LocalDocumentInfo localInfo, ProjectDom dom, char completionChar);
 
180
                ICompletionWidget CreateCompletionWidget (MonoDevelop.Ide.Gui.Document realDocument, LocalDocumentInfo localInfo);
 
181
                
 
182
                LocalDocumentInfo BuildLocalDocument (DocumentInfo info, TextEditorData textEditorData, string expressionText, string textAfterCaret, bool isExpression);
 
183
                
 
184
                ICompletionDataList HandlePopupCompletion (MonoDevelop.Ide.Gui.Document realDocument, DocumentInfo info, LocalDocumentInfo localInfo);
 
185
                ICompletionDataList HandleCompletion (MonoDevelop.Ide.Gui.Document realDocument, CodeCompletionContext completionContext, DocumentInfo info, LocalDocumentInfo localInfo, char currentChar, ref int triggerWordLength);
 
186
                IParameterDataProvider HandleParameterCompletion (MonoDevelop.Ide.Gui.Document realDocument, CodeCompletionContext completionContext, DocumentInfo info, LocalDocumentInfo localInfo, char completionChar);
 
187
                bool GetParameterCompletionCommandOffset (MonoDevelop.Ide.Gui.Document realDocument, DocumentInfo info, LocalDocumentInfo localInfo, out int cpos);
153
188
        }
154
189
        
155
190
        public static class LanguageCompletionBuilderService