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
Daniel Grunwald
4a6a43d0d1
Change output path - build everything into \bin\Debug in NRefactory directory (not into ICSharpCode.NRefactory subdirectory).
13 years ago
Daniel Grunwald
7a3b25b4dc
Add WriteTextTo() method to ITextSource.
13 years ago
Daniel Grunwald
9a9485a49d
Add ProjectReference class to NRefactory to simplify creating the type system for a solution with multiple projects.
13 years ago
Daniel Grunwald
087aee7fe8
Simplify parser API.
13 years ago
Daniel Grunwald
26409db2bb
Implemented explicit conversions - invalid casts now resolve to Conversion.None.
13 years ago
Daniel Grunwald
d4372bf954
Add DefaultAttribute.
13 years ago
Daniel Grunwald
fb4436499e
Remove outdated code contracts.
13 years ago
Daniel Grunwald
d6b4420940
Introduced NamedArgumentResolveResult.
13 years ago
Daniel Grunwald
6bd0bfc5a8
Add failing unit test for CompilationUnit.ConditionalSymbols.
13 years ago
Daniel Grunwald
8728c08c68
Add project configurations for .NET 4.5.
13 years ago
Daniel Grunwald
3f782ce21c
Add ITypeDefinition.GetInterfaceImplementation().
13 years ago
Daniel Grunwald
7d5f1e0885
Make CecilResolvedAttribute.DecodeBlob() more robust.
...
Avoid exception when arguments types are unavailable and return ErrorResolveResult instead.
13 years ago
Daniel Grunwald
7db1cbe11e
Merge NRefactory changes from SharpDevelop repository:
...
- Add CecilLoader.OnEntityLoaded callback
- Fixed thread-safety of lazy-loaded cecil type system.
- Add AstNodeCollection.AcceptVisitor method
13 years ago