Daniel Grunwald
17c4315974
Rename IsExtensionMethodGroupConversion -> DelegateCapturesFirstArgument.
12 years ago
Daniel Grunwald
a2580063dd
Fix ExpressionOfCompatibleTypeCastIssue.
12 years ago
Daniel Grunwald
d09dc0e10a
Fix compiler warnings
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
Mike Krüger
8d4352b5d9
Disabled remove field action.
...
The action may destroy code therefore I disable it.
12 years ago
Mike Krüger
5f982b4774
Fixed bug in formatting engine.
12 years ago
Mike Krüger
ba13e28750
Fixed bug in redundant assignment issue.
12 years ago
Mike Krüger
1ad8c17390
Fixed completion bug.
12 years ago
Mike Krüger
05c5931a05
Disabled convert to static method issue.
...
It's not clear to me how the body analyzation is working - it seems to
be missing at all. Therefore I disable this issue until it's
implemented.
12 years ago
Mike Krüger
aec8e62922
Fixed formatting tests.
12 years ago
Mike Krüger
f40346db06
Fixed some issues in convert to static method issue.
12 years ago
Mike Krüger
5f867c5321
Ignore duplicate body method issue.
...
I take that one out for now - tests are failing and that's a very
unlikely issue to happen.
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
Luís Reis
94cfe777b4
Improved ExtractFieldAction for static getters and setters.
12 years ago
Luís Reis
8602033a04
Improved ExtractField. Tests currently fail for variables in getters.
12 years ago
Luís Reis
2710510610
Fixed ExtractFieldAction to handle type inference better and added unit tests that failed with the previous version.
12 years ago
Luís Reis
eee49d9d35
Fixed bug in UseExplicitTypeAction. Now, anonymous arrays are correctly excluded.
12 years ago
Luís Reis
962ba311d4
Fixed bug in ConvertLambdaToAnonymousDelegates to handle () => VoidMethod()
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
9a482c2653
Remove unused field
12 years ago
Ciprian Khlud
9db3f46cbc
Support non void arguments
12 years ago
Luís Reis
cf7c55dae3
ConvertLambdaToAnonymousDelegates now works correctly for lambdas with an expression on the right side.
12 years ago
Luís Reis
33725e3f82
Prevent UseExplicitTypeAction for anonymous types.
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
Mike Krüger
425be7ccc6
Fix create changed event action.
12 years ago
Mike Krüger
1c86d72523
Revert "Simplified the scrip API a bit (insert cursor/links are no longer task"
...
I do it different.
This reverts commit 4fa3c33d6b
.
12 years ago
Ciprian Khlud
eca73de6e4
ExpressionOfCompatibleTypeCodeIssue will not convert class types any longer.
12 years ago
Ciprian Khlud
17b26e4ce0
Added more unit tests to:
...
https://bugzilla.xamarin.com/show_bug.cgi?id=10728
There is a bug in conversion between double and float (in Convert part of the base classes)
13 years ago
Ciprian Khlud
d225305f0d
Fixed the range of the ConvertToStaticMethodIssue
13 years ago
Mike Krüger
9425107fc9
Turned off expression of compatibile type cast issue.
...
It doesn't really work correctly - what is that supposed to do and why
?
13 years ago
Ciprian Khlud
3fae6d6cd6
Fixed description
13 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.
13 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.
13 years ago
Ciprian Khlud
c965df75ab
Adds a refactor that removes fairly accurate a field in all places (it is based on FindReferences).
13 years ago
Mike Krüger
4fa3c33d6b
Simplified the scrip API a bit (insert cursor/links are no longer task
...
based).
13 years ago
Mike Krüger
05dfb9eada
fixed bug in create changed event.
13 years ago
Mike Krüger
de0b7ddff6
Fixed bug in create changed event.
13 years ago
Mike Krüger
b632cece34
Fixed formatting bug in create changed event.
13 years ago
leoowen19
bb3001bc37
[ContextAction] Added more contraint with DecToHex Action
...
Constraints of bool, float, double and char were added.
13 years ago
Mike Krüger
9397fc1987
Fixed some issues in wrapping formatting.
13 years ago
Mike Krüger
a796caa828
Fixed bug in wrapping options.
13 years ago
Mike Krüger
0d576c4791
Removed some duplicate code.
13 years ago
Erik Källén
02cc0a38c6
Added property Conversion.IsExtensionMethodGroupConversion to determine whether a method group conversion is being performed on an extension method using extension method invocation syntax (eg. Func<int> f = myEnumerable.Single).
13 years ago
Mike Krüger
c2ca95ac63
Fixed some formatting bugs.
13 years ago
Mike Krüger
02bf0ba580
Added alignment options for declarations.
13 years ago
Mike Krüger
985ebe36a6
Added alignment tests / fixed failing wrapping unit tests.
13 years ago
Mike Krüger
37e401152f
Fixed formatting tests.
13 years ago
Mike Krüger
55a0f5326e
Added some formatting options.
...
TODO: More wrapping tests!
13 years ago