Daniel Grunwald
16aa0c6c28
Rename IParsedFile -> IUnresolvedFile to make clear it belongs to the unresolved type system.
13 years ago
Daniel Grunwald
087aee7fe8
Simplify parser API.
13 years ago
Daniel Grunwald
eaba9798d3
Rename 'cu' to 'syntaxTree'.
13 years ago
Daniel Grunwald
273178a141
Rename CompilationUnit to SyntaxTree.
13 years ago
Daniel Grunwald
4fe7c72b16
Fixed context for determining accessibility of protected inner classes when resolving a base type reference (NameLookupTests.InheritFromProtectedInnerClassTest)
13 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
Mike Krüger
3ae2fe73c0
The formatting visitor is now using an easier visitor pattern.
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
4d4f1f42b7
Fixed various resolver bugs.
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
Daniel Grunwald
f631199013
Type system refactoring: split unresolved/resolved type systems.
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
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
b5b2408cbc
Move NRefactory.CSharp to separate assembly.
14 years ago
Daniel Grunwald
e37dc4b6c7
Move ResolveResults to NR.Semantics
14 years ago
Daniel Grunwald
a06110c255
Rename ParsedFile to CSharpParsedFile.
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
33abc64eec
Replace AstNode.GetResolvableNodeAt() with the ResolveAtLocation helper class.
14 years ago
Daniel Grunwald
a93fd14efb
Adjust unit tests and fix bugs introduced by caching.
14 years ago
Daniel Grunwald
3fdf0ee6c6
Implemented resolver for LINQ queries.
14 years ago
Daniel Grunwald
7a2c59ae4a
Add GetMemberOptions.
14 years ago
Daniel Grunwald
5c585e110b
Apply license header to unit tests.
...
Add parser unit tests for ObjectCreateExpression.
14 years ago
Daniel Grunwald
b52a348373
More work on lambda expressions.
14 years ago
Daniel Grunwald
43b5897b21
Add support for user-defined operators.
14 years ago
Daniel Grunwald
37626e1bc7
Expose conversions as part of the ResolveResult.
14 years ago
Daniel Grunwald
e51e3a95cb
Add InvocationResolveResult.
14 years ago
Daniel Grunwald
18fb49ca7c
Add TypeKind enum.
14 years ago
Daniel Grunwald
bb2f93a24b
NRefactory bug fixes:
...
- Use IType.Equals() instead of == operator
- Change handling of partially parameterized types in IType.GetNestedTypes so that we don't leak type parameters from the wrong context
- Add support for unbound types to C# resolver (e.g. in attribute arguments)
- C# Parser: preserve variance modifier
- Ensure all interface members are marked as 'abstract'
- Add support for [TypeForwardedTo] and [ComImport] to CecilLoader.
14 years ago
Mike Krüger
7e29f61da6
Fix build (however formatting tests will fail).
14 years ago
Daniel Grunwald
d022808047
Fixed parsing of enum member declarations.
15 years ago
Mike Krüger
749f5a885e
Updated parser & mcs.
15 years ago
Daniel Grunwald
6df268a693
Introduce IAstVisitor interface.
15 years ago
Daniel Grunwald
bf49569c22
Rename Dom->Ast.
15 years ago
Daniel Grunwald
b9f9caaa9c
Added some unit tests and fixed some bugs.
15 years ago
Mike Krüger
396c2b3931
Updated AST & mcs.
15 years ago
Daniel Grunwald
0eeedc4d75
Add ResolveVisitor-based tests to SimpleNameLookupTests.
15 years ago
Daniel Grunwald
2f91b65b74
Add more SimpleNameLookupTests.
15 years ago
Daniel Grunwald
9b0435065e
Add parser unit tests for expressions.
15 years ago
Daniel Grunwald
fe78216ca4
Started implementing type inference.
15 years ago
Daniel Grunwald
24e7c50e32
Fixed issues with LogicalAnd and LogicalOr operators.
...
Add unit tests for overload resolution; fixed an overload resolution bug.
Added some new helper methods.
Various documentation updates.
15 years ago
Daniel Grunwald
ca28cd6478
Add support for multiplication, division, modulus and addition operators.
15 years ago
Daniel Grunwald
b46cfa7e29
Added CastTests.
...
Constant folding: fixed implicit conversions and casts to use C# semantics
15 years ago