Skip to content

Conversation

@KevinRansom
Copy link
Contributor

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.

@KevinRansom
Copy link
Contributor Author

@dotnet-bot bot test this please

static let chunkSize = 32 * 1024
let builder = new BlobBuilder(chunkSize)

override this.CanWrite with get() = true
Copy link
Contributor

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

Copy link
Contributor Author

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
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Contributor Author

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
Copy link
Contributor

@dsyme dsyme Oct 11, 2016

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 =
Copy link
Contributor

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 ?

@dsyme
Copy link
Contributor

dsyme commented Oct 11, 2016

Nice work :)

@KevinRansom KevinRansom merged commit 56c3255 into dotnet:master Oct 13, 2016
@KevinRansom KevinRansom deleted the embeddedSource branch October 15, 2016 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants