Daniel Grunwald
d09dc0e10a
Fix compiler warnings
12 years ago
Daniel Grunwald
d9076125a3
Add ConstructorInitializerType.Any for more flexible pattern matching on constructor initializers.
13 years ago
ciplogic
4990bc3155
Fixed issues based on great feedback of dgrunwald .
13 years ago
ciplogic
e5f2c0bfd6
Add the capability to remove base call if is not needed. It exposes some classes so maybe I'm not using the proper APIs. But it works good for practical the test case I wrote.
13 years ago
Daniel Grunwald
94f4e15e11
Revert "DepthFirstAstVisitor no longer tries to visit the children of non C#"
...
This reverts commit 158b5176a2
.
The optimization was invalid; the VisitChildren() method is not
necessarily an unnecessary call on leaf nodes because it is virtual.
13 years ago
Mike Krüger
158b5176a2
DepthFirstAstVisitor no longer tries to visit the children of non C#
...
ast leaf nodes.
(Speeds up visitors a bit)
13 years ago
Mike Krüger
8704de6646
Implemented composed type formatting.
13 years ago
Mike Krüger
106bfc49db
Replaced GetText() with ToString (). (GetText is still in the API but
...
will get removed)
13 years ago
Mike Krüger
1b99cfc3e8
Implemented new line ast node insertion.
13 years ago
Mike Krüger
c54148c423
Added comment to InvertCondition.
13 years ago
Daniel Grunwald
ee5d87a0f8
Add year to license headers.
13 years ago
Daniel Grunwald
85bbcab8de
Remove old ObservableAstVisitor
13 years ago
Mike Krüger
494ae64565
Fixed verbatim identifier location.
13 years ago
Daniel Grunwald
6132821b2a
Fix NullReferenceException in semantic highlighting.
13 years ago
Daniel Grunwald
a567138c23
ValueParameterUnusedIssue: highlight only the 'get'/'set'/'add'/'remove' keyword, not the whole accessor body
13 years ago
Mike Krüger
8639ca4d5b
Speeded up document script node formatting.
13 years ago
Daniel Grunwald
64b8217fb0
Don't produce NegativeRelationalExpressionIssue inside operator declarations
13 years ago
Daniel Grunwald
33c882d4a3
Add consistency check that mutates the AST and checks if pattern matching finds the difference.
13 years ago
Daniel Grunwald
dac867d9ed
Fix pattern matching for ComposedType.BaseType.
13 years ago
Daniel Grunwald
de9eea5967
Fix MemberType.DoMatch() - pattern matching was ignoring the type arguments.
13 years ago
Daniel Grunwald
6d0f3fb02e
Add "add using" context action.
...
The unit tests are based on pull request #104 by Adam Connelly
13 years ago
Mike Krüger
140fb308f0
[CodeActions] Extract method now works with comments.
13 years ago
Mike Krüger
0a95901c43
The parser is now able to emit new lines in the AST. However the output visitor needs to be adjusted. (otherwise too many new lines may be inserted)
13 years ago
Daniel Grunwald
b500f468ac
Fix #120 : RedundantNamespaceUsageIssue bad handling of using aliases
13 years ago
Mike Krüger
fac0fb9af5
[Ast] Added some missing keyword properties.
13 years ago
Mike Krüger
76c38c94ef
[Ast] Added missing where keyword property to constraints.
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
5d20faf0c5
[Ast] Getting the end location of token nodes is now faster.
13 years ago
Mike Krüger
5b655b1fc1
[Ast] Optimized GetNodeAt methods.
13 years ago
Mike Krüger
6c62b5b2c3
[Ast] Fixed end location of multi line strings.
13 years ago
Daniel Grunwald
1f6c4f037e
Update solution-loading logic in ConsistencyCheck.
13 years ago
Daniel Grunwald
16aa0c6c28
Rename IParsedFile -> IUnresolvedFile to make clear it belongs to the unresolved type system.
13 years ago
Simon Lindgren
1371e6db61
[CodeIssues] Fix bugs in RedundantCatchIssue.
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
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
Daniel Grunwald
7db1cbe11e
Merge NRefactory changes from SharpDevelop repository:
...
- Add CecilLoader.OnEntityLoaded callback
- Fixed thread-safety of lazy-loaded cecil type system.
- Add AstNodeCollection.AcceptVisitor method
13 years ago
Mansheng Yang
0b81174081
[Ast] CSharpUtil: extract negating a relational operator into a method
13 years ago
Daniel Grunwald
9e8487329a
Change "string[] Conditionals" to "IList<string> ConditionalSymbols"
13 years ago
Mike Krüger
8090455130
[Parser] Added conditional symbols to the compilation unit.
13 years ago
Mike Krüger
68aa35aed5
[Ast] Added MemberNameToken property for pointer reference
...
expressions.
13 years ago
Daniel Grunwald
5d2fee1b90
Add CompilerSettings class instead of using the one from Mono.CSharp.
...
Added ResolveResult-treeview to NR.Demo.
13 years ago
mike
4433ab1ff2
[Ast] Added IdentifierToken property to IdentifierExpression.
13 years ago
Daniel Grunwald
4d07b33b44
CSharpAstResolver now can resolve type members even when no parsedFile is specified.
...
This is useful for analyzing generated code that does not have accurate StartLocation/EndLocation assigned.
13 years ago
Daniel Grunwald
4fe7c72b16
Fixed context for determining accessibility of protected inner classes when resolving a base type reference (NameLookupTests.InheritFromProtectedInnerClassTest)
14 years ago
Mike Krüger
f7fb29804d
Implemented better solution for the array initializer workaround hack.
14 years ago
turbanoff
24f1637093
remove redundant check
14 years ago
Mike Krüger
cf9d360be7
[CodeActions] Worked on implement interface.
14 years ago