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
Daniel Grunwald
731ddf7c39
Add ConversionResolveResult.CheckForOverflow
13 years ago
Simon Lindgren
e60567ab86
[Resolver] Give the value parameter a domregion close to the setter or adder.
...
Previously the value parameters were given the start and end location (0, 0) which was problematic for the
FindReferences class which uses this information to decide if two variables are the same when finding references.
13 years ago
Daniel Grunwald
180ed85c85
Implemented IUnresolvedMember.Resolve().
13 years ago
Mike Krüger
a270f6a9d3
[Resolver] ResolveAtLocation can now postpone the creation of
...
compilations.
13 years ago
Mike Krüger
293af2e2c9
[Resolver] Fixed resolve at location bug.
13 years ago
Daniel Grunwald
282d3c3423
Fix icsharpcode/NRefactory#32 : ResolveResult for anonymous type creation
13 years ago
Daniel Grunwald
4d07b33b44
CSharpAstResolver now can resolve type members even when no parsedFile is specified.
...
This is useful for analyzing generated code that does not have accurate StartLocation/EndLocation assigned.
13 years ago
Mike Krüger
1ade7c4996
[Resolver] Fixed using statement.
13 years ago
Daniel Grunwald
4fe7c72b16
Fixed context for determining accessibility of protected inner classes when resolving a base type reference (NameLookupTests.InheritFromProtectedInnerClassTest)
13 years ago
Mike Krüger
063d0f569c
Renamed named expression identifier -> name.
13 years ago
Mike Krüger
5dbe3654f5
[Ast] Renamed named argument expression identifier -> name.
13 years ago
Mike Krüger
0cbca24882
Added whitespace and text node.
...
They are needed anyways, now the ast should be theretically round-trip
complete.
14 years ago
Mike Krüger
c7e1236c5a
Added NewLine ast node.
14 years ago
Mike Krüger
3ccf18d3bd
ResolveAtLocation now uses resolve visitor navigator.
14 years ago
Daniel Grunwald
4f47170535
Fixed type inference bug introduced in 2e40a34
- array covariance was ignored.
14 years ago
Mike Krüger
bcf36deae2
Fixed find type parameter references.
14 years ago
Mike Krüger
99270db23e
Fixed type parameter naming.
14 years ago
Daniel Grunwald
3915a4ccb1
Add IsEligibleExtensionMethod to public API.
14 years ago
Daniel Grunwald
9771b6db8f
Fix icsharpcode/NRefactory#33 : Determining if a ThisResolveResult represents this. or base.
14 years ago
Daniel Grunwald
8d0abbe870
Fix icsharpcode/NRefactory#30 : Target of extension method invocation
14 years ago
Daniel Grunwald
d4dd1648e8
Implemented the new options for overridden members in FindReferences.
14 years ago
Daniel Grunwald
eab8372365
Fixed resolver crash when resolving the arguments of an ObjectCreateExpression with unresolved type (e.g. due to missing using).
14 years ago
Daniel Grunwald
2e40a3483b
FindReferences: API idea for new options
14 years ago
Daniel Grunwald
777be39cca
Rewrite of the substitution logic in SpecializedMember.
...
Specializing an already-specialized member now produces the same result as performing the two specializations in a single step.
14 years ago
Daniel Grunwald
bf42e08dd4
Add support for IReadOnlyList<T>.
14 years ago
Daniel Grunwald
e213758ec7
Replace LazyInit.ReadBarrier() with LazyInit.VolatileRead().
14 years ago
mike
29da952623
Fixed some warnings.
14 years ago
Daniel Grunwald
d338acc553
Fix icsharpcode/NRefactory#18 : ResolveResult for object creation
14 years ago
Daniel Grunwald
ab024b9ddc
Fix icsharpcode/NRefactory#28 : Identity of lambda parameters
...
Revert change regarding TypeDeclaration.ClassType; using derived nested classes / factory methods is inconsistent API with all other AST nodes.
If we want to save that bit of memory, we could store ClassType in the flags instead (there's about 20 bits free), although I think it won't matter since TypeDeclaration is a relatively rare node.
14 years ago