[mono/monodevelop] 2c386c84: [CSharpBinding] Ensure that the syntax tree always matches the
| Newsgroups | gmane.comp.gnome.mono.patches |
|---|---|
| Message-ID | <00000141bfd18898-db78d5c5-3364-4498-8ee7-f2a4e4854d18-000000@email.amazonses.com> |
Branch: refs/heads/master
Home: https://github.com/mono/monodevelop
Compare: https://github.com/mono/monodevelop/compare/bba64efa1574...2c386c845949
Commit: 2c386c845949a6e56e8790919cdb664fb00e5fb0
Author: Mike Krüger <[email protected]> (mkrueger)
Date: 2013-10-16 05:49:02 GMT
URL: https://github.com/mono/monodevelop/commit/2c386c845949a6e56e8790919cdb664fb00e5fb0
[CSharpBinding] Ensure that the syntax tree always matches the
resolver root node inside the refactoring context.
Changed paths:
M main/src/addins/CSharpBinding/MonoDevelop.CSharp.Refactoring.CodeActions/MDRefactoringContext.cs
Modified: main/src/addins/CSharpBinding/MonoDevelop.CSharp.Refactoring.CodeActions/MDRefactoringContext.cs
===================================================================
@@ -70,7 +70,7 @@ public class MDRefactoringContext : RefactoringContext, IRefactoringContext
public SyntaxTree Unit {
get {
Debug.Assert (!IsInvalid);
- return ParsedDocument.GetAst<SyntaxTree> ();
+ return Resolver.RootNode as SyntaxTree;
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches