Daniel Grunwald
585ae50c2f
CSharpAstResolver: don't return the same ResolveResult for two different nodes.
...
(make clones when using caches)
Closes icsharpcode/NRefactory#46 .
13 years ago
Mike Krüger
08636dbabc
[Completion] Fixed named argument completion bug.
13 years ago
Mike Krüger
fbc1cfd0c9
Fixed some failing unit tests.
13 years ago
Mansheng Yang
1c0a7305f5
[CodeIssue] TypeParameterNotUsedIssue: removed the fix because it may introduce errors.
13 years ago
Mansheng Yang
454bfe5e39
[CodeIssue] LocalVariableNotUsedIssue: Find unused foreach variable
13 years ago
Mansheng Yang
ca048e63e8
[CodeIssue] Added VariableNotUsedIssue, ParameterNotUsedIssue and TypeParameterNotUsedIssue
13 years ago
Erik Källén
0fec8d3474
Failing test that demonstrates that explicit user-defined conversions don't work.
13 years ago
Mike Krüger
e058d6103b
[Completion] Improved xml document completion.
13 years ago
Simon Lindgren
4ac7fecf0a
[Refactoring] Don't suggest names that are used in a parent scope when falling back to numbered names.
13 years ago
Mike Krüger
da2eea8353
[CodeIssues] Improved naming check (skipp overriden members).
13 years ago
Mike Krüger
4c875208f4
[CodeAction] Create field now works on member reference expressions
...
with 'this.' target.
13 years ago
Erik Källén
1363faf788
Tests demonstrating issues with parameter identity in accessors.
13 years ago
Daniel Grunwald
806869e563
Add IType.GetAccessors().
...
Accessors now use EntityType.Accessor instead of EntityType.Method.
Added accessors support to DefaultMemberReference and ExplicitInterfaceImplementationMemberReference.
Removed hacky code from CecilLoader - we now allow IsExplicitInterfaceImplementation=true on accessors.
13 years ago
Simon Lindgren
13ca3511df
[CodeActions] Make IterateViaForeachAction use names based on their type and add handling of using and for statements.
13 years ago
Simon Lindgren
da5bbf381e
[Refactoring, Competion] Add NamingHelper, use it from CSharpCompletionEngine and add convenience functions to RefactoringContext.
13 years ago
Mansheng Yang
728bf05224
[CodeIssue] Added AccessToModifiedClosureIssue and AccessToDisposedClosureIssue
13 years ago
erikkallen
74adaba0e5
Test demonstrating problem with nesting anonymous objects.
13 years ago
erikkallen
da0feac286
Another one of those x.IsOverride = y.IsOverridable issues.
13 years ago
erikkallen
8431aa0039
Fixed bugs with events: 1) Assignment of IsOverride to IsOverridable, and 2) AccessorOwner not being set for auto-events.
13 years ago
erikkallen
7640141783
Added support for explicit method and property implementations to the cecil loader.
13 years ago
erikkallen
4d868ba2b3
Failing test with explicit indexer implementation
13 years ago
erikkallen
7e2a5a32bb
Tests for ImplementedInterfaceMembers for indexer accessors.
13 years ago
erikkallen
baad38a590
Tests demonstrating that the accessors for a property that implements an interface property do not have any ImplementedInterfaceMembers.
13 years ago
erikkallen
840cde91d4
Failing test for IsOverride flag of accessors.
13 years ago
Simon Lindgren
4d602909ea
[CodeAction] IterateViaForeachAction: Add tests for slightly invalid expression statements and use Script.InsertAfter() to avoid problematic formatting.
13 years ago
Simon Lindgren
97185cf062
[Refactoring] Add optional parameter expectErrors = false to ContextActonTestBase.Test().
13 years ago
Simon Lindgren
0c9704d216
[Parser] Give ExpressionStatements with an invalid expression a semicolon if there was one in the file.
13 years ago
Simon Lindgren
b5b1bd1975
[CodeActions] Ignore whitespace tests for now.
13 years ago
Simon Lindgren
c45b646f31
[CodeActions] Handle AssignmentExpressions differently in IterateViaForeachAction.
13 years ago
Simon Lindgren
a546a8f7c1
[CodeActions] Rename SetterDoesNotUseValueParameterAction to ValueParameterUnusedAction and generalize it to include event accessors as well.
13 years ago
Simon Lindgren
c8f36ae31b
[CodeActions] Handle auto-setters and missing setters in SetterDoesNotUseValueParameterIssue.
13 years ago
Simon Lindgren
f99663b90e
[CodeActions] Add IterateViaForeachAction.
13 years ago
Simon Lindgren
1e6366359d
[CodeActions] Add failing unit tests for whitespace preservation in in AddCatchTypeAction and RemoveRedundantCatchTypeAction.
13 years ago
Simon Lindgren
05f8cfeb81
[CodeActions] Don't return a convert to extension method call code action if the call is already using extension method syntax.
13 years ago
Daniel Grunwald
bf6217d038
Improved CodeDomConvertVisitor.
13 years ago
Daniel Grunwald
a77fa3103a
Add IMethod.AccessorOwner.
13 years ago
Mansheng Yang
c8f211550e
[CodeAction] Added ExtractAnonymousMethodAction
13 years ago
Mike Krüger
81c7daa563
[Completion] Renamed IMemberProvider -> ICompletionContextProvider.
13 years ago
Mike Krüger
6cbda46563
[Completion] It's no longer needed to specify a parsed file for the
...
completion engine.
13 years ago
Simon Lindgren
4ca0f1d375
[CodeAction] Add code actions for converting between static method calls and extension method calls.
13 years ago
Mansheng Yang
3597535b9e
[CodeAction] Added ConvertConditionalToIfAction and ConvertIfToConditionalAction
13 years ago
Mike Krüger
39ac51cf09
[Completion] Made API a bit simpler.
13 years ago
Mike Krüger
d60aaebc8a
[Completion] Member provider now needs to be given in the constructor.
13 years ago
Mike Krüger
4e44369854
[CodeIssues] Fdg rules now apply only to public & protected entities.
...
(The Fdg rules only apply to that, we were more restrictive).
13 years ago
Mike Krüger
b0c73cc6a8
[CodeIssues] Fixed fdg naming rules.
13 years ago
Daniel Grunwald
eb41192c49
Fix unit test failing on .NET 4.5 RC.
13 years ago
Daniel Grunwald
050035186c
Simplify API for retrieving compiler errors/warnings.
13 years ago
Simon Lindgren
e60567ab86
[Resolver] Give the value parameter a domregion close to the setter or adder.
...
Previously the value parameters were given the start and end location (0, 0) which was problematic for the
FindReferences class which uses this information to decide if two variables are the same when finding references.
13 years ago
Simon Lindgren
47da624e7e
[CodeIssue] Add CallToVirtualFunctionFromConstructorIssue.
13 years ago
Simon Lindgren
8d46989d47
[Formatter] Avoid newlines between multiline arguments and the ending parenthesis in function calls.
13 years ago