diff options
author | Lluis Sanchez <lluis@novell.com> | 2007-01-30 22:33:36 +0300 |
---|---|---|
committer | Lluis Sanchez <lluis@novell.com> | 2007-01-30 22:33:36 +0300 |
commit | 054eaafe2fdef9485d763698fc0dde7456865b38 (patch) | |
tree | 1eb347da182e979d1cfb038d743251404691e3f6 /Extras/CSharpBinding | |
parent | 94f3e8675dbc1dda20e7e5e1f0311bf0e1b4c01f (diff) |
* Parser/LanguageItemVisitor.cs: Properly resolve calls to local
instance methods.
svn path=/trunk/monodevelop/; revision=71995
Diffstat (limited to 'Extras/CSharpBinding')
-rw-r--r-- | Extras/CSharpBinding/ChangeLog | 5 | ||||
-rw-r--r-- | Extras/CSharpBinding/Parser/LanguageItemVisitor.cs | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/Extras/CSharpBinding/ChangeLog b/Extras/CSharpBinding/ChangeLog index 3a9c78b038..ab5a052f5f 100644 --- a/Extras/CSharpBinding/ChangeLog +++ b/Extras/CSharpBinding/ChangeLog @@ -1,5 +1,10 @@ 2007-01-30 Lluis Sanchez Gual <lluis@novell.com> + * Parser/LanguageItemVisitor.cs: Properly resolve calls to local + instance methods. + +2007-01-30 Lluis Sanchez Gual <lluis@novell.com> + * Parser/CSharpVisitor.cs: When creating an enum, explicitely add the System.Enum base class. Make enum files "const". * Parser/Resolver.cs: Removed some debug code. Show enum fields only diff --git a/Extras/CSharpBinding/Parser/LanguageItemVisitor.cs b/Extras/CSharpBinding/Parser/LanguageItemVisitor.cs index 3e1af31144..c141858884 100644 --- a/Extras/CSharpBinding/Parser/LanguageItemVisitor.cs +++ b/Extras/CSharpBinding/Parser/LanguageItemVisitor.cs @@ -58,8 +58,12 @@ namespace CSharpBinding.Parser return null; } IReturnType type = new ReturnType(resolver.CallingClass.FullyQualifiedName); - resolver.ShowStatic = true; + resolver.ShowStatic = false; ArrayList methods = resolver.SearchMethod(type, id); + if (methods.Count == 0) { + resolver.ShowStatic = true; + methods = resolver.SearchMethod(type, id); + } resolver.ShowStatic = false; if (methods.Count <= 0) { // It may be a call to a constructor |