Daniel Grunwald
ec8557da3d
Fixed SD2-1628 - Incorrect folding for VB.NET functions
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5624 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
2f6ade9faf
Fixed NullReferenceException in ShowErrorHelpCommand.Run.
...
Hide "Show error" command from Task List.
Fixed potential InvalidCastException in CSharpOutputVisitor.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5599 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
a7764d92d1
Improvements to C#->VB code converter (see forum-10353).
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5448 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
21fbbd06a7
Fixed forum-10403: several bugs in VBNetOutputVisitor
...
* Handle combinations of ParameterModifiers
* Output DefaultValue of optional parameters
* Handle Class.TypeModule in GetTypeToken
* Fixed output of base constructor calls
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5447 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
6a8bf3b680
Fixed forum-10660: make EndOfStatement between "Else" and the following block optional. It isn't according to the VB spec, but the MS VB compiler allows such code.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5445 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
550c9f7702
Fixed forum-10596: C# to VB.NET conversion problems
...
- base[index] must be converted to MyBase.Item(index)
- Overloads modifier must be added when method has same name as another method in a base class
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5432 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
81e6acf794
Fixed forum-10453: NRefactory VBNetOutputVisitor writes incorrect "AS" keyword
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5431 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
80fb379076
Fixed forum-10436: bugs in VBNetOutputVisitor.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5430 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
0824719cc9
Fixed SD2-1625 - Forms Designer corrupts field declarations with inner class type references
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5300 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
b87a337213
Fixed conversion of inner class type references to CodeDom.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5298 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
aa877491c1
Added object initializers support to VB output visitor.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5220 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
93c1198fd4
NRefactory C# parser: fixed parse error for unknown attribute targets - the C# compiler only emits a warning for those
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5003 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
39efc1c363
Fixed NRefactory C# parser bug with method calls on InnerClassTypeReferences ("A<T>.B.C<U>.Foo();")
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4986 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
41e2c36afa
Fixed C# parser bug that caused InvocationExpressions to have no or incorrect locations.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4960 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
d3bfe7a542
Fixed forum-10060: CSharp Parser not setting EndLocation on some LocalVariableDeclaration objects
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4946 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
ff2e75afb8
Revert r4902.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4903 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Mike Krüger
7772c03684
* Src/PrettyPrinter/IOutputAstVisitor.cs: Exposed some properties
...
from the abstract output formatter into the interface.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4902 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
1bab5625a5
Fix SD2-1584 - VB .NET snippet parser crashes on invalid syntax
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4883 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
85c0da5716
Fix SD2-1587 - Duplicate sections added to solution file on each save
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4882 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Mike Krüger
1b44fac5a9
* Src/PrettyPrinter/CSharp/PrettyPrintOptions.cs:
...
* Src/PrettyPrinter/CSharp/CSharpOutputVisitor.cs: Added brace
forcement options - this enables to change bracing for some
constructs.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4769 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
4c32ea2a50
Fixed output for overloaded unary operators.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4741 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
c5a371dd2c
Fixed SD2-1572 - operators are shown as nameless methods in code completion
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4740 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
34e76133c3
Fixed SD2-1465 - Convert integer casts correctly between VB and C#
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4570 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
e051b6560f
Fixed forum-9858: problem with sizeof operator converting from C# to VB.NET
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4569 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
d23af1f02a
Fixed parsing of try statements with multiple catch clauses (bug introduced in r4526).
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4530 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Mike Krüger
fc6e55f483
* Src/Visitors/LookupTableVisitor.cs: Lookup table visitors now can
...
be re-used (they reset when they visit a compilation unit).
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4527 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Mike Krüger
ffc41d4a7c
* Src/Parser/CSharp/cs.ATG:
...
* Src/Parser/CSharp/Parser.cs: Catch clauses have now set their
correct positions.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4526 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Mike Krüger
a4a77737bd
* Src/Visitors/LookupTableVisitor.cs: Catch variable declarations
...
are now valid in the whole catch clause, not only in the statement
block. (Required for the lookup inside the variable declaration)
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4520 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
de88a9a00b
Use svn:eol-style=native for NRefactory.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4482 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
a07a78e80b
CSharpOutputTest: don't ignore whitespace.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4481 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Mike Krüger
1489bafa98
* Src/PrettyPrinter/CSharp/OutputFormatter.cs:
...
* Src/PrettyPrinter/AbstractOutputFormatter.cs: Comments that start
line are no longer indented when outputting them.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4474 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Mike Krüger
3ba7f361b6
* Src/PrettyPrinter/CSharp/CSharpOutputVisitor.cs: Corrected else in
...
new line placement.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4471 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
6ace8895af
NRefactory: Fixed incorrect end column in C# type declarations.
...
Fixes forum-9578: IndexOutOfRangeException in 'Implement Interface' refactoring.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4455 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Mike Krüger
b9ebdadd18
* Src/Visitors/AbstractAstTransformer.cs: Made node stack protected.
...
I had a complicated AST transformation where I needed to add/remove
statements this seemed to be the easiest solution for it.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4438 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
03339ba83a
Fixed build.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4417 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Mike Krüger
80b46b6b8d
* Src/PrettyPrinter/CSharp/CSharpOutputVisitor.cs: Improved
...
collection initializer output.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4407 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Mike Krüger
a3b56d8ca4
* Src/PrettyPrinter/CSharp/PrettyPrintOptions.cs:
...
* Src/PrettyPrinter/CSharp/CSharpOutputVisitor.cs: Added anonymous
method brace style.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4349 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Mike Krüger
e0152e8500
* Src/PrettyPrinter/CSharp/CSharpOutputVisitor.cs: Removed
...
unneccessary spaces in if section.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4342 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Mike Krüger
64ef2a35f7
* Src/PrettyPrinter/CSharp/OutputFormatter.cs:
...
* Src/PrettyPrinter/AbstractOutputFormatter.cs: Corrected block
comment output.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4324 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Mike Krüger
52cefeecb0
* Src/PrettyPrinter/CSharp/CSharpOutputVisitor.cs: If statements
...
without block are now correctly indented.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4323 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Mike Krüger
d80a5b833b
* Src/PrettyPrinter/CSharp/CSharpOutputVisitor.cs: removed embedded
...
statement newline. (newline here is incorrect ex. printing "if (a)
Foo(); else Bar();" should be possible without forcing newline after
Foo).
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4316 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Mike Krüger
5ad991bd51
* Src/PrettyPrinter/CSharp/CSharpOutputVisitor.cs: Correctly indent
...
embedded statements.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4315 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Mike Krüger
65e94963f5
* Src/Lexer/AbstractLexer.cs: Allow white spaces as symbol
...
separator.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4007 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Mike Krüger
ebc2f1b64f
* Src/Parser/gen.sh:
...
* Src/Parser/CSharp/cs.ATG:
* Src/Parser/CSharp/Parser.cs:
* Src/Parser/CSharp/CSharpParser.cs: Added ref/out parameters for
typed lambda expressions.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@3943 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
17 years ago
Mike Krüger
cec95aa60d
* Src/Lexer/CSharp/Lexer.cs:
...
* Src/Lexer/AbstractLexer.cs: #if/#elif preprocessor directive now
contain the arg as string representation too (arg was null).
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@3937 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
17 years ago
Mike Krüger
5705bb78c5
* Src/Visitors/LookupTableVisitor.cs: Added IsQueryContinuation flag
...
to local lookup variables. This helps resolving the type of "from
... where ... into VAR" constructs.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@3927 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
17 years ago
Daniel Grunwald
985ff63921
Revert changes to NRefactory.csproj in revision 3849 - add GlobalAssemblyInfo.cs back so that the assembly is correctly versioned.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@3869 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
17 years ago
Mike Krüger
5c18da0470
* Src/Lexer/AbstractLexer.cs: Added null check.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@3867 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
17 years ago
Mike Krüger
f5e37276c2
* Src/Lexer/ILexer.cs:
...
* Src/Lexer/CSharp/Lexer.cs:
* Src/Lexer/AbstractLexer.cs: Added SetConditionalCompilationSymbols
method.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@3866 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
17 years ago
Daniel Grunwald
26a1551633
When handling file names, use StringComparison.OrdinalIgnoreCase instead of InvariantCultureIgnoreCase.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@3863 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
17 years ago