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
Daniel Grunwald
fb7561e6dc
Hide EntityDeclaration.Name/NameToken via EditorBrowsableAttribute when they aren't usable in a derived class. ( #117 )
15 years ago
Daniel Grunwald
f558b300e7
Revert "[AST] Handled protected and/or internal on AST level."
...
"protected internal" and "internal protected" are the same thing in C#.
Both map to ProtectedOrInternal; the ProtectedAndInternal accessibility is
not usable from C#.
This reverts commit b5ad2882ca
.
13 years ago
Mike Krüger
b5ad2882ca
[AST] Handled protected and/or internal on AST level.
13 years ago
Mike Krüger
07c8929aa2
[Ast] GetTypes now includes inner delegates as well.
13 years ago
mkrueger
1f78013258
[Ast] GetTypes now includes delegate declarations as well.
13 years ago
Daniel Grunwald
79db6fe54c
Change ISupportsInterning so that objects are interned immediately after they are created.
...
This lets us get rid of the hidden mutation due to interning; ISupportsInterning objects can now be truly immutable.
13 years ago
Mike Krüger
1b41ee02ca
[CodeAction] Convert lambda to delegate action no longer puts a
...
redundant () in the anonymous delegate.
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)
13 years ago
Mike Krüger
f7fb29804d
Implemented better solution for the array initializer workaround hack.
13 years ago
turbanoff
24f1637093
remove redundant check
13 years ago
Mike Krüger
cf9d360be7
[CodeActions] Worked on implement interface.
13 years ago
Mike Krüger
063d0f569c
Renamed named expression identifier -> name.
13 years ago
Mike Krüger
5dbe3654f5
[Ast] Renamed named argument expression identifier -> name.
13 years ago
Mike Krüger
fa4f2e033e
Added chained method call wrapping option.
13 years ago
Mike Krüger
04f8720739
Added formatting factory - formatting options should be created with
...
that.
13 years ago
Mike Krüger
0cbca24882
Added whitespace and text node.
...
They are needed anyways, now the ast should be theretically round-trip
complete.
13 years ago
Mike Krüger
c7e1236c5a
Added NewLine ast node.
13 years ago
Mike Krüger
1bc751bd6d
Added end inclusive GetNodeAt to AstNode.
14 years ago
Mike Krüger
8444dffd81
Startet exctract method action.
14 years ago
Mike Krüger
c33d15e2de
Fixed bug where code actions could be null.
14 years ago