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
Daniel Grunwald
ea5e36c836
Fix icsharpcode/NRefactory#60 : Implicit type parameter conversion
13 years ago
Daniel Grunwald
b65637108b
Implemented C# cref parser.
13 years ago
Daniel Grunwald
93e2def893
Fix #75 : conversion between delegate types
13 years ago
Daniel Grunwald
ed0e4c5197
Fixed conversions from "dynamic" - these only exist from expressions, not from the type (this was causing subtle issues with type inference).
13 years ago
Daniel Grunwald
5592e889ab
Fixed bug when passing an extension method as a method group to a generic function.
13 years ago
Daniel Grunwald
cc35fcc606
Revert f01a4b2
and 58c4ec8
.
...
Fixed small issue in CSharpResolver.GetExtensionMethods: when type parameters are provided explicitly, use the specialized method for the eligibility check.
13 years ago
Mike Krüger
58c4ec8010
[Resolver] Fixed type inference use case.
...
Daniel: The fix may not be correct - it's hard to tell which side
effects that change will cause.
13 years ago
Mike Krüger
a4344c8737
Checked for possible null refrence exception.
13 years ago
Mike Krüger
f01a4b2c8d
[Resolver] Interfere extension method type arguments from the target
...
type if no parameter is given.
13 years ago
Daniel Grunwald
e62a04692b
Fixed resolving compile-time operations on enum types with an underlying type smaller than int. (always use unchecked context for the cast back to enum)
13 years ago
Daniel Grunwald
459a2ef9f5
Fixed bug resolving indexer parameter declarations (was introduced with #66 [ 9476183
]).
13 years ago
Daniel Grunwald
a7816c2f51
Fixed handling of user-defined conversions between primitive types.
...
Closes icsharpcode/NRefactory#68 .
13 years ago
Erik Källén
0bf9891a8e
ResolveResults for dynamic expressions
13 years ago
Daniel Grunwald
77283dc2f1
Merge minor changes from SharpDevelop repository (mostly additional documentation for ResolveResults).
13 years ago
Daniel Grunwald
5d2fee1b90
Add CompilerSettings class instead of using the one from Mono.CSharp.
...
Added ResolveResult-treeview to NR.Demo.
13 years ago
Daniel Grunwald
585ae50c2f
CSharpAstResolver: don't return the same ResolveResult for two different nodes.
...
(make clones when using caches)
Closes icsharpcode/NRefactory#46 .
13 years ago
Mike Krüger
fbc1cfd0c9
Fixed some failing unit tests.
13 years ago
Mike Krüger
3dc44639dd
[Resolver] Array initalizers no longer show up in ResolveAtLocation.
13 years ago
Erik Källén
951d9a6bb0
Fix for the issue that user-defined explicit conversions don't work.
13 years ago
Erik Källén
9476183889
Fix for the parameter identity in accessors issue.
13 years ago
Siegfried Pammer
a9d876904b
Implemented CSharpResolver.ResolveConditionFalse() for resolving operator false() calls.
...
Add message to ErrorResolveResult.
Expose CSharpOutputVisitor.PrintPrimitiveValue and CSharpConversions.IsImplicitReferenceConversion/IsBoxingConversion.
13 years ago