Daniel Grunwald
e85128df57
Fix unit test failure due to mix of tabs and spaces.
12 years ago
Ciprian Khlud
82c272545a
Fixed spacing
12 years ago
Ciprian Khlud
8666d6ffae
Fix of bug #11855
...
https://bugzilla.xamarin.com/show_bug.cgi?id=11855
This will notify user to use after ifs, whiles and fors not colons, but blocks.
12 years ago
Ciprian Khlud
c43a3ee9c3
Remove duplicate ifs, in if/else chains in case that the expression is duplicated. It can happen in copy/paste cases.
...
Fixes formatting of the previous commit to match K&R style.
12 years ago
Ciprian Khlud
6e4f648b48
Added code issue to address bug #11856
...
https://bugzilla.xamarin.com/show_bug.cgi?id=11856
This works for expressions by doing the following:
- it looks if the expression is the first in a sequence of conditional expressions
- if is first, it extracts all expressions in the chained expressions
- after that it compares all expressions and if two are found as duplicates, the first duplicate is shown
The code fix will remove the duplicate expression.
This bug will also look to bit operations ( & and | ) as they have similar semantics
12 years ago
Mansheng Yang
4af137970c
[CodeIssue] Added RedundantCaseLabelIssue
13 years ago
Mansheng Yang
77fd14e522
[CodeIssue] Added IdenticalConditionalBranchIssue
13 years ago
Mansheng Yang
b37dedfa87
[CodeIssue] Added LocalVariableOnlyAssignedIssue and ParameterOnlyAssignedIssue
13 years ago
Mansheng Yang
ca048e63e8
[CodeIssue] Added VariableNotUsedIssue, ParameterNotUsedIssue and TypeParameterNotUsedIssue
13 years ago
Mansheng Yang
b5843ad190
[CodeAction] Added ConvertAsToCastAction and ConvertCastToAsAction
13 years ago
Mike Krüger
b6bdb9028d
Added inline local variable action.
14 years ago
Mike Krüger
9fb443ade8
Improved code issue tests - renamed some issues and actions.
14 years ago
Mike Krüger
16ea65ad95
Started to implement tests for the inspectors.
14 years ago
Mike Krüger
141829a1ed
Started inspection API.
14 years ago
Mike Krüger
f46609bcc8
Worked on basic nrefactory completion infrastructure.
14 years ago
Mike Krüger
eb6c399d8c
Moved to completion namespace.
14 years ago
Mike Krüger
c82538ebe4
Added basic code completion interfaces.
14 years ago
Daniel Grunwald
b5b2408cbc
Move NRefactory.CSharp to separate assembly.
14 years ago
Mike Krüger
6e1eaf15f8
Added monodevelop context actions.
14 years ago
Mike Krüger
8237448dbd
Renamed interface.
14 years ago
Mike Krüger
450be5a945
Corrected locations for parset expressions/statments/type members.
14 years ago
Daniel Grunwald
d4eaffbb42
Make pattern matching AST independent from C# AST.
15 years ago
Daniel Grunwald
695138d373
Add visitor support to pattern nodes (IPatternAstVisitor). Add pattern support to output visitor (makes debugging easier if you can print out patterns)
15 years ago
Daniel Grunwald
9d5390cdbf
Add pattern matching support to the NRefactory C# AST.
15 years ago
Daniel Grunwald
afd96503fe
Add query expressions to AST and output visitor.
15 years ago
Daniel Grunwald
5a0087aa1b
Rename files Dom->Ast.
15 years ago
Daniel Grunwald
0f01f3be17
C# Ast refactoring: introduce Role<T> and add setters.
15 years ago
Mike Krüger
396c2b3931
Updated AST & mcs.
15 years ago
Mike Krüger
c4702354c5
Added C# DOM
15 years ago