Mike Krüger
8b7b3f708b
Fixed potential xml comment bug.
13 years ago
Mike Krüger
655bc99df4
Solved the specialized method definition case with a new version of
...
MemberDefiniton that works without user upcasts.
13 years ago
Mike Krüger
bd1811cc18
[TypeSystem] Specialized method now contains a flag specifying the
...
extension method mode.
There needs some distinction between extension methods calles foo.Ext
(); and Class.Ext(foo); even if it's the same method call - it's
different for code completion tooltips.
13 years ago
Mike Krüger
8972fdff77
Fixed completion bug.
13 years ago
Mike Krüger
4152fc765f
Added unit test that shows an issue with dynamic resolve results &
...
code completion.
13 years ago
Mike Krüger
92a62059de
Fixed constraint completion bug.
13 years ago
Mike Krüger
65706761dd
Fixed completion bug.
13 years ago
Mike Krüger
727911409d
Added GetDefinition () for the specialized method to get the
...
underlying (non specialized) method.
Should be in line with GetDefinition () in types - what's wrong with
that (I've a use case for that).
13 years ago
Mike Krüger
e29ddf05c8
Fixed bug in extract method.
13 years ago
Mike Krüger
a741ec0dd8
Introduce constant action can now replace more than one occurence
...
(like declare local variable action).
13 years ago
Mike Krüger
243b39310e
Fixed some convert foreach to for action bugs.
13 years ago
Mike Krüger
ce739a62bf
Fixed bug in declare local action.
13 years ago
Daniel Grunwald
e781363b78
Include node reformatting in the undo group
13 years ago
Daniel Grunwald
6e6cf735a3
ParameterCanBeDemotedIssue: remove GetInheritanceDepth.
...
It has the potential for a stack overflow when there's cyclic inheritance.
The sorting already done by GetAllBaseTypes() should be good enough.
13 years ago
Daniel Grunwald
3d96f7c7ff
Add fix action to ExplicitConversionInForEachIssue.
13 years ago
Daniel Grunwald
67d80c8834
CompareFloatWithEqualityOperatorIssue: don't show warning when comparing with infinities.
13 years ago
Daniel Grunwald
f31aa291ae
ParameterCanBeDemotedIssue: Remove 'ConstructHasLocalIndependentTyping'
...
This fixes false positives when the parameter is used within lambdas passed to generic methods (e.g. LINQ).
13 years ago
Daniel Grunwald
ab7b057e5d
CecilLoader: When loading a multi-module assembly, load the main module only.
...
We cannot merge all the types from multi-module assemblies into the same IAssembly because duplicate type names may exist.
13 years ago
Daniel Grunwald
463e5916ee
Merge pull request #136 from erik-kallen/sizeof
...
Improved handling of sizeof(x)
13 years ago
Erik Källén
867dc8b407
Improved handling of sizeof(x)
...
Resolving sizeof(x) will now return a specialized ResolveResult that contains information about which type's size is investigated. Also fixed a bug that caused sizeof() to not work when initializing fields. Also made sizeof(SomeEnum) resolve to the size of the underlying type which is illegal according to the spec, but mcs allows it.
13 years ago
Daniel Grunwald
b3c2b0ce9d
ResolveAtLocation: when resolving a method name within a delegate creation, produce MemberResolveResult instead of MethodGroupResolveResult.
13 years ago
Daniel Grunwald
9378cd19f0
Fix bug in ParameterizedType.VisitChildren() when replacing the generic type definition.
...
Fix some typos in XmlDoc.
13 years ago
Daniel Grunwald
f159810013
Remove unresolved references from new Alias*ResolveResult.
13 years ago
Mike Krüger
eae3641201
Corrected namespace.
13 years ago
Mike Krüger
11aa873815
Added alias resolve results that allows it to handle aliases more
...
easily. (for example showing them in the text editor UI or tooltips)
13 years ago
Mike Krüger
9c2c544061
Added a way to get the underlying method definition of a specialized
...
method.
13 years ago
Mike Krüger
2b83d7c4d0
Removed debug message
13 years ago
Mike Krüger
4e104efc65
ParameterCanBeDemotedIssue no longer tries to demote arrays to ILists.
13 years ago
Mike Krüger
ecc15dde9a
Fixed bug in type system conversion (interface members can shadow
...
other members) & implement interface action bug.
13 years ago
Mike Krüger
ee0479e2ff
Remove redundant empty argument list is now much less intrusive.
13 years ago
Mike Krüger
a3edf1ac62
Fixed position of unbound type arguments.
13 years ago
Mike Krüger
25445fcd55
DeclareLocalVariable can now remove redundant parens.
13 years ago
Mike Krüger
5c45761c90
Fixed variable inlining missing parentheses issues.
13 years ago
Mike Krüger
eab84734b2
Fixed bug in create constructor action & implemented create enum value
...
action.
13 years ago
Mike Krüger
91ee675380
Added some null checks.
13 years ago
Mike Krüger
9ad0a08e78
Fixed potential ArgumentOutOfRangeException.
13 years ago
Mike Krüger
e00a9b8696
Fixed member lookup bug.
13 years ago
Daniel Grunwald
52d116ea88
Allow calling FindReferences without IUnresolvedFile.
13 years ago
Daniel Grunwald
de48eb1b06
Fix unit test
13 years ago
Daniel Grunwald
7c7a2ad588
Fix ArgumentException in StatementsToInitializerConverter.
13 years ago
Daniel Grunwald
ba484d5a93
[OverloadResolution] Don't use specialized parameters of indexers or non-generic methods within generic methods for "more specific formal parameter" check; always use the original parameters like we do with generic methods.
13 years ago
Mike Krüger
16c7ed1863
Made GuessType methods public.
...
TODO: Improve this concept/move it to own class.
13 years ago
Mike Krüger
0845f3ee03
Fixed completion bug.
13 years ago
Mike Krüger
1e980caf9f
Fixed completion unit tests.
13 years ago
Daniel Grunwald
47c78a11a7
Merge pull request #134 from erik-kallen/dynamic-methodgroup-of-one
...
Resolver reports the wrong type when a dynamic call has only one applicable method.
13 years ago
Erik Källén
a069866ae9
Return ambiguous conversions when no most specific source and/or destination could be found.
13 years ago
Erik Källén
f186d27cc9
Return a CSharpInvocationResolveResult with the type overridden with Dynamic instead of a converted invocation
13 years ago
Erik Källén
32561557df
Look at implicit and explicit user-defined conversion operators at the same time when performing an explicit conversion
13 years ago
Erik Källén
1888b26a23
Merge branch 'upstream_master' into new-user-defined-operator-try
...
Conflicts:
ICSharpCode.NRefactory.CSharp/Resolver/CSharpConversions.cs
ICSharpCode.NRefactory.Tests/CSharp/Resolver/ExplicitConversionsTest.cs
13 years ago
Daniel Grunwald
e29ca30daf
More implicit conversion unit tests.
13 years ago