Daniel Grunwald
dd7e9de26c
Assign DomRegion to ExpressionResult for describing the exact location where the expression was found.
...
NRefactoryResolver now assigns the correct positions to nodes parsed by ParseExpression. This fixes code-completion on parenthesized query expressions.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2713 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
08e5606c11
Do not show read-only value-type fields and properties in collection initializer completion.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2711 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
f729721b17
Add code-completion support for object and collection initializers.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2710 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
2d94d3128c
Update to Cecil 0.6.
...
Fixed some bugs.
C# parser: include position information for statements/expressions.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2708 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
9c78cdcfc5
Some fixes suggested by FxCop.
...
Fixed using the "Suppress message" command on constructors.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2702 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
60d3c8b7e3
Fixed bug introduced in revision 2688 that could cause non-partial classes to become a CompoundClass with two identical parts when the file is edited.
...
This caused symptoms like seeing fields and properties twice in the code completion drop-down, seeing method overloads twice; and indirectly caused several problems with the Rename refactoring.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2699 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
9dbecc48ee
Implemented SD2-1371: Use recycle bin to delete files.
...
Fixed bug introduced in last revision that caused the unit tests to fail.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2690 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
e48a9bf413
When there are duplicate classes, treat both parts as implicitly partial. Fixes SD2-1217: Duplicate class name support in ProjectContent.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2688 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
d8653d3205
Fixed forum-18069: Text selection lags mouse depending on font
...
TextEditor now provides TextChanged event so users do not have to attach to textEditor.Document.DocumentChanged.
Improved the heuristic that determines which comments belong to a class for the "Move class to file" command.
Prevent SharpDevelop from crashing if code-completion cache is corrupted.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2680 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
5cf2e55980
Fixed SD2-1377: Exception adding reference to Compact Framework application.
...
C# code completion: Members of anonymous types are properties, not fields.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2678 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
0c51983690
NRefactory: Support parsing statements like "SomeDelegate d = GenericMethod<string>;"
...
Renamed FieldReferenceExpression to MemberReferenceExpression.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2676 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
2d21efe844
Various bug fixes.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2667 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
136722e9b1
Improved C# code completion (typing constraints on generic classes).
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2664 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
d2315a13c0
Worked on VB<->C# converter.
...
Fixed SD2-980: VB 'For Each' statement not converted correcly to C#
Text editor: Use TextLocation struct instead of System.Drawing.Point to represent line/column pairs.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2659 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
3d8d7af120
Worked on VB->C# converter.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2657 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
b78db77094
Improved C#->VB converter.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2655 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
d3ebdfcab4
Worked on C# -> VB converter.
...
Fixed SD2-1022: Delegates usage not converted correctly from C# to VB.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2654 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
64e7f0645d
Fixed SD2-803: Implicit interface implementations are not converted correctly to VB
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2653 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
83b98bd73d
Fixed SD2-1028: local variables should be always initialized when converting code from VB to C#.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2652 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
f14402cb05
Fixed SD2-1069: Conversion of VB ReDim statement to C# not implemented.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2651 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
2213306f2d
Set correct caret column when pressing return.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2643 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
d5b3330f71
Fixed SD2-1355: FormattingStrategy: meaning of IndentLine, FormatLine return value
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2640 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
4423707856
GacReferencePanel: when the GAC contains multiple versions of an assembly, show the version that MSBuild will use.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2631 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
5d5bdc2cdb
Use MSBuild's ResolveAssemblyReferences task to make sure we load the correct assembly version for code-completion. E.g. a reference to "System.Net" loads a different assembly depending on the target framework. SharpDevelop now can also find assemblies in custom reference paths, using assembly tables and everything else supported by MSBuild (including custom ResolveAssemblyReferences tasks).
...
The property pad uses the information from MSBuild to show the resolved assembly version.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2630 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
f3528c4d04
Remove skip-messages for projects not compiled when compiling only a single project using F9.
...
Replace ICSharpCode.SharpDevelop.Func<...> with System.Func<...>; use System.Linq.Enumerable instead of the ICSharpCode.SharpDevelop.Linq helper class.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2628 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
671d51a6e8
Fixed method insight for constructors.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2622 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
3c3ac7e95a
CSharpExpressionFinder: better support for field initializers
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2621 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
ecfed88c5b
Fixed two problems in C# expression finder (wrong context detected for property setters and nested types)
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2620 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
6d9000dc5e
Fixed code completion bug: calls from nested classes to static methods in the parent class now are resolved correctly.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2619 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
a58c7e1f86
More C# code completion fixes.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2618 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
76636e154f
C# expression finder: Fix "if (a > b) {}".
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2617 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
ac9f4a917b
Fixed C# expression finder bug for statements like "if (a < b) {}"
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2616 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
a65659b0d3
Fixed forum-17917: Overriding properties that have get/set accessors with different visibility as the property does not insert the visibility modifier in the overriding code.
...
Overriding abstract members now inserts "throw new NotImplementedException();" instead of a call to the base method.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2613 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
c8f31d4b3a
Lookup XmlDoc for XNA references.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2611 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
e710827635
Fixed project creation bug: By default, "Optimize" was not set to true for release builds.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2602 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
0acdde0b37
Add optional "settingsPath" and "domPersistencePath" settings to SharpDevelop.exe.config. These can be used to redirect the settings/code completion cache to different folders, e.g. for running SharpDevelop from a USB stick.
...
Make XML documentation tooltips work even if the code completion cache is disabled.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2596 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
c96e754075
Implemented AttributeReturnType, now the unit test AddIn should work again.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2589 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
e2ff87117b
Fixed build.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2587 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
c989cbc19e
Support right-click > add using on type names when the "using" is missing.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2586 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
8e8438876e
Worked on Xaml language binding.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2566 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
50a59336df
Refactored the interface IAttribute to include useful information (type reference to the attribute type + arguments).
...
Begin work on a Xaml language binding.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2564 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
d6346a6d19
Implemented forum-16705: MyBase keyword and code completion in constructors
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2536 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
efeba38704
Fixed CSharpExpressionFinder
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2535 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
a8993567c1
"Code Completion when a character is typed" can now be turned off in the options.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2534 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
f013561cfd
Fixed forum-17221: ArgumentOutOfRangeException when opening large C# files (>=46341 lines) with XML documentation comments.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2530 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
ad7a0b1646
Fixed inferring type argument for a method with an IEnumerable<T> parameter when an array is passed to the method. (backported from 3.0.0.2506)
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2510 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
b63d19415b
Begin implementing "aggressive" context-dependent code-completion (Ctrl+Space completion whenever you start to type).
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2509 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
63b9f9061a
Support "go to definition" and "find references" for C# base constructor calls (": base(...)").
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2508 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
2c68fb0e71
Fixed code-completion bugs.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2507 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
57a8cfebb2
Improved C# 3.0 code-completion.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2506 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago