-
Notifications
You must be signed in to change notification settings - Fork 842
Embedded source #1591
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Embedded source #1591
Conversation
|
@dotnet-bot bot test this please |
| static let chunkSize = 32 * 1024 | ||
| let builder = new BlobBuilder(chunkSize) | ||
|
|
||
| override this.CanWrite with get() = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"with get()" is not idiomatic - you can just remove it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
| let documentIndex = | ||
| let includeSource file = | ||
| let isInList = | ||
| if embedSourceList |> List.length = 0 then false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can just use .Length instead of |> List.length
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
| if embedSourceList |> List.length = 0 then false | ||
| else | ||
| match embedSourceList |> List.tryFind(fun f -> String.Compare(file, f, StringComparison.OrdinalIgnoreCase ) = 0) with | ||
| | Some _ -> true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This match is the same as |> Option.isSome?
| metadata.GetOrAddGuid(hashAlg), | ||
| metadata.GetOrAddBlob(checkSum.ToImmutableArray()), | ||
| metadata.GetOrAddGuid(corSymLanguageTypeFSharp) | ||
| let h = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A better name than h ?
|
Nice work :) |
Add support for embedded source code files in pdbs.
Update command line to support /embed and /embed:
Add some more command line testing.
Do not support /embed in fsi.