Mike Krüger
78442bb33a
Fixed static constructor access modifier issue tests.
12 years ago
Mike Krüger
9029b9717a
Merge pull request #180 from ciplogic/master
...
Added fix for bug #11856
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
Mike Krüger
9ad9d69e3e
Merge pull request #179 from luiscubal/tdd
...
Handle type inference ExtractFieldAction
12 years ago
Luís Reis
e287bdb020
Fixed bug in TestRefactoringContext that attempted to put fields inside properties
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
3ea78f887a
Added (currently failing) tests for static fields. Minor formatting fixes.
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
Mike Krüger
3a0c2ce8a7
Merge pull request #178 from ciplogic/master
...
Remove "Remove field refactory", and get fixes in other actions
12 years ago
Mike Krüger
124240e5c9
Merge pull request #176 from luiscubal/tdd
...
Added unit tests and fixed additional bug in UseExplicitTypeAction
12 years ago
Luís Reis
eee49d9d35
Fixed bug in UseExplicitTypeAction. Now, anonymous arrays are correctly excluded.
12 years ago
Luís Reis
d57537f061
Added additional tests. One of new ones is failing.
12 years ago
Mike Krüger
137d2f86bf
Merge pull request #175 from luiscubal/lambda-fix
...
Fix to ConvertLambdaToAnonymousDelegate
12 years ago
Luís Reis
962ba311d4
Fixed bug in ConvertLambdaToAnonymousDelegates to handle () => VoidMethod()
12 years ago
Ciprian Khlud
e7a6a4da9e
Merge commit '19e5dbf0ec44dd61ec6dad8bae5d6a3f1188e38e'
...
Conflicts:
ICSharpCode.NRefactory.CSharp/ICSharpCode.NRefactory.CSharp.csproj
ICSharpCode.NRefactory.Tests/CSharp/CodeIssues/ConvertToStaticMethodIssueTests.cs
ICSharpCode.NRefactory.Tests/ICSharpCode.NRefactory.Tests.csproj
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
19e5dbf0ec
WIP on master: 9a482c2
Remove unused field
12 years ago
Ciprian Khlud
fe53dec615
untracked files on master: 9a482c2
Remove unused field
12 years ago
Ciprian Khlud
804fb5d0d8
index on master: 9a482c2
Remove unused field
12 years ago
Ciprian Khlud
9a482c2653
Remove unused field
12 years ago
Ciprian Khlud
9db3f46cbc
Support non void arguments
12 years ago
Ciprian Khlud
046734eb37
Merge git://github.com/icsharpcode/NRefactory
12 years ago
Mike Krüger
b323947506
Merge pull request #173 from luiscubal/anonymous-var
...
Prevent UseExplicitTypeAction for anonymous types.
12 years ago
Mike Krüger
6ccb6e363b
Merge pull request #174 from luiscubal/lambda-to-delegate
...
ConvertLambdaToAnonymousDelegates now works correctly for lambdas with a...
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
Siegfried Pammer
c0680b4e33
fix issues with member value completion, event completion etc.
12 years ago
Siegfried Pammer
dfb8847e34
finished implementation of CompletionDataGenerator
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
Siegfried Pammer
2fc1b20a96
first working version of XAML code completion
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)
12 years ago
Ciprian Khlud
d225305f0d
Fixed the range of the ConvertToStaticMethodIssue
12 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
?
12 years ago
Ciprian Khlud
3fae6d6cd6
Fixed description
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
Mike Krüger
4fa3c33d6b
Simplified the scrip API a bit (insert cursor/links are no longer task
...
based).
12 years ago
Mike Krüger
05dfb9eada
fixed bug in create changed event.
12 years ago
Mike Krüger
de0b7ddff6
Fixed bug in create changed event.
12 years ago
Mike Krüger
b632cece34
Fixed formatting bug in create changed event.
12 years ago
Mike Krüger
fab9ac629c
Merge pull request #169 from leoowen19/master
...
[ContextAction] Add more constraints with DecToHex action
12 years ago
leoowen19
bb3001bc37
[ContextAction] Added more contraint with DecToHex Action
...
Constraints of bool, float, double and char were added.
12 years ago
Mike Krüger
9397fc1987
Fixed some issues in wrapping formatting.
12 years ago