Daniel Grunwald
9771b6db8f
Fix icsharpcode/NRefactory#33 : Determining if a ThisResolveResult represents this. or base.
14 years ago
Daniel Grunwald
8d0abbe870
Fix icsharpcode/NRefactory#30 : Target of extension method invocation
14 years ago
Daniel Grunwald
d4dd1648e8
Implemented the new options for overridden members in FindReferences.
14 years ago
Daniel Grunwald
2e40a3483b
FindReferences: API idea for new options
14 years ago
Daniel Grunwald
777be39cca
Rewrite of the substitution logic in SpecializedMember.
...
Specializing an already-specialized member now produces the same result as performing the two specializations in a single step.
14 years ago
Daniel Grunwald
d338acc553
Fix icsharpcode/NRefactory#18 : ResolveResult for object creation
14 years ago
Daniel Grunwald
ab024b9ddc
Fix icsharpcode/NRefactory#28 : Identity of lambda parameters
...
Revert change regarding TypeDeclaration.ClassType; using derived nested classes / factory methods is inconsistent API with all other AST nodes.
If we want to save that bit of memory, we could store ClassType in the flags instead (there's about 20 bits free), although I think it won't matter since TypeDeclaration is a relatively rare node.
14 years ago
Daniel Grunwald
f74bf908bc
Make AstNode freezable.
14 years ago
Daniel Grunwald
55f858efb2
Fix icsharpcode/NRefactory#26 : Static methods are reported as having "this" as the target
14 years ago
Daniel Grunwald
c27f57f4a1
Fix icsharpcode/NRefactory#25 : OperatorResolveResult.IsLiftedOperator for unary operators
14 years ago
Daniel Grunwald
b491ea85c3
Rename Conversions to CSharpConversions.
14 years ago
Daniel Grunwald
cf331bb4af
Fixed resolving partial method definitions.
14 years ago
Daniel Grunwald
24d2d195f9
Use specialized method for MethodGroupConversion. icsharpcode/NRefactory#21
14 years ago
Daniel Grunwald
a731b9371e
Fix icsharpcode/NRefactory#19 : OperatorResolveResult.IsLiftedOperator is false for lifted built-in operators.
14 years ago
Mike Krüger
cbd5a4672d
Enabled working unit test.
14 years ago
Mike Krüger
12c0472ece
Fixed incorrect parser positions in FixedStatement test.
14 years ago
Mike Krüger
5a9d33f74b
Fixed attribute empty arglist parens.
14 years ago
Mike Krüger
f1fa0e0526
Enabled working unit test.
14 years ago
Mike Krüger
d6d1f08492
Fixed ignored unit test.
14 years ago
Daniel Grunwald
3e7244197c
Fix icsharpcode/NRefactory#16 : Resolve the GetEnumerator call inside a foreach
14 years ago
mike
b13dad1436
Resolve visitor change: If the type of an object create expression
...
can't be resolved give back the type resolution failure.
This is required to tell why the object creation couldn't be resolved.
14 years ago
Daniel Grunwald
b416f38f78
CSharpAmbience: allow passing in a custom IOutputFormatter.
14 years ago
Daniel Grunwald
e8f092892b
Add support for calling constructors on COM interfaces.
14 years ago
Mike Krüger
3ae2fe73c0
The formatting visitor is now using an easier visitor pattern.
14 years ago
Daniel Grunwald
cfe807ab73
Fix "find references" for method group conversions in delegate creation expressions "new Action(MyMethod)"
14 years ago
Daniel Grunwald
9859dce24f
Improve ResolveAtLocation.
14 years ago
Daniel Grunwald
a7245affe6
Fixed finding references to method group conversions.
14 years ago
Daniel Grunwald
e5217c2c13
Fixed bug in 'BetterConversion' implementation - converting to Func<> delegates is better than converting to Action<> delegates.
14 years ago
Daniel Grunwald
46254b3b0d
Add support for resolving "operator true".
14 years ago
Daniel Grunwald
77ea4dae30
Report more types of invalid equality comparisons as errors.
...
Mark an anonymous function conversion as invalid if there are compiler errors in the implicitly typed lambda.
14 years ago
Daniel Grunwald
bb822e94d4
Allow using AstType.ToTypeReference().Resolve(compilation.TypeResolveContext) - this will now resolve in the global namespace.
...
Fixed increment operator on System.Char.
14 years ago
Daniel Grunwald
f3541d4747
Fixed accessing protected members through type parameters.
14 years ago
Daniel Grunwald
9f5f18eeb2
Fixed resolving "condition ? byte : 0".
14 years ago
Daniel Grunwald
67d19127f5
Fixed bug in reachability analysis when lambda/anonymous method contains a condition or switch statement.
14 years ago
Daniel Grunwald
1a7ca154b4
Allow conversion of anonymous method with unreachable endpoint to Func<T>.
14 years ago
Daniel Grunwald
822fda7e36
Handle T[] -> T* and string -> char* conversions in fixed statement initializers.
14 years ago
Daniel Grunwald
0f2b0c380e
Fixed lambda type inference in delegate creation expressions. ("new Func<int, int>(a => a)")
14 years ago
Daniel Grunwald
5c9dfb9896
Fixed IUnresolvedTypeDefinition.Resolve() and IAssembly.GetTypeDefinition(IUnresolvedTypeDefinition) to always retrieve the correct version of the type definition for the compilation, even if the IUnresolvedTypeDefinition is a different version.
...
The two methods now return UnknownType/null if the IUnresolvedTypeDefinition does not belong to the assembly.
14 years ago
Daniel Grunwald
79b8b00d29
Fix bug in output type inference for explicitly typed lambdas.
14 years ago
Daniel Grunwald
a3ff017e9e
When a simple-name refers to an instance field in the current class, set TargetResult=new ThisResolveResult().
14 years ago
Daniel Grunwald
f2011680e9
Fixed resolving LINQ queries that involve transparent identifiers.
14 years ago
Daniel Grunwald
418f7090cb
Fixed resolving NamedExpressions in anonymous type creation expressions.
14 years ago
Daniel Grunwald
7779508e9f
Fixed lifting for built-in relational operators.
14 years ago
Daniel Grunwald
040b841c3b
Fixed resolving equality and relational operators on nullable types.
14 years ago
Daniel Grunwald
b803d850f7
Do not report invalid conversion from int to void for this code:
...
void Run(Action<string> a) { }
int M() {
Run(x => $M()$);
}
14 years ago
Daniel Grunwald
942b4f70ef
Move ConversionResoleResult to ICSharpCode.NRefactory.Semantics.
...
Boxing conversion for attribute arguments is now used consistently in C# type system and Cecil-loaded type system.
14 years ago
Daniel Grunwald
9af3c040f2
Fixed resolving compound assignment operators.
14 years ago
Daniel Grunwald
f70a726495
Fixed resolving "-2147483648".
14 years ago
Daniel Grunwald
f1a1ab32ad
Added ResolverTest to consistency check and fixed some crashing bugs in the resolver.
14 years ago
Daniel Grunwald
b84c06e5b6
Make CSharpResolver immutable.
14 years ago