Mike Krüger
8639ca4d5b
Speeded up document script node formatting.
13 years ago
Mike Krüger
140fb308f0
[CodeActions] Extract method now works with comments.
13 years ago
Mike Krüger
6ccb54b0d3
[Ast] GetNodeAt now searches from the end - since getting the start
...
location is more efficient than getting the end location.
13 years ago
Mike Krüger
5b655b1fc1
[Ast] Optimized GetNodeAt methods.
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
4717de986e
Optimized the AstNode.Descendants property.
...
Over 3 times faster than the previous implementation - but still slower than a visitor.
Fastest is a recursive function based on a for-loop ("for (AstNode child = node.FirstChild; child != null; child = child.NextSibling)").
13 years ago
Daniel Grunwald
359fdd2382
Provide both Enter and Leave events in ObservableAstVisitor.
13 years ago
turbanoff
24f1637093
remove redundant check
13 years ago
Mike Krüger
04f8720739
Added formatting factory - formatting options should be created with
...
that.
14 years ago
Mike Krüger
c7e1236c5a
Added NewLine ast node.
14 years ago
Mike Krüger
1bc751bd6d
Added end inclusive GetNodeAt to AstNode.
14 years ago
Mike Krüger
2d808842ea
Fixed failing unit tests.
14 years ago
Mike Krüger
c51a5f6222
Fixed stub mechanic.
14 years ago
Daniel Grunwald
f74bf908bc
Make AstNode freezable.
14 years ago
mike
4465839e98
Fixed error caused by Root role.
...
Ok now I know why it needs to be there :)
14 years ago
Mike Krüger
90bf204c7f
Moved the roles class out of AstNode.
14 years ago
Daniel Grunwald
c6ae6c30ee
Script refactoring.
14 years ago
Daniel Grunwald
fe8e098a27
Fixed some FxCop warnings.
14 years ago
Mike Krüger
11ab326cc3
Readded the 'IsInside' function that checks the position inclusive the
...
end location.
14 years ago
mike
a55cbb43f7
Semantic change: Contains now excludes the end location.
14 years ago
mike
ab7a24e2f7
Removed code duplication.
...
btw. was the worst case of duplication - the methods should do the
same but had slightly different semantics.
14 years ago
Daniel Grunwald
3eee3466a4
CSharpOutputVisitor is now using the IAstVisitor with void return type.
...
Removed default value for 'data' on AcceptVisitor() methods.
14 years ago
Mike Krüger
3ffbaa278a
Refactored c# token representation, it's now more consistent with the
...
other nodes and takes up a bit less memory.
14 years ago
Mike Krüger
73e63ddca1
Added GetText function to AstNode.
14 years ago
Mike Krüger
72d1381995
Provided IAstVisitor and IAstVisitor<T> visitor patterns.
14 years ago
Daniel Grunwald
d62f36694e
Add null node for VariableInitializer.
14 years ago
Mike Krüger
b0332c6d9d
Added IsInside methods to the AstNode.
14 years ago
Daniel Grunwald
3d21a80e7d
Fixed the ResolveVisitor scanning logic and several related issues.
14 years ago
Mike Krüger
ec82082a36
Handled pre processor directives as separate AST node.
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
e4d1f545fd
Add CodeDomConvertVisitor.
14 years ago
Daniel Grunwald
b5b2408cbc
Move NRefactory.CSharp to separate assembly.
14 years ago
Daniel Grunwald
33abc64eec
Replace AstNode.GetResolvableNodeAt() with the ResolveAtLocation helper class.
14 years ago
Daniel Grunwald
4372b610ee
Fixed lambda type inference for nested (curried) lambdas.
14 years ago
Mike Krüger
d46401cc5c
Added missing predicate parameter.
14 years ago
Mike Krüger
6fb0a903cc
Added error indicators for missing closing brackets.
14 years ago
Mike Krüger
1af72c9650
GetResolveableNodeAt is now more selective.
14 years ago
Mike Krüger
62d61ec84b
Implemented GetResolveableNodeAt function.
14 years ago
Mike Krüger
0cb2388538
Separated the annotations from the ast node & added annotations to the
...
project content.
14 years ago
Mike Krüger
ba4a272892
Implemented specific GetNodeAt method.
14 years ago
Mike Krüger
1feb0fc502
Added contains method.
14 years ago
Daniel Grunwald
e68833dd33
Add TestPlugin.
15 years ago
Daniel Grunwald
90542d2ea2
Fix parsing of query continuations for queries with multiple from clauses.
15 years ago
Mike Krüger
ccd06a496c
Fixed query expression tests.
...
Had to add a new node type: AnonymousTypeCreateExpression.
15 years ago
Daniel Grunwald
d4eaffbb42
Make pattern matching AST independent from C# AST.
15 years ago
Mike Krüger
2bee26ad27
Added AST formatting visitor.
15 years ago
Daniel Grunwald
ccfd4ea12c
Evaluate constant expressions in definite assignment analysis.
15 years ago
Daniel Grunwald
9974734473
Use a property to return the list of annotations.
...
This makes debugging annotations easier, as properties can be evaluated in the debugger.
15 years ago
Daniel Grunwald
60b3164b65
NRefactory AstNode: add DescendantsAndSelf property.
15 years ago