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
Daniel Grunwald
c02e801b5d
Introduce ResolvedUsingScope (serves as cache per using-scope; avoids resolving imported namespaces repeatedly).
14 years ago
Mike Krüger
3b6fda215c
Added gtk demo & fixed code completion bug.
14 years ago
Mike Krüger
ec82082a36
Handled pre processor directives as separate AST node.
14 years ago
Daniel Grunwald
f9916d89ef
WIP: Type system refactoring.
14 years ago
Daniel Grunwald
f631199013
Type system refactoring: split unresolved/resolved type systems.
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
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
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
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
b059dbcf41
Fixed NullReferenceException when resolving group join clause.
14 years ago
Daniel Grunwald
a73d7ba8db
Added async/await support to the resolver.
14 years ago
Daniel Grunwald
7ff012f1a5
Fixed some issues in the CodeDomConvertVisitor.
14 years ago
Daniel Grunwald
e4d1f545fd
Add CodeDomConvertVisitor.
14 years ago
Daniel Grunwald
9de8c14c02
Fixed resolving event declarations.
14 years ago
Daniel Grunwald
b5b2408cbc
Move NRefactory.CSharp to separate assembly.
14 years ago
Daniel Grunwald
e37dc4b6c7
Move ResolveResults to NR.Semantics
14 years ago
Daniel Grunwald
611c310eb2
Change IConstantValue API to use ResolveResult.
14 years ago
Daniel Grunwald
e926745da6
Fixed resolver bugs that caused unit test errors.
14 years ago
Daniel Grunwald
a06110c255
Rename ParsedFile to CSharpParsedFile.
14 years ago
Daniel Grunwald
558e1585eb
Fix resolver crashes
14 years ago
Daniel Grunwald
46676a45fb
Add GetInterestingFileNames to FindReferences.
...
Fixed a few resolver issues related to find references.
14 years ago
Daniel Grunwald
7f11fe3be0
Fixed bugs that caused some nodes not to be resolved in a "resolve all" run.
14 years ago
Daniel Grunwald
42bc87ba02
Change ResolveVisitor to report the location of conversions.
14 years ago
Daniel Grunwald
4cc64bb9b8
Fixed resolving LINQ group joins.
14 years ago
Daniel Grunwald
5b17740bea
Use explicit interface implementation in ResolveVisitor to make it clear what the public API is supposed to be.
...
Added support for QueryJoinClause and QueryOrderClause to the resolver.
14 years ago
Daniel Grunwald
a5865bdd8e
Implemented "Find References".
14 years ago
Daniel Grunwald
33abc64eec
Replace AstNode.GetResolvableNodeAt() with the ResolveAtLocation helper class.
14 years ago