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

427 Коммитов

Автор SHA1 Сообщение Дата
GrahamTheCoder aee94ba136 WIP VB -> C# Solution command works 2018-02-26 20:06:55 +00:00
GrahamTheCoder b831dffe19 Use specific method for this 2018-02-26 20:06:54 +00:00
GrahamTheCoder ff41161d38 WIP define project and solution commands 2018-02-26 20:06:54 +00:00
GrahamTheCoder dd457799c2 Use spaces for consistency with rest of project 2018-02-26 20:06:53 +00:00
GrahamTheCoder 21ae268be7 Fix: Close comment so unconvertable trivia doesn't comment rest 2018-02-26 19:04:29 +00:00
GrahamTheCoder e01487ab27
Merge pull request #30 from icsharpcode/query-expression-syntax
Minimal query expression syntax, and other minor improvements
2018-02-24 22:07:50 +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 0dffc68ef3 Helper method for brevity 2018-02-24 19:29:42 +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 7d04994675
Merge pull request #28 from icsharpcode/project-context
VB -> C# use project context
2018-02-18 11:28:26 +00:00
GrahamTheCoder 8d70fa4ea9 Tidy up trailing whitespace 2018-02-18 11:27:23 +00:00
GrahamTheCoder 8bcba796cc Use annotations to keep track of the node to be converted.
The benefit over converting just the selected characters is that we're converting what's hopefully a well formed document, so the rest of the document can be used for context, and returning something that represents a node, rather than trying to convert the text "tring", when someone slightly mis-selects.

If two layers of the node hierarachy fail to go through the trivia converter, then the whole document will be converted, which seems like an OK failure case.
2018-02-18 11:15:56 +00:00
GrahamTheCoder b9946ba8a6 Join null check with assignment 2018-02-18 10:04:49 +00:00
GrahamTheCoder 7f47412fa2 Remove empty header placeholder, git contains the license details 2018-02-18 10:03:48 +00:00
GrahamTheCoder 5ff661cc0f Allow our extension to load any version of the assemblies lying around
This only kicks in when the runtime is already having difficulty finding the required assembly anyway.
This way we be sure of compatibility with the latest version if we compile against the latest assembly shipped with VS, then just hope for compatibility with older versions.

The alternative is to compile against the oldest versions of the assemblies for a version of VS we care about, and rely on Visual Studio's own binding redirects (or our advice to it in assemblyinfo) to sort things out. The APIs we're using are quite stable, but I'd rather old versions break than new versions since "please upgrade VS" is a better response to a bug report than "please downgrade VS". If we get lots of MissingMethodException bug reports, we'll have to reconsider this.
2018-02-18 10:03:01 +00:00
GrahamTheCoder eed2cb5334 Fix namespaces 2018-02-18 09:39:40 +00:00
GrahamTheCoder ce23077a1f Deal with selection
We'd probably get a better conversion out of converting a whole file then picking a subset, but since I don't actually understand the use case, the effort isn't really worth it here.
2018-02-15 23:12:48 +00:00
GrahamTheCoder 1deeaef25c Use VisualStudioWorkspace with the user's actual references 2018-02-15 23:12:48 +00:00
GrahamTheCoder 6c63decdc0 Stash away workspace 2018-02-15 23:12:47 +00:00
GrahamTheCoder 52380dff3d Create first class type instead of two out parameters 2018-02-15 22:48:44 +00:00
GrahamTheCoder 381e006d21 Load workspace 2018-02-15 22:48:44 +00:00
GrahamTheCoder 30fcc649f1 Deal with nulls 2018-02-11 17:26:31 +00:00
GrahamTheCoder b0f90b96d9
Merge pull request #26 from icsharpcode/parameter-fix
Deal with missing type and array bounds attached to identifier
2018-02-11 17:18:34 +00:00
GrahamTheCoder d25e6fe228 Deal with missing type and array bounds attached to identifier 2018-02-11 17:14:24 +00:00
GrahamTheCoder 56d2bb0e29
Merge pull request #25 from icsharpcode/convert-standalone-expressions
Convert standalone expressions and improve initializer support
2018-02-11 12:35:15 +00:00
GrahamTheCoder 70765d2576 Implement ObjectMemberInitializerSyntax 2018-02-11 12:31:00 +00:00
GrahamTheCoder f59bf2709d Just use params - no need for such attempts at micro-optimization 2018-02-11 12:30:59 +00:00
GrahamTheCoder 875213c2c4 Implement anonymous object creation 2018-02-11 12:30:59 +00:00
GrahamTheCoder e1f6be8387 Pull out method for creating these lists 2018-02-11 12:30:59 +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 9e7a6164e1 Extract method 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 b5a1b9a232
Merge pull request #24 from icsharpcode/port-trivia
Convert trivia (i.e. mostly comments)
2018-02-10 12:21:52 +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 a0f169c9fd Consistently use space indentation in web project 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 c37df63169 Manually port for token 2018-02-10 11:41:27 +00:00
GrahamTheCoder 9d2d4ce919 Provide extra helper method 2018-02-10 11:41:26 +00:00
GrahamTheCoder 730478eaa1 Temporarily disable since it's messing up EOL 2018-02-10 11:41:26 +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