Mike Krüger
6d4a825084
Fixed some unit tests.
14 years ago
Mike Krüger
a81096dff8
Included interfaces in type parameter base types.
14 years ago
Mike Krüger
2bc61057e9
Fixed some completion unit tests.
...
I'm not 100% sure if that's the best solution fixing this, but makes
things easier for now.
14 years ago
Daniel Grunwald
fd91bdccb2
Fixed resolving non-generic classes that are nested within generic classes.
14 years ago
Daniel Grunwald
f043e30fbf
Fix ResolveVisitor.GetResolverStateBefore(): ensure that the resolver always registers the state before it caches a result.
14 years ago
Mike Krüger
ed86963b5a
Failed assertions now fail unit tests.
14 years ago
Mike Krüger
81cac5eabe
Fixed little code completion ast bug.
14 years ago
Mike Krüger
f3ea71ac68
Fixed some completion tests.
14 years ago
Mike Krüger
7f697b373b
Fixed resolver usage.
14 years ago
Mike Krüger
e96dbbd777
Added 'UnknownTypeResolveResult'.
...
Makes it easier to implement the 'add missing namespace import'
function.
14 years ago
Mike Krüger
0320a66587
Added monodevelop code completion tests.
14 years ago
Mike Krüger
5ee9b73053
Added missing unit test.
14 years ago
Mike Krüger
1c0ce1dc7c
Added default parameters for type parameter count.
14 years ago
Mike Krüger
f7b309420c
Merged with md master.
14 years ago
Daniel Grunwald
f76363144a
Merge NRefactory 7063203
into SharpDevelop repository.
14 years ago
Daniel Grunwald
7063203972
FieldDeclaration/EventDeclaration/VariableDeclarationStatement now resolve to 'void'.
...
Only the individual VariableInitializers will resolve to the field/event/variable.
Fixed several bugs in 'Find References'.
14 years ago
Daniel Grunwald
800b951c6d
Fixed bugs in ResolveVisitor:
...
- forgot scanning into ForEachStatement.InExpression when the variable type was not 'var'
- ProcessConversion() was called for Expression.Null
- made Resolve() internal because it hard to use correctly
TypeSystemAstBuilder: reverted Mike's change for nested types, it is incorrect for nested types within generic types.
14 years ago
Mike Krüger
b3d07d8493
Ported over the monodevelop completion engine to nrefactory.
14 years ago
Mike Krüger
f46609bcc8
Worked on basic nrefactory completion infrastructure.
14 years ago
Daniel Grunwald
8389d7add6
Use OperatorResolveResult for assignments.
14 years ago
Daniel Grunwald
9ddf9bc442
Combine C#-specific UnaryOperatorResolveResult/BinaryOperatorResolveResult and ConditionalOperatorResolveResult classes into a single language-independent OperatorResolveResult class.
14 years ago
Daniel Grunwald
4bbcf2dc11
Add "public ResolveResult Body { get; }" to LambdaResolveResult.
14 years ago
Mike Krüger
751b60194f
Shorten inner type names.
14 years ago
Mike Krüger
434ec17d9a
Correctly set kind of compound types.
14 years ago
Daniel Grunwald
177fb85a00
Fix infinite recursion when resolving the base type of "class Test : Test.Base { public class Base {} }"
14 years ago
Daniel Grunwald
475f8381ef
Make DefaultTypeDefinition.FullName cache thread-safe.
14 years ago
Mike Krüger
8c3899f134
Cached TypeDefiniton FullName.
...
This is required for the navigate to feature which checks the full
name as well as the name. Otherwise it would cause thousands of slow
string concats. Since the type system should be treaded as read only
namespaces & declaring type definitions can't change.
14 years ago
Mike Krüger
7b542f4eb2
Enabled async tests.
14 years ago
Mike Krüger
e4c70d4ba3
Added await/async support & updated mcs.
14 years ago
Mike Krüger
d91eb2c993
Print error information.
14 years ago
Daniel Grunwald
b7fcc55308
Re-enable resolver unit tests that failed due to the parser returning incorrect positions.
...
Fixed a bug that caused array initializers to fail to resolve when the parent variable initializer was not being resolved.
14 years ago
Daniel Grunwald
25176ef7d5
Fixed IMember.IsOverridable to return true for abstract members.
14 years ago
Mike Krüger
e4850e9847
Added async modifier.
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
24f8ae03d7
Add GetNewOffset() method to TextChangeEventArgs.
14 years ago
Daniel Grunwald
dc98befcce
Add IsDeleted and Equals() implementation to IDocumentLine.
14 years ago
Daniel Grunwald
43a8429d30
Disable resolver logging.
14 years ago
Daniel Grunwald
0c03236b95
Update AssemblyInfo for ICSharpCode.NRefactory.CSharp
14 years ago
Daniel Grunwald
813c8f5a46
Merge NRefactory 'b059dbcf413786069599d1686ac608150bd3f357' into SharpDevelop repository.
14 years ago
Daniel Grunwald
b059dbcf41
Fixed NullReferenceException when resolving group join clause.
14 years ago
Daniel Grunwald
ad1e90bcfd
Merge pull request #205 - Decompilation of lifted operators
...
This decompiles the C# generated code for lifted operators back to the original short form.
This can result in a significant improvement to the readability of the resulting code in some more complex functions because C# generates 2 temporary locals for lifted operators that can now be inlined.
As a byproduct the following improvements are also included: more thorough boolean logic decompilation; various project/solution file improvements; Ldloca support for variable splitting; simplified shift operators (already in icsharpcode branch); significant performance improvement for stack analysis of variables to offset the added complexity from ldloca support; decompilation of compound assignment with overloaded operators; some type analysis refactoring.
14 years ago
Daniel Grunwald
f0bfded6cb
C# AST: when setting a string property to null or an empty string, remove the corresponding identifier token.
14 years ago
Daniel Grunwald
9f988f6cb8
Adjust ILSpy to NRefactory changes.
14 years ago
Daniel Grunwald
6994e191f3
Merge NRefactory '88ebd0b9596edab0e916ff28ae53f6febbdff032' to ILSpy.
14 years ago
Daniel Grunwald
a73d7ba8db
Added async/await support to the resolver.
14 years ago
Daniel Grunwald
d0e9ce023b
CodeDomConvertVisitor: choose between CodeIndexerExpression and CodeArrayIndexerExpression.
...
DefaultParameter: fixed bug in interning - two parameters with different names were considered equal for interning.
14 years ago
Daniel Grunwald
7ff012f1a5
Fixed some issues in the CodeDomConvertVisitor.
14 years ago
Daniel Grunwald
fd8f8cf6cb
Adjust AST for async/await.
14 years ago
Daniel Grunwald
e4d1f545fd
Add CodeDomConvertVisitor.
14 years ago