Daniel Grunwald
0f2b0c380e
Fixed lambda type inference in delegate creation expressions. ("new Func<int, int>(a => a)")
14 years ago
Mike Krüger
006d18a067
Resolve at location can now give back the AstNode.
14 years ago
Daniel Grunwald
13ac45ebf7
Add AstType.ToTypeReference() method.
14 years ago
Daniel Grunwald
79b8b00d29
Fix bug in output type inference for explicitly typed lambdas.
14 years ago
Daniel Grunwald
cdfa794e37
Add some ToString() overrides for easier debugging
14 years ago
Daniel Grunwald
d44077aa59
Add CSharpAstResolver.GetResolverStateAfter() and fixed an issue with the scanning logic in ResolveVisitor.
14 years ago
Daniel Grunwald
3d21a80e7d
Fixed the ResolveVisitor scanning logic and several related issues.
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
4d20ce3ee9
Fix build.
14 years ago
Daniel Grunwald
b4003145b3
Add MethodGroupResolveResult.GetEligibleExtensionMethods() method.
14 years ago
Mike Krüger
440bc4f305
Fixed assertion error.
14 years ago
Mike Krüger
802cd23697
Fixed "assertion problem". Failed code was:
...
--------------------------------
using System;
using System.Collections.Generic;
namespace MyApp
{
public interface ISubject<T>
{
}
public class Test<T,TRight,TLeft>
{
public void Foo (IObserver<T> observer)
{
var rightSubs = new List<ISubject<TRight>> ();
var rightVals = new List<TRight> ();
Observer.Create<TLeft> (v => {
ISubject<TRight> rsub = new ReplaySubject<TRight> ();
foreach (var r }, () => sub.OnCompleted ());
}
}
}
------------------------------------
14 years ago
Mike Krüger
e7ee62fc40
Fixed resolve at location for object create expressions.
14 years ago
Mike
7df3367870
Guard against storing the resolve result for variable name token twice
...
in foreach statement.
14 years ago
Daniel Grunwald
9286461537
Adjusting SharpDevelop to new type system (unresolved/resolved split).
14 years ago
Daniel Grunwald
33e0c0e9a0
Fixed FindReferences on attributes.
14 years ago
Daniel Grunwald
9fea0d07fe
Implemented eligibility check for extension methods.
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
dac8c0fd35
Implement CSharpAstResolver.GetExpectedType() and CSharpAstResolver.GetConversion().
14 years ago
Mike Krüger
b09fd7ff58
Find references tries now to detect delegate usages of methods.
...
TODO: Overload resolution.
14 years ago
Daniel Grunwald
54168d5c0f
Add nuspec.
...
Changed project settings to produce xml-doc and debug symbols in release configuration.
14 years ago
Daniel Grunwald
06f96bf068
Remove IAccessor and use IMethod instead.
14 years ago
Daniel Grunwald
3c6cbeeae7
Add IMember.UnresolvedMember property.
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
bfafe8b117
Fixed handling of constants in OverloadResolution.GetArgumentsWithConversions().
...
This fixes IAttribute.PositionalArguments when implicit numeric conversions are involved.
14 years ago
Daniel Grunwald
9af3c040f2
Fixed resolving compound assignment operators.
14 years ago
Mike Krüger
969223aade
Added a method to get all extension methods on a specified type.
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
93a5c13825
FindReferences: add support for searching in a different compilation than the entity is defined in.
14 years ago
Daniel Grunwald
b84c06e5b6
Make CSharpResolver immutable.
14 years ago
Mike Krüger
fa5ec27072
Resolve object create expression, if the parent is one.
...
That causes a jump/tooltip for the constructor rather than the class
on a object create expression.
14 years ago
Mike Krüger
d7d9a55a5b
Added mono compiler bug workaround.
14 years ago
Daniel Grunwald
1467ce3b5b
Fixed accessibility check for protected members in outer classes.
14 years ago
Daniel Grunwald
f410a2b5d5
Enum members are implicitly cast to the underlying type when used in an enum member initializer.
14 years ago
Daniel Grunwald
a9c743c0ec
Fixed type inference for "condition ? someEnum : 0"
14 years ago
Daniel Grunwald
42ce4ca6e1
Fixed type inference in foreach when the collection type does not implement IEnumerable.
14 years ago
Daniel Grunwald
a6433d43f3
Do not try to infer a type from the null literal.
14 years ago
Daniel Grunwald
b0b9942522
Add ISolutionSnapshot for creating compilations for multiple projects from a single consistent snapshot.
14 years ago
Daniel Grunwald
7e95cb7446
Add CSharpAstResolver.GetResolverStateBefore
14 years ago
Daniel Grunwald
4d4f1f42b7
Fixed various resolver bugs.
14 years ago
Daniel Grunwald
c4ce9344f0
Fixed bug when resolving base constructor calls.
14 years ago
Daniel Grunwald
0b263b0b74
TypeSystemConvertVisitor: implemented ConvertInterfaceImplementation for methods and properties.
...
Implemented 'goto case' support in control flow analysis.
14 years ago
Daniel Grunwald
f11eed9d15
Introduce a named unknown type (this allows TypeSystemAstBuilder to work better when there are resolve errors).
14 years ago
Daniel Grunwald
e2cb5467c2
Adjust CodeDomConvertVisitor and DefiniteAssignmentAnalysis to new type system.
14 years ago
Mike Krüger
7e5380551b
Updated mcs/fixed some code completion cases.
14 years ago