Daniel Grunwald
902f00ee7a
Add support for user-defined conversions starting with a constant expression conversion.
13 years ago
Daniel Grunwald
7eeb0348fb
Attempt that makes all the implicit conversions work
...
However, it introduces a problem with one of the explicit conversion test cases.
13 years ago
Daniel Grunwald
056a45df44
Fix a bug with type inference for nullables.
...
Simplify away the unnecessary portion of Mike's fix in df57e1d
, and add an additional test for it.
13 years ago
Mike Krüger
df57e1dad2
Fixed bug in type inference.
13 years ago
Daniel Grunwald
64b8217fb0
Don't produce NegativeRelationalExpressionIssue inside operator declarations
13 years ago
Erik Källén
e8131dca28
Implemented selection of best user-defined conversion operator according to §6.4.4 and §6.4.5
13 years ago
Mike Krüger
8cee8f532c
Fixed some compiler warnings.
13 years ago
Erik Källén
06703663f0
Fixed await with generic awaiter types.
13 years ago
erikkallen
c615c9f730
Make 'await' resolve as in the C# 5.0 language specification.
...
This means that the awaiter type must implement INotifyCompletion and can optionally implement ICriticalNotifyCompletion.
13 years ago
Mike Krüger
ae20e4929a
[Resolver] Fixed unexpected resolver crash.
...
Test Case:
Action foo = f => { f.FirstOrDefault(l=>); };
13 years ago
Daniel Grunwald
d4df4d9790
Fixed using implicit user-defined conversions as part of explicit conversions.
13 years ago
Daniel Grunwald
8f459c2460
Ensure IVariable.ConstantValue has the correct type when a local constant declaration involves an implicit conversion
...
E.g. "const int MAXSIZE = ushort.MaxValue;"
13 years ago
Daniel Grunwald
b500f468ac
Fix #120 : RedundantNamespaceUsageIssue bad handling of using aliases
13 years ago
Daniel Grunwald
27978f44c7
Add 'allowOptionalParameters' flag to MGRR.PerformOverloadResolution.
13 years ago
Daniel Grunwald
5e01d285d0
Fix InvalidCastException on invalid compile-time constant casts.
13 years ago
Daniel Grunwald
ee2bf2d209
Fix method-group conversions involving extension methods.
13 years ago
Daniel Grunwald
59cc439a30
Added delegate compatibility check to method-group conversions.
13 years ago
Mike Krüger
24e7b56613
Fixed cyclic constants.
13 years ago
Erik Källén
8d5536e2f6
Handle await expressions in find references.
13 years ago
Erik Källén
66f51bff3a
Added a separate AwaitResolveResult
13 years ago
Mike Krüger
989a895856
Improved last fix - gixe back the alias node & resolve result for the
...
import node.
13 years ago
Mike Krüger
f813ebec61
Resolve at location now works on using aliases.
13 years ago
Daniel Grunwald
80ba1b3dba
Always set ArrayCreateResolveResult.SizeArguments. Closes #111 .
13 years ago
Daniel Grunwald
42f5055b47
Fix potential NullReferenceException in GetAccessibleMembers() if GetDefinition() returns null
13 years ago
Daniel Grunwald
6b977c69a7
Add MemberLookup.GetAccessibleMembers().
13 years ago
Mike Krüger
12f2f2793e
Removed debug messages.
13 years ago
Daniel Grunwald
79db6fe54c
Change ISupportsInterning so that objects are interned immediately after they are created.
...
This lets us get rid of the hidden mutation due to interning; ISupportsInterning objects can now be truly immutable.
13 years ago
Daniel Grunwald
31474555b2
Avoid looking for inner classes when resolving a class constraint.
13 years ago
Daniel Grunwald
c403f389b7
Move the fix for #94 into CSharpConversions.IsConstraintConvertible.
...
Also added a couple of additional unit tests for constraint validation.
13 years ago
Daniel Grunwald
284a4cc795
Fix InvalidCastException in MemberLookup.RemoveInterfaceMembersHiddenByClassMembers
13 years ago
erikkallen
9c521f8992
Fixed issue with nullable types not being usable as generic arguments.
13 years ago
Daniel Grunwald
0b56b42bc8
Remove redundant call to ValidateMethodConstraints().
...
Fix demo application.
13 years ago
Daniel Grunwald
c3a31c9c81
Fix #92 : The resolver does not check type constraints on calls to generic methods
13 years ago
Daniel Grunwald
1f6c4f037e
Update solution-loading logic in ConsistencyCheck.
13 years ago
Daniel Grunwald
16aa0c6c28
Rename IParsedFile -> IUnresolvedFile to make clear it belongs to the unresolved type system.
13 years ago
Daniel Grunwald
62a8b20208
Fix icsharpcode/NRefactory#89 : explicit conversion of array to generic IList fails when array covariance is used.
13 years ago
Daniel Grunwald
26409db2bb
Implemented explicit conversions - invalid casts now resolve to Conversion.None.
13 years ago
Daniel Grunwald
eaba9798d3
Rename 'cu' to 'syntaxTree'.
13 years ago
Daniel Grunwald
979fa91a2e
Fix icsharpcode/NRefactory#88 : implicit conversion between type parameters.
...
Convert from T to U where T : class, U. Only T is known to be a reference type; U is not.
C# still classifies the conversion as a reference conversion.
13 years ago
Erik Källén
703889298e
Ensure that named argument instances are unique for dynamic invocations.
13 years ago
Daniel Grunwald
273178a141
Rename CompilationUnit to SyntaxTree.
13 years ago
Erik Källén
0af0137bdb
Use NamedArgumentResolveResult for dynamic invocations.
13 years ago
Daniel Grunwald
d6b4420940
Introduced NamedArgumentResolveResult.
13 years ago
Daniel Grunwald
6bd0bfc5a8
Add failing unit test for CompilationUnit.ConditionalSymbols.
13 years ago
Daniel Grunwald
60607bcc65
Fix icsharpcode/NRefactory#86 : method declaration with attributes fails to resolve since 2926e24
.
13 years ago
Daniel Grunwald
4513b6e57c
Avoid NullReferenceExceptions now that MethodGroupResolveResult.TargetResult can be null.
13 years ago
Erik Källén
916cc2a1f2
Fixed issues pointed out by Daniel.
13 years ago
Daniel Grunwald
6192d7a4b1
Documentation for MethodListWithDeclaringType
13 years ago
Erik Källén
ecd3de7ece
Implementation of feature
13 years ago
Erik Källén
ce5a42c4ee
Tests for the improved dynamic handling.
13 years ago