Daniel Grunwald
eab8372365
Fixed resolver crash when resolving the arguments of an ObjectCreateExpression with unresolved type (e.g. due to missing using).
14 years ago
mike
29da952623
Fixed some warnings.
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
df380b6055
Fixed potential cause of CSharpAstResolver.Resolve returning null.
14 years ago
Daniel Grunwald
e80f142381
Fixed bug in CSharpAstResolver.GetExpectedType().
14 years ago
Mike Krüger
6a0a96ce31
Moved some roles to the Roles class.
14 years ago
Mike Krüger
90bf204c7f
Moved the roles class out of AstNode.
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
fe8e098a27
Fixed some FxCop warnings.
14 years ago
Daniel Grunwald
3e7244197c
Fix icsharpcode/NRefactory#16 : Resolve the GetEnumerator call inside a foreach
14 years ago
Daniel Grunwald
fb0dbc9bee
Fix icsharpcode/NRefactory#17 : Resolving "is" and "as" expressions loses the semantics
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
a353f23d70
Combine AttributedNode and MemberDeclaration into EntityDeclaration.
14 years ago
Daniel Grunwald
2f859148f0
Use simpler IAstVisitor for ResolveVisitor.
14 years ago
Daniel Grunwald
2bebee46a1
C# XML documentation support.
14 years ago
Mike Krüger
de6870b067
Fixed completion unit test.
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
a7245affe6
Fixed finding references to method group conversions.
14 years ago
Daniel Grunwald
311df2bbb2
CSharpAstResolver: add cancellation support
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
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
13ac45ebf7
Add AstType.ToTypeReference() method.
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
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
7df3367870
Guard against storing the resolve result for variable name token twice
...
in foreach statement.
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
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
Daniel Grunwald
06f96bf068
Remove IAccessor and use IMethod instead.
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
b84c06e5b6
Make CSharpResolver immutable.
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
42ce4ca6e1
Fixed type inference in foreach when the collection type does not implement IEnumerable.
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
e2cb5467c2
Adjust CodeDomConvertVisitor and DefiniteAssignmentAnalysis to new type system.
14 years ago
Daniel Grunwald
73438b7288
Make CSharpResolveVisitor internal and expose CSharpAstResolver instead.
14 years ago
Daniel Grunwald
9d7c018fb2
Adjusted C# resolver to refactored type system.
14 years ago