GrahamTheCoder
fdedaf854b
Put newline in front of all attribute lists
2018-03-12 22:35:16 +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
ff6a33c5ce
Add xmldoc test
2018-03-06 00:18:09 +00:00
GrahamTheCoder
0f419cf1e8
Disable the trivia porting functionality and restore tests
...
so it's mergeable for now
2018-02-26 22:17:22 +00:00
GrahamTheCoder
f08c5fca16
API Change: Exclusively use new ProjectConversion code path
2018-02-26 21:57:03 +00:00
GrahamTheCoder
fc76732e82
Set spacing the same on C# and vb now that trivia is converted
2018-02-26 21:45:12 +00:00
GrahamTheCoder
59467c2536
Start testing csharp -> vb comment conversion
2018-02-26 21:37:47 +00:00
GrahamTheCoder
c254bd676b
Copy structural changes into the C# -> VB converter to keep in step
2018-02-26 21:00:20 +00:00
GrahamTheCoder
d30b819404
Make project conversion for cs -> vb use the same code
2018-02-26 20:06:59 +00:00
GrahamTheCoder
e5863de07c
Extract class
2018-02-26 20:06:55 +00:00
GrahamTheCoder
9a1f8e244d
Extension method conversion
2018-02-24 22:00:48 +00:00
GrahamTheCoder
9eb8a544ae
Simple implementation of goto and another array bounds mechanism
2018-02-24 21:29:39 +00:00
GrahamTheCoder
30fda400c6
Handle basic goto case
2018-02-24 20:52:38 +00:00
GrahamTheCoder
64dfdcd86b
Cater for simple group clause
...
Name of group variable isn't declared in the C#, could add an extra "let" if this becomes a problem
2018-02-24 20:36:32 +00:00
GrahamTheCoder
d7b039ac9f
Simple group join works
...
Haven't handled the case of aggregates other than Group (such as Count()) which are allowed in VB - need to figure out the closest equivalent syntax in C#
2018-02-24 19:11:31 +00:00
GrahamTheCoder
d171e52841
Most basic query expression support
2018-02-24 17:50:07 +00:00
GrahamTheCoder
49488a5360
Enable tests that just need formatting changes to pass
2018-02-24 15:59:47 +00:00
GrahamTheCoder
50ba3b0ef7
Enable tests that already pass
2018-02-24 15:56:56 +00:00
GrahamTheCoder
d25e6fe228
Deal with missing type and array bounds attached to identifier
2018-02-11 17:14:24 +00:00
GrahamTheCoder
c6a881ef74
Tweak test
2018-02-11 12:30:58 +00:00
GrahamTheCoder
4fea256092
Red: Object creation syntax not working
2018-02-11 12:30:58 +00:00
GrahamTheCoder
a0b6e491fd
Handle the case of just a method body
2018-02-11 12:30:57 +00:00
GrahamTheCoder
f4b1eacb2a
Use Environment.NewLine consistently
2018-02-10 11:42:06 +00:00
GrahamTheCoder
9c58ba03b3
See whether this is the issue on the test machine
...
If this passes, should probably switch it out for the HomogenizeEOL method, just trying the simple fix first
2018-02-10 11:41:28 +00:00
GrahamTheCoder
0398c71e27
Disable testing of comments for the ones not working yet
...
They still look like valid code, just sometimes miss comments and are a bit messy
2018-02-10 11:41:27 +00:00
GrahamTheCoder
5e6dac7b50
Get all non-comment tests passing
2018-02-10 11:41:27 +00:00
GrahamTheCoder
2bdf226914
Let the production code do the formatting - not the tests
2018-02-10 11:41:26 +00:00
GrahamTheCoder
1249a33155
More accurate test: Make imports match in source and converted
2018-02-10 11:41:25 +00:00
GrahamTheCoder
581f890361
Don't accidentally lose whitespace
2018-02-10 11:41:21 +00:00
GrahamTheCoder
17ed00ed0a
Be more explicit in use of newlines
2018-02-10 11:41:21 +00:00
GrahamTheCoder
9d016aa0f0
Start testing code comment porting en-masse again
2018-02-10 11:41:19 +00:00
GrahamTheCoder
520d93a92d
Update tests with equivalent whitespace - now successfully ported
2018-02-10 11:41:19 +00:00
GrahamTheCoder
e29bf3ecdc
Temporary focus on just end of line trivia
2018-02-10 11:41:18 +00:00
GrahamTheCoder
3f1db547f8
Skip pre-class parts and inheritance vb lines
2018-02-10 11:41:17 +00:00
GrahamTheCoder
793ebd0f24
Ignore Implements and Inherit for now
2018-02-10 11:41:17 +00:00
GrahamTheCoder
36c4f04a5c
Fix up struct/class/module
...
VB has a block containing a statement with the first line
This is a common pattern in VB's syntax tree - I'll need to use something similar elsewhere too around other block structures
squash! WIP possibly want to use DeclarationStatementSyntax even. See NestedClass bug though
2018-02-10 11:41:17 +00:00
GrahamTheCoder
bc92ef0962
Ignore starts of classes and hack comment alignment for now
...
Gets some tests passing so I have something to work against
2018-02-10 11:41:17 +00:00
GrahamTheCoder
46f2b6a5a5
WIP tests
2018-02-10 11:41:15 +00:00
GrahamTheCoder
77baedc620
Change of plan: Add newlines where desired rather port and juggle them
...
Used current tests at a guide for some sensible layout logic
2018-02-10 11:41:14 +00:00
GrahamTheCoder
2851dc474d
Make trivia match in VB and C# in test
2018-02-10 11:41:14 +00:00
GrahamTheCoder
8562188707
Consistently use spaces everywhere
2018-02-10 11:39:10 +00:00
GrahamTheCoder
b4cf4f5d84
Fix out parameters in external assemblies
...
The VB model doesn't know about out parameters since it turns them all into ByRef, so after the first pass, walk the CSharp tree and turn ref into out where appropriate
Adding in this intermediate ConvertMultiple since that's the right level to fix it so that it's possible to get things right for dictionaries that are fields of another type in the project, though that functionality isn't taken advantage of by the single document fixer at this point
2018-01-11 02:17:36 +00:00
GrahamTheCoder
408ba51523
Fix partially qualified access and global imports
...
Signed-off-by: GrahamTheCoder <grahamthecoder@gmail.com>
2018-01-11 01:59:36 +00:00
Siegfried Pammer
bbf2b8d38d
Do it right this time... stupid VS...
2017-12-20 11:54:01 +01:00
Siegfried Pammer
d2f354042e
Fix name of Tests assembly.
2017-12-20 11:47:57 +01:00
Christoph Wille
a81137d15a
Adjust namespaces for ics.cc & tests
2017-12-20 11:36:14 +01:00
Christoph Wille
7f6ffbd3b4
Remove Mono targets
2017-12-20 11:27:50 +01:00
Christoph Wille
8ff74a88a0
Adjust output paths for release
2017-12-20 11:15:29 +01:00
Christoph Wille
a71b334790
Explicitly call test
2017-12-20 11:07:09 +01:00
Siegfried Pammer
465df3f77f
Add source code from RefactoringEssentials (old namespaces)
2017-12-20 10:31:16 +01:00