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
3ac1e560ec
Fix icsharpcode/NRefactory#22 : Event accessors should be called add_X and remove_X
14 years ago
Daniel Grunwald
3215504223
Fix icsharpcode/NRefactory#20 : Copy virtual/override/static/etc. modifiers from properties/events to accessor methods.
14 years ago
Daniel Grunwald
3fbcf2f7d0
Add support for partial methods.
14 years ago
Daniel Grunwald
fe8e098a27
Fixed some FxCop warnings.
14 years ago
Daniel Grunwald
b416f38f78
CSharpAmbience: allow passing in a custom IOutputFormatter.
14 years ago
Daniel Grunwald
14bf452879
Rename InterfaceImplementations -> ImplementedInterfaceMembers.
14 years ago
Daniel Grunwald
ec225c160d
Fixed bugs related to ID strings.
14 years ago
Daniel Grunwald
ee92c68d5e
TypeParameterReference now resolves to a dummy type parameter instead of UnknownType when no ITypeParameter is available in the resolve context.
14 years ago
Daniel Grunwald
b374e40758
Don't insert space in front of brace if the brace is the first token in the line.
14 years ago
Daniel Grunwald
5f8dcf4f7a
Implement 'ToMemberReference()' and 'InterfaceImplementations' on specialized members.
14 years ago
Daniel Grunwald
a7245affe6
Fixed finding references to method group conversions.
14 years ago
Daniel Grunwald
c20807e31c
Fixed return type of members of generic enums.
14 years ago
Daniel Grunwald
822fda7e36
Handle T[] -> T* and string -> char* conversions in fixed statement initializers.
14 years ago
Daniel Grunwald
aa2e97f564
When copying type parameters into inner classes, re-use the same ITypeParameter instance.
14 years ago
Daniel Grunwald
57a59341a5
Revert "Fixed type system converter case reported from "erik-kallen"."
...
The bug was already fixed in fb0c2923; this patch was adding the parameters a second time.
This reverts commit c4dfb27626
.
14 years ago
Mike Krüger
c4dfb27626
Fixed type system converter case reported from "erik-kallen".
14 years ago
Daniel Grunwald
fb0c292380
Fix icsharpcode/NRefactory#13 - Indexer accessors do not get correct parameters.
14 years ago
Daniel Grunwald
5c9dfb9896
Fixed IUnresolvedTypeDefinition.Resolve() and IAssembly.GetTypeDefinition(IUnresolvedTypeDefinition) to always retrieve the correct version of the type definition for the compilation, even if the IUnresolvedTypeDefinition is a different version.
...
The two methods now return UnknownType/null if the IUnresolvedTypeDefinition does not belong to the assembly.
14 years ago
Daniel Grunwald
b4003145b3
Add MethodGroupResolveResult.GetEligibleExtensionMethods() method.
14 years ago
Daniel Grunwald
70e62f42a1
Fixed DefaultMemberReference for methods with parameters.
14 years ago
Daniel Grunwald
3b95e5a2e3
Fixed IsExplicitInterfaceImplementation.
...
Implemented IMember.InterfaceImplementations for explicitly implemented members.
14 years ago
Daniel Grunwald
3c6cbeeae7
Add IMember.UnresolvedMember property.
14 years ago
Daniel Grunwald
942b4f70ef
Move ConversionResoleResult to ICSharpCode.NRefactory.Semantics.
...
Boxing conversion for attribute arguments is now used consistently in C# type system and Cecil-loaded type system.
14 years ago
Daniel Grunwald
bfafe8b117
Fixed handling of constants in OverloadResolution.GetArgumentsWithConversions().
...
This fixes IAttribute.PositionalArguments when implicit numeric conversions are involved.
14 years ago
Daniel Grunwald
9af3c040f2
Fixed resolving compound assignment operators.
14 years ago
Daniel Grunwald
f1a1ab32ad
Added ResolverTest to consistency check and fixed some crashing bugs in the resolver.
14 years ago
Daniel Grunwald
73438b7288
Make CSharpResolveVisitor internal and expose CSharpAstResolver instead.
14 years ago
Daniel Grunwald
9d7c018fb2
Adjusted C# resolver to refactored type system.
14 years ago
Daniel Grunwald
54851a741f
C# Type System implementation
14 years ago
Daniel Grunwald
f9916d89ef
WIP: Type system refactoring.
14 years ago
Daniel Grunwald
f631199013
Type system refactoring: split unresolved/resolved type systems.
14 years ago
Daniel Grunwald
69360a2c1c
Implemented constraint inheritance.
14 years ago
Daniel Grunwald
57d55c651d
Fixed resolving simple names within a generic class that refer to a non-generic inner class.
14 years ago
Daniel Grunwald
0c3d5e06d7
Fix bug in ParameterListComparer: the method signatures "Method<T>(T a)" and "Method<S>(S b)" were considered unequal.
14 years ago
Daniel Grunwald
4d73e48488
Add GetEffectiveBaseClass() and GetEffectiveInterfaceSet() to ITypeParameter, and fixed a bug in DefaultTypeParameter.IsReferenceType().
14 years ago
Daniel Grunwald
e37dc4b6c7
Move ResolveResults to NR.Semantics
14 years ago
Daniel Grunwald
611c310eb2
Change IConstantValue API to use ResolveResult.
14 years ago
Daniel Grunwald
769c0ae2e0
Allow CecilProjectContent to be serialized. Add FastSerializer to NRefactory.Utils.
14 years ago
Daniel Grunwald
ea3e312438
Implemented grouping overloads by declared type.
...
Return overrides in most-derived class (necessary for determining the correct parameter names/IsOptional value), but keep them in the group where the virtual/abstract base method was.
14 years ago
Daniel Grunwald
5c585e110b
Apply license header to unit tests.
...
Add parser unit tests for ObjectCreateExpression.
14 years ago
Daniel Grunwald
d59fd2bc56
C# Resolver: preparations for lambda support
14 years ago
Daniel Grunwald
e17ba7462a
Add unit tests for TypeSystemAstBuilder.
14 years ago
Daniel Grunwald
18fb49ca7c
Add TypeKind enum.
14 years ago
Daniel Grunwald
bb2f93a24b
NRefactory bug fixes:
...
- Use IType.Equals() instead of == operator
- Change handling of partially parameterized types in IType.GetNestedTypes so that we don't leak type parameters from the wrong context
- Add support for unbound types to C# resolver (e.g. in attribute arguments)
- C# Parser: preserve variance modifier
- Ensure all interface members are marked as 'abstract'
- Add support for [TypeForwardedTo] and [ComImport] to CecilLoader.
14 years ago
Daniel Grunwald
89ba05f335
C# calls indexers "Item", not "Items".
14 years ago
Daniel Grunwald
97d096414b
Fixed GetDelegateInvokeMethod() for parameterized types.
...
Fixed copy constructor of DefaultMethod.
Fixed handling of "class" constraint in CecilLoader.
14 years ago
Daniel Grunwald
daf0f21607
Fixed some bugs related to conversions of type parameters.
14 years ago
Daniel Grunwald
5ae4d6070a
Conversions: add support for user-defined implicit conversions.
14 years ago