Daniel Grunwald
71bc008c82
Fixed forum-7917: Indentation is being erroneously applied to inline attributes
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@3122 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
fc91d0fdd7
Fixed forum-7883: exception when converting "a += b" from C# to VB when "a" is a pointer type.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@3120 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
03a8ae3612
Fixed forum-7902: VB parser incorrectly added attribute sections on parameter declarations to all parameters.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@3117 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
3b28446cec
Add class for each code snippet conversion.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@3088 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
38cef94960
Fixed SD2-1414: Mouse wheel scrolling does not work for high-resolution mice
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@3064 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
92ca3a3a40
Make end of block a synchronizing token. This fixes the end location of blocks with simple syntax errors, improving code completion in some cases.
...
Don't show code completion after "Type variable1, " -> IdentifierExpected context.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@3059 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
dc223f0a61
Fixed forum-7743: CodeDom conversion: convert "!(a == b)" to "a != b" instead of "(a == b) == false".
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@3057 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
7efa54a6fb
Fixed casing of Microsoft.CSharp.targets and System.Xml in .csproj files, fix FileUtility.Minimal.cs when running on Mono.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@3050 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
86499cb66f
Fixed forum-7730: Code-completion on generic classes that derive from another generic class.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@3049 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
ef561b891c
Fixed forum-6924: conversion of string constants from C# to VB should use vbCr, vbNullChar etc.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@3022 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
fa9d4b17a3
Improved handling of incomplete lambda expressions.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@3012 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
f5913a8d1d
Worked on lambda expression support.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@3010 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
420b068acd
Rewrote type inference and overload resolution. The new version has support for implicitly typed lambda expressions.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@3009 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
abbd911bc1
Fixed end location of preprocessing directives.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2987 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
6bfa9f37c2
NRefactory: add support for evaluating C# preprocessing directives
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2972 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
34bac66a8f
Fixed resolving when a generic class derived from a non-generic class with the same name.
...
Fixed resolving when a class had the same name as its containing namespace.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2828 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
9b4679edf1
NRefactoryResolver rewrite: remove code duplication between NRefactoryResolver and TypeVisitor. Changed handling of method groups to follow C# specification more closely.
...
This fixes several bugs in overload resolution.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2819 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
a17c67bf38
Fixed forum-7193: CSharpOutputVisitor bugs
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2799 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
635d791b96
Fixed forum-7172: NullReferenceException in C# parser when "fixed" keyword was used incorrectly.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2794 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
85d7e3ab6b
Layout configuration: Make "<Reset to defaults>" switch back to the Default layout.
...
Do not store active layout, always start with Default. (fixes SD2-1268)
Switch layout before starting the debugger (removes workaround for SD2-1325)
Add LINQ support to VBNetOutputVisitor (not tested to generate valid code, but better than "throw new NotImplementedException();")
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2751 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
18 years ago
Daniel Grunwald
44fcb45530
FxCop AddIn: allow suppressing assembly-wide messages (e.g. AssembliesShouldHaveValidStrongNames)
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2729 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
cf79e8fa40
Disabled COM registration for MyMeta.
...
Add logging for text editor's undo stack.
C# parser: fixed [module: ..] attributes
C# code completion: suggest "assembly", "module", etc. when typing an attribute.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2719 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 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
19 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
19 years ago
Daniel Grunwald
69e26d71c3
Applied patch by Ray Gilbert: CodeDomOutputVisitor now supports more language constructs. (see http://www.codeproject.com/csharp/codedom_assistant.asp )
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2686 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
f21b08932d
TextView.VirtualTop: X was a column number, Y a pixel position. Now both are pixel positions.
...
CSharpOutputVisitor: use System.Runtime.InteropServices.DefaultParameterValueAttribute when converting VB optional parameters.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2681 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
9afa0e7ebe
RunProject command: compile project before running it.
...
C# syntax highlighting: add contextual keywords introduced in C# 3.0.
C# parser: support "from T x in e" syntax in query expressions.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2677 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 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
19 years ago
Daniel Grunwald
b355b23dba
Worked on event support in WPF designer.
...
Fixed C# parser bug regarding expressions like "(T)-val".
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2669 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
8675624e3c
Fixed forum-18481: Problem with Boo Forms Designer when using TableLayoutPanel
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2661 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
b78656bd6f
Fixed forum-18391 and forum-18392 (pretty printer bugs).
...
VBNetOutputVisitor: Don't output "ByVal" by default.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2660 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 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
19 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
19 years ago
Daniel Grunwald
1ea9ac7b61
More improvements for the C#->VB converter.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2656 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
b78db77094
Improved C#->VB converter.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2655 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 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
19 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
19 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
19 years ago
Daniel Grunwald
50015a2b7b
Fixed SD2-1298: Converting single assignment and comparison statement from C# to VB.NET
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2642 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
5f9f3db75c
Update string resources.
...
Improve lexer code determining the type of integer literals.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2639 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
670b0d5212
Fixed C# parser bug regarding integer literals between long.MaxValue + 1 and ulong.MaxValue.
...
C# spec 2.4.4.2: Implemented rules regarding int.MinValue and long.MinValue (they get tokenized to Token.Minus + Token.Literal(uint/ulong), but must be parsed as signed int/long)
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2638 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
9dbd77c0d1
C# parser: allow unicode escape sequences in identifier names (yes, "int numb\u0065r;" is valid C#!)
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2637 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
9d73b7042e
C# lexer: add support for 32-bit unicode escape sequences (including those that represent surrogate pairs)
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2636 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 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
19 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
19 years ago
Daniel Grunwald
5602eff9e7
NRefactory output visitors: allow inserting specials between attributes and the attributed node.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2615 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
4b8d80a68b
Fixed SD2-1363: Exception is thrown using incorrect VB syntax.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2603 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
a16fc826ce
EventHandlerCompletitionDataProvider: build event name correctly ("button1.Click"=>"button1_Click"), fixed support for generic delegates (EventHandler<T>)
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2594 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
6331df6b0c
Fixed forum-17502: exception in C# and VB lexer when a hexadecimal literal is larger than ulong.MaxValue.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2559 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago
Daniel Grunwald
97342e3d49
Fixed snippet parser bugs.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2522 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
19 years ago