Граф коммитов

427 Коммитов

Автор SHA1 Сообщение Дата
GrahamTheCoder e497e35cae
Merge pull request #57 from icsharpcode/vb/improve-array-handling
VB -> C#: Improve array handling (Erase, ReDim, initializers)
2018-03-19 12:21:54 +00:00
GrahamTheCoder 88c3a86b35 Initialize array when sizes are available 2018-03-19 09:56:18 +00:00
GrahamTheCoder 07aae21ffb Fixes #47 - Handle preserve keyword for multi-dimensional arrays 2018-03-19 09:30:08 +00:00
GrahamTheCoder 17da71e4f1 VB -> C#: Convert erase, and a crude conversion for Redim 2018-03-19 09:10:43 +00:00
GrahamTheCoder 49261e640b Consistently use array bounds 2018-03-19 09:10:43 +00:00
GrahamTheCoder 598bffe20f Fixes #56 - invalid if statement
Statements came out like this previously:

If node.Expression Is Nothing Then stmt = SyntaxFactory.ReturnStatement()
Else stmt = SyntaxFactory.ReturnStatement(CType(node.Expression.Accept(nodesVisitor), ExpressionSyntax))
2018-03-19 09:07:47 +00:00
GrahamTheCoder 9b73fe45c3 Add missing conversions 2018-03-17 21:10:37 +00:00
GrahamTheCoder 495b330805
Merge pull request #55 from icsharpcode/more-vb-syntax
VB -> C#: Select Case Expressions, Extension Methods fix, Call
2018-03-17 19:14:41 +00:00
GrahamTheCoder 8296805ed0 VB -> C#: Now converts call statement and single line void lambdas 2018-03-17 16:53:30 +00:00
GrahamTheCoder 8a72d8564a Fixes #54 - VB -> C# Select Case with Expressions now converted 2018-03-17 16:19:39 +00:00
GrahamTheCoder c9bfc77fc0 Improve error message and inline 2018-03-17 15:23:45 +00:00
GrahamTheCoder e9634a7d84 Ensure "this" only applies to first parameter 2018-03-17 15:00:35 +00:00
GrahamTheCoder 12d050f431 Fixes #52 - NRE for arbitrary expressions in With Block
Flip the conditional to target the elvis expression instead which is the more specific case. Basically any statement can appear inside a with block
Also catch an obvious case of a missing argument list - would be good to look for more subtle ones of these
2018-03-17 13:38:45 +00:00
GrahamTheCoder e422c8c7d6
Update README.md 2018-03-17 12:04:08 +00:00
GrahamTheCoder 7fe0fa4794
Mention developer builds 2018-03-17 12:03:52 +00:00
GrahamTheCoder 3cdec29b81
5.6.2 release date 2018-03-16 09:27:59 +00:00
GrahamTheCoder c0812aafaa 5.6.2 release notes 2018-03-16 09:05:39 +00:00
GrahamTheCoder 768e7f41e9 Bump version number to 5.6.2 2018-03-16 08:49:07 +00:00
GrahamTheCoder 56ee8d790b C# -> VB: Fix NRE from delegate with no parameters - fixes #50 2018-03-16 08:45:48 +00:00
GrahamTheCoder 4df901ac71
Merge pull request #49 from icsharpcode/extra-syntax
Support VB's DirectCast, and improve Shadows keyword conversion
2018-03-15 19:30:22 +00:00
GrahamTheCoder bd432cf8d1 Tidy up 2018-03-15 10:03:05 +00:00
GrahamTheCoder 992081bc19 Fix bug: New keyword should map to overloads, not shadows
Shadows would hide all members with the same name too, this functionality doesn't exist in C#
2018-03-15 09:19:22 +00:00
GrahamTheCoder 430ad9d3c3 VB -> C#: Convert Shadows to "new"
It's the same for all existing compilable programs, and the actual meaning of shadows is unenforceable in C#
2018-03-15 09:18:55 +00:00
GrahamTheCoder 22a0eabe63 Make name more descriptive 2018-03-15 09:01:21 +00:00
GrahamTheCoder 717f61e7d2 Handle DirectCast 2018-03-15 09:00:53 +00:00
GrahamTheCoder 2a96704bf2 Reduce indentation to match C# 2018-03-14 11:06:46 +00:00
GrahamTheCoder 1d297faa4e Remove old comment 2018-03-14 11:04:43 +00:00
GrahamTheCoder 0bf3ff8f69 Merge branch 'Narrowing-Widening' 2018-03-14 11:02:22 +00:00
GrahamTheCoder d4881c175d Spacing fix 2018-03-14 11:02:00 +00:00
GrahamTheCoder 9ae60b7d8e Change code style to dedupe and match surroundings 2018-03-14 11:00:24 +00:00
GrahamTheCoder 929bca52db Move to MemberTests 2018-03-14 11:00:24 +00:00
GrahamTheCoder 7d8828aac5 Revert changes unrelated to widening/narrowing issue 2018-03-14 11:00:14 +00:00
BaronBodissey 77c9b81ff7 Merge branch 'master' of https://github.com/icsharpcode/CodeConverter 2018-03-14 11:11:17 +01:00
GrahamTheCoder 4f6bcb3ff7
Merge pull request #42 from icsharpcode/avoid-loss-of-precision
Avoid loss of precision after conversion using "/" or integer doubles
2018-03-13 23:14:26 +00:00
swalle 2609cd9d20 VbToCs: integer divide, narrowing/widening 2018-03-13 15:17:18 +01:00
GrahamTheCoder 178f51c124 Avoid loss of precision after conversion 2018-03-13 10:39:07 +00:00
GrahamTheCoder 120d333c62
Merge pull request #41 from icsharpcode/vb-operator-support
VB -> C#: Expand operator support
2018-03-13 09:18:02 +00:00
GrahamTheCoder b4125a72a6 VB -> C#: Support IntegerDivide, IntegerDivideAssignment 2018-03-13 09:12:27 +00:00
GrahamTheCoder fdd42d7ad6 VB -> C#: Support LeftShiftAssignment, RightShiftAssignment 2018-03-13 08:56:40 +00:00
GrahamTheCoder 9ef202fa2d VB -> C#: Support Is, IsNot, LeftShift, RightShift 2018-03-13 08:54:42 +00:00
GrahamTheCoder 54c2eb00f0 Improve error message 2018-03-13 08:41:00 +00:00
GrahamTheCoder 98d3bbda20 Setup failing test - todo check IL is equivalent 2018-03-12 23:31:24 +00:00
GrahamTheCoder 62893a59d5 Fixup test expectation 2018-03-12 23:30:40 +00:00
GrahamTheCoder 69b86b3441
Merge pull request #40 from icsharpcode/minor-fixups
Better C# -> VB attribute formatting and slight VB -> C# linq syntax improvement
2018-03-12 23:25:09 +00:00
GrahamTheCoder 0764a05cdf Handle implicit select in VB query syntax 2018-03-12 23:00:45 +00:00
GrahamTheCoder fdedaf854b Put newline in front of all attribute lists 2018-03-12 22:35:16 +00:00
GrahamTheCoder 98b47ec5ae
Merge pull request #39 from icsharpcode/nested-blocks
Nested blocks
2018-03-11 23:24:05 +00:00
GrahamTheCoder 368a38bc9f Avoid subtle logic changes in nested if structures
All but inner nested blocks having parentheses seems like a pretty sane rule to follow in most cases
I've allowed special cases for using statements and else if blocks to neaten them up
2018-03-11 23:22:57 +00:00
GrahamTheCoder bfe70810cd Improve error message 2018-03-11 22:59:36 +00:00
GrahamTheCoder 33ea312754
Update README.md 2018-03-06 09:29:04 +00:00