-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pull options and projectcontents converter out of language conversion
Tweaks lots of the public API
- Loading branch information
1 parent
8f23f5f
commit ef0420e
Showing
17 changed files
with
182 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using Microsoft.CodeAnalysis; | ||
|
||
namespace ICSharpCode.CodeConverter.Shared | ||
{ | ||
public class ConversionOptions | ||
{ | ||
public string RootNamespaceOverride { get; set; } | ||
public CompilationOptions TargetCompilationOptionsOverride { get; set; } | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
ICSharpCode.CodeConverter/Shared/IProjectContentsConverter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System.Collections.Generic; | ||
using System.Threading.Tasks; | ||
using Microsoft.CodeAnalysis; | ||
|
||
namespace ICSharpCode.CodeConverter.Shared | ||
{ | ||
public interface IProjectContentsConverter | ||
{ | ||
Task InitializeSourceAsync(Project project); | ||
string LanguageVersion { get; } | ||
string RootNamespace { get; } | ||
Project Project { get; } | ||
Task<SyntaxNode> SingleFirstPass(Document document); | ||
|
||
Task<(Project project, List<(string Path, DocumentId DocId, string[] Errors)> firstPassDocIds)> | ||
GetConvertedProject((string Path, SyntaxNode Node, string[] Errors)[] firstPassResults); | ||
} | ||
} |
Oops, something went wrong.