diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2011-06-24 00:31:17 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2011-06-24 00:31:17 +0400 |
commit | 7e4933d217b25b5ba24c5671f86867fb5c8a03b4 (patch) | |
tree | e76dd5945328d5ccc39015c52618890a72660bf9 /main/src/addins/AspNet | |
parent | d783c3468364f6c507bb0bb3f70e99d6478fa07e (diff) |
fix build.
Diffstat (limited to 'main/src/addins/AspNet')
3 files changed, 5 insertions, 5 deletions
diff --git a/main/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet.Gui/AspNetEditorExtension.cs b/main/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet.Gui/AspNetEditorExtension.cs index 2ddd931c38..0bc629f9c7 100644 --- a/main/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet.Gui/AspNetEditorExtension.cs +++ b/main/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet.Gui/AspNetEditorExtension.cs @@ -102,7 +102,7 @@ namespace MonoDevelop.AspNet.Gui } } - static IType CreateCodeBesideClass (DocumentInfo info, DocumentReferenceManager refman) + static ITypeDefinition CreateCodeBesideClass (DocumentInfo info, DocumentReferenceManager refman) { var v = new MemberListVisitor (info.AspNetDocument, refman); info.AspNetDocument.RootNode.AcceptVisit (v); diff --git a/main/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet.Gui/AspProjectDom.cs b/main/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet.Gui/AspProjectDom.cs index 09e5815d3d..8c01e7c908 100644 --- a/main/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet.Gui/AspProjectDom.cs +++ b/main/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet.Gui/AspProjectDom.cs @@ -52,9 +52,9 @@ namespace MonoDevelop.AspNet.Gui { if (type == null) return null; - var cu =info.ParsedDocument.CompilationUnit; - var firstType = cu.Types.FirstOrDefault (); - if (type.IsPartial && firstType != null && firstType.FullName == type.FullName) { + var cu = info.ParsedDocument; + var firstType = cu.TopLevelTypeDefinitions.FirstOrDefault (); + if (firstType != null && firstType.FullName == type.FullName) { if (constructedType != null) return constructedType; constructedType = new CompoundTypeDefinition (); diff --git a/main/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet.Gui/ILanguageCompletionBuilder.cs b/main/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet.Gui/ILanguageCompletionBuilder.cs index 5a6604fb3f..2cfcbc6c12 100644 --- a/main/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet.Gui/ILanguageCompletionBuilder.cs +++ b/main/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet.Gui/ILanguageCompletionBuilder.cs @@ -118,7 +118,7 @@ namespace MonoDevelop.AspNet.Gui public IList<ITypeResolveContext> References { get; set; } public IEnumerable<string> Imports { get; private set; } - public IType CodeBesideClass { get; set; } + public ITypeDefinition CodeBesideClass { get; set; } public string BaseType { get { |