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
Daniel Grunwald
59cc439a30
Added delegate compatibility check to method-group conversions.
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
980a367bad
Merged some changes from SharpDevelop to NRefactory.
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
Daniel Grunwald
f7d8e87183
Fix race condition caused by freezing cecil-loaded assemblies too late.
13 years ago
Daniel Grunwald
1098051271
Fix icsharpcode/NRefactory#110 : CecilLoader fails on System.Data v2.0.50727
13 years ago
Daniel Grunwald
6682aa6f92
NRefactory changes from SharpDevelop: add IDocument.FileName and IAssembly.FullAssemblyName,
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
d0bed831ae
Add a mechanism to the FastSerializer that allows us to invalidate cached project contents when fixing a bug in one of the type system loaders.
13 years ago
Daniel Grunwald
31474555b2
Avoid looking for inner classes when resolving a class constraint.
13 years ago
Daniel Grunwald
69c1e6e6de
Use custom GetHashCode() implementation in XmlDocumentationProvider as the hash codes may get serialized.
...
The normal .NET string.GetHashCode() isn't guaranteed to be stable across multiple runs of the program (e.g. with .NET 4.5 hash randomization).
13 years ago
Mike Krüger
3dbba420eb
[Resolver] Fixed infinite loop issue when a type inherits from type
...
parameter.
13 years ago
Mike Krüger
a1bcb54747
[Semantics] Added test case for nullable constant value / fixed last
...
fix.
13 years ago
Mike Krüger
3acaf5eca2
[Semantic] Handled default parameter value conversion in default
...
unresolved parameter.
13 years ago
Mike Krüger
2733a83a79
[Semantics] ConversionResolveResult: For nullable conversions return
...
the constant value of the input resolve result. IMHO ConstantValue ==
null is an error for example for int? i = 1; case. The constant value
should be '1' there.
13 years ago
Daniel Grunwald
e2eef883e1
Add 'HasBody' property to IMethod. Closes #100 .
13 years ago
Daniel Grunwald
aa55c206e0
Add AbstractUnresolvedEntity.Clone() method.
13 years ago
Simon Lindgren
408b29847d
[TypeSystem] Don't consider non-public members for interface implementors.
13 years ago
Daniel Grunwald
40bbafda16
Set NET_4_0 preprocessor symbol for mcs.
...
Rename "NET45" to "NET_4_5" to be consistent with mcs and Mono.Cecil.
13 years ago
Daniel Grunwald
810c03a582
NRefactory 5.2.0 release
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