Daniel Grunwald
149dea7412
Add TypeGraphNode to NRefactory; and move AbiComparer from NR.CSharp.Analysis to NR.Analysis
12 years ago
Mike Krüger
f5d8ea6631
Removed empty expression / fixed potential bug where unary operator
...
expression may be null.
12 years ago
Alan McGovern
b789f83243
[build] Fix the OutputPath properties
...
They should not contain $(Platform) or $(Configuration) in the actual
string as MonoDevelop is unable to cope with this.
12 years ago
Daniel Grunwald
e1f13aaedf
Replace ExpressionOfCompatibleTypeCastIssue with CS0029InvalidConversionIssue.
12 years ago
Mike Krüger
6eba7eb798
Moved Severity/IssueMarker to NRefactory. This eliminates a
...
NRefactory.C# dependency in IDE code using these two enums to create
the markers & makes it easier to use these enums in other language
refactoring plugins.
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
Ciprian Khlud
3dcad69810
Remove "Remove Field Refactory" as it is dangerous.
12 years ago
Ciprian Khlud
bd486b50b0
Code updates
12 years ago
Ciprian Khlud
ad0c12d1da
Sample implementation for bug #11866
...
https://bugzilla.xamarin.com/show_bug.cgi?id=11866
The test fails because EOLN issues for now, and it works just for methods that return void for now. But it does look for methods inside the classes that have same: arguments, return type and modifiers (so are duplicates)
12 years ago
Ciprian Khlud
0d391896fb
Fixes bug #10731
...
https://bugzilla.xamarin.com/show_bug.cgi?id=10731
It will look as a separate issue checker for basic interfaces and it will give the first implementation that works as base (so it will not give 5 possible conversions, even all are possible). In practice works really well. It is losely based on the ParameterCanbeDemotedIssue so I exposed the code to not duplicate it. Yet the code is much simpler this action.
12 years ago
Ciprian Khlud
dd8caea759
Fixes bug 11709 part of Xamarin's bugzilla: https://bugzilla.xamarin.com/show_bug.cgi?id=11709
...
It makes ConvertToStaticMethod as an issue.
12 years ago
Ciprian Khlud
c965df75ab
Adds a refactor that removes fairly accurate a field in all places (it is based on FindReferences).
12 years ago
ciplogic
d1196a8ffb
Fixes bug #10728 (Auto-Fix regarding control flow: "Convert to correct type")
12 years ago
leoowen19
579d2aca48
[CodeIssue]PublicConstructorInAbstractClass
...
Convert modifiers of constructors in Abstract class from "public" to
"protected".
12 years ago
leoowen19
42921dca18
[CodeIssue] Redundant Constructor issue
...
Do not need an empty constructor
12 years ago
leoowen19
0d99a1c634
Two new code issues
...
1. Static contructor cannot take parameters.
2. Static constructor cannot take access modifier.
12 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.
12 years ago
ciplogic
ac9732776c
Makes not static methods
...
A better than nothing implementation of Bug #10730 .
https://bugzilla.xamarin.com/show_bug.cgi?id=10730
When multi-file tracking of methods is implemented, the change should change the usages of variables.Call(...) to ClassName.Call(...)
12 years ago
leoowen19
ee3c6e89ed
[CodeIssue] Redundant Null Check
...
No need to check null where is keyword exits.
12 years ago
Mike Krüger
610f0bfe2a
Refactored formatter (it needs now an ast seeded with new line
...
tokens).
12 years ago
Mike Krüger
772b66e109
Added code action from Ciprian Khlud <ciprian.mustiata@yahoo.com>:
...
InvertIfAndSimplify
12 years ago
Mike Krüger
116d6036bf
Added simplify if actions from Ciprian Khlud
...
<ciprian.mustiata@yahoo.com>.
12 years ago
Mike Krüger
79dbb0f9af
Added create changed event action.
12 years ago
Daniel Grunwald
85bbcab8de
Remove old ObservableAstVisitor
13 years ago
Mike Krüger
84e9a33715
Added ABI comparer.
13 years ago
Daniel Grunwald
67daa03b4f
Add SemanticHighlightingVisitor to NRefactory
13 years ago
Mike Krüger
40a2b81b43
Implemented issue provider for CS0127: A method with a void return
...
type cannot return a value.
This issue provider got requested - and I need to start somewhere to
implement semantic error issue providers.
13 years ago
Mike Krüger
f480c60aec
Added new code issue to simplify anonymous methods to delegate usages.
13 years ago
Mike Krüger
8bd796eb7f
Revert "Revert "Implemented reduced method model.""
...
This reverts commit bdc1fde9d6
.
13 years ago
Mike Krüger
765d917d60
Revert "Revert "Implemented better way to handle extension method invocations.""
...
This reverts commit c26f61e813
.
13 years ago
Mike Krüger
c26f61e813
Revert "Implemented better way to handle extension method invocations."
...
This reverts commit d4afc75413
.
13 years ago
Mike Krüger
bdc1fde9d6
Revert "Implemented reduced method model."
...
This reverts commit aaf2b919f5
.
13 years ago
Mike Krüger
aaf2b919f5
Implemented reduced method model.
13 years ago
Mike Krüger
d4afc75413
Implemented better way to handle extension method invocations.
13 years ago
Mike Krüger
11aa873815
Added alias resolve results that allows it to handle aliases more
...
easily. (for example showing them in the text editor UI or tooltips)
13 years ago
Mike Krüger
eab84734b2
Fixed bug in create constructor action & implemented create enum value
...
action.
13 years ago
Daniel Grunwald
64b8217fb0
Don't produce NegativeRelationalExpressionIssue inside operator declarations
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
b609c8d6f7
[Formatter] Worked on a indent engine.
13 years ago
Daniel Grunwald
536b9b0b1c
Add issue provider for missing StringComparison argument to string.StartsWith/EndsWith/IndexOf/LastIndexOf calls.
13 years ago
Daniel Grunwald
99bbb11ded
Add 'ResultOfAsyncCallShouldNotBeIgnored' issue.
13 years ago
Mike Krüger
28c635f11d
[CodeIssues] Removed LocalVariableOnlyAssignedIssue - it's redundant
...
and handled by RedundantAssignmentIssue
13 years ago
Daniel Grunwald
e62e9469a7
Simplified ExpressionIsNeverOfProvidedTypeIssue and fixed false positive when converting from System.Object to value types.
13 years ago
Lopatkin Ilja
4b3f83be72
Implemented code action to sort usings
13 years ago
Erik Källén
66f51bff3a
Added a separate AwaitResolveResult
13 years ago
Adam Connelly
4f3695ca03
[CodeIssues] Adding an issue that highlights when a base class does not have a parameterless constructor, and the child class does not invoke any of the base class constructors.
13 years ago
Mike Krüger
6c62b5b2c3
[Ast] Fixed end location of multi line strings.
13 years ago
Mike Krüger
f43d5df0e2
[CodeIssues] New issue to convert .Where(p).Any() to .Any(p). (from shani)
13 years ago