Daniel Grunwald
6a93e919fb
Merge changes from SharpDevelop repository to NRefactory:
...
- SemanticHighlightingVisitor: bugfix
- TextLocation: add TypeConverter
- CecilLoader: remove incorrect FullName implementation (it was broken for generic types)
13 years ago
Daniel Grunwald
4324311718
Use IMember.Specialize() instead of 'new SpecializedMember()', and remove unnecessary upcasts.
13 years ago
Mike Krüger
8ca2d99ebc
Revert "Fixed type parameter substitution bug."
...
The old behaviour was correct.
This reverts commit c43a501ec4
.
13 years ago
Mike Krüger
c43a501ec4
Fixed type parameter substitution bug.
13 years ago
Mike Krüger
f4c20a1196
TypeArguments now work on DefaultResolvedTypeDefinition.
13 years ago
Mike Krüger
93baeb72fc
Revert "Added TypeParameters property to IType (for consistency with the"
...
This reverts commit 74e7818473
.
Conflicts:
ICSharpCode.NRefactory/TypeSystem/Implementation/AbstractResolvedTypeParameter.cs
13 years ago
Mike Krüger
984d2ca267
Added IsSpecialized to IMember & IsParameterized to IType to make it
...
easier to handle such cases without asking for the type of the
objects.
13 years ago
Mike Krüger
74e7818473
Added TypeParameters property to IType (for consistency with the
...
IMethod interface & makes usage easier).
13 years ago
Mike Krüger
295a70e721
Moved members of ParametrizedType to IType (for consistency with the
...
IMethod changes).
13 years ago
Mike Krüger
d19a6d2c96
Moved SpecializedMember property 'Substitution' to IMember and
...
SpecializedMethod property 'TypeArguments' to IMethod.
That should eliminate the need to upcast these objects & makes the
type system more flexible - that's needed for the
ReducedExtensionMethod model.
13 years ago
Mike Krüger
7479801ff9
Fixed ReducedFrom description.
13 years ago
Mike Krüger
8bd796eb7f
Revert "Revert "Implemented reduced method model.""
...
This reverts commit bdc1fde9d6
.
13 years ago
Mike Krüger
765d917d60
Revert "Revert "Implemented better way to handle extension method invocations.""
...
This reverts commit c26f61e813
.
13 years ago
Mike Krüger
c76240e934
Revert "Revert "[TypeSystem] Specialized method now contains a flag specifying the""
...
This reverts commit b758539431
.
13 years ago
Mike Krüger
b758539431
Revert "[TypeSystem] Specialized method now contains a flag specifying the"
...
This reverts commit bd1811cc18
.
Conflicts:
ICSharpCode.NRefactory.CSharp/Resolver/OverloadResolution.cs
13 years ago
Mike Krüger
c26f61e813
Revert "Implemented better way to handle extension method invocations."
...
This reverts commit d4afc75413
.
13 years ago
Mike Krüger
bdc1fde9d6
Revert "Implemented reduced method model."
...
This reverts commit aaf2b919f5
.
13 years ago
Mike Krüger
aaf2b919f5
Implemented reduced method model.
13 years ago
Mike Krüger
d4afc75413
Implemented better way to handle extension method invocations.
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
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
Erik Källén
4c1dbb9adc
Added information about built-in conversions before and after a user-defined conversion operator is applied
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
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
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
9c2c544061
Added a way to get the underlying method definition of a specialized
...
method.
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
Daniel Grunwald
c1b2b13b5d
Ambiguous conversions don't cause overload resolution to pick a different overload.
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
Mike Krüger
1d32c620f3
Added support for explicit optional parameters.
13 years ago
Daniel Grunwald
ca103100c6
Merge some bugfixes from SharpDevelop to NRefactory.
13 years ago
Daniel Grunwald
0142d78ba7
Update NRefactory version number to 5.3.0
13 years ago
Daniel Grunwald
72ee6eb22f
Copy over some fixes from SD5.
13 years ago
Daniel Grunwald
7710a534de
DefaultSolutionSnapshot.AddCompilation now registers the project content for GetProjectContent(string projectFileName)
13 years ago
Erik Källén
2acbd969aa
CecilLoader: Import fields with a DecimalConstantAttribute as 'const'
13 years ago
Daniel Grunwald
ad6ce1059f
Add Import() extension method for INamespace
13 years ago
Mike Krüger
fab565a92d
[Resolver] Local resolve result no longer returns a constant value for
...
parameters.
Even if the parameters have a default value it's wrong to assume that
this is always the default value. See the unreachable code issue test.
13 years ago
Mike Krüger
e7783d7808
Revert "[TypeSystem] Added a method to get only defined members with a filter"
...
This reverts commit aa324f018a
.
13 years ago
Mike Krüger
b728f40de6
Revert "Fix build."
...
This reverts commit 0df4bec580
.
13 years ago
Mike Krüger
0df4bec580
Fix build.
13 years ago
Mike Krüger
aa324f018a
[TypeSystem] Added a method to get only defined members with a filter
...
predicate.
TODO: Add similar methods for all members ?
13 years ago
Mike Krüger
461dd2beea
Added get parameter name method to parameter data provider.
13 years ago
Mike Krüger
eaad50e8be
[TypeSystem] Added C# style async modifier to methods.
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
Simon Lindgren
a64d00953d
[Utils] Improve error handling in CompositeFormatStringParser.
13 years ago
Daniel Grunwald
99bbb11ded
Add 'ResultOfAsyncCallShouldNotBeIgnored' issue.
13 years ago
Daniel Grunwald
211c6a1b05
Implemented ITypeParameter.EffectiveInterfaceSet
13 years ago
Daniel Grunwald
5e01d285d0
Fix InvalidCastException on invalid compile-time constant casts.
13 years ago