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
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
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
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
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
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
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
Daniel Grunwald
99bbb11ded
Add 'ResultOfAsyncCallShouldNotBeIgnored' issue.
13 years ago
Daniel Grunwald
211c6a1b05
Implemented ITypeParameter.EffectiveInterfaceSet
13 years ago
Mike Krüger
97d224bbbd
Fixed busy manager usage.
13 years ago
Mike Krüger
24e7b56613
Fixed cyclic constants.
13 years ago
Mike Krüger
2e2cecfeb7
Fixed little issue in interning provider.
13 years ago
Daniel Grunwald
80ba1b3dba
Always set ArrayCreateResolveResult.SizeArguments. Closes #111 .
13 years ago
Daniel Grunwald
359bb7b848
GetClassTypeReference: remove redundant code
13 years ago
Mike Krüger
ab6f86fa9c
[TypeSystem] GetClassTypeReference: Fixed CurrentAssembly == null
...
case.
13 years ago
Daniel Grunwald
bf62230dc1
Rename 'ExtensionMethods' to 'TypeSystemExtensions'.
...
This avoids a naming conflict with other extension method classes in the solution.
13 years ago
Daniel Grunwald
d01a22564a
Implement ICompilationProvider in a few more places where we have the compilation available.
13 years ago
Daniel Grunwald
b37698b39b
ICompilation.Import(IType): added support for importing open generic types
...
Renamed 'IResolved' to 'ICompilationProvider'.
13 years ago
Mike Krüger
a8f4a606e2
[TypeSystem] Added old GetTypeDefinition method for compatibility
...
reasons.
13 years ago
Daniel Grunwald
5670248de8
Add 'FullTypeName' struct, and use it to represent type names.
...
Contains some breaking API changes:
- Renamed 'FullNameAndTypeParameterCount' to 'TopLevelTypeName'.
- IAssembly.GetTypeDefinition(string, string, int) -> IAssembly.GetTypeDefinition(TopLevelTypeName)
- IAssembly.GetTypeDefinition(IUnresolvedTypeDefinition) -> IAssembly.GetTypeDefinition(FullTypeName)
- GetClassTypeReference now supports nested types
13 years ago