-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for project references (#165)
This adds support for detecting project references when reading through the binlog. This is mostly based on matching a compiler call with its output binaries (by MVID) and then re-hydrating project references based off of that. closes #24
- Loading branch information
Showing
16 changed files
with
359 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Converting looks like this | ||
|
||
public static PortableExecutableReference EmitToPortableExecutableReference( | ||
this Compilation comp, | ||
EmitOptions options = null, | ||
bool embedInteropTypes = false, | ||
ImmutableArray<string> aliases = default, | ||
DiagnosticDescription[] expectedWarnings = null) | ||
{ | ||
var image = comp.EmitToArray(options, expectedWarnings: expectedWarnings); | ||
if (comp.Options.OutputKind == OutputKind.NetModule) | ||
{ | ||
return ModuleMetadata.CreateFromImage(image).GetReference(display: comp.MakeSourceModuleName()); | ||
} | ||
else | ||
{ |
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
Binary file added
BIN
+8.3 MB
src/Basic.CompilerLog.UnitTests/Resources/MetadataVersion2/console.complog
Binary file not shown.
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
Oops, something went wrong.