Skip to content

Instantly share code, notes, and snippets.

@alanmcgovern
Created April 7, 2017 09:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alanmcgovern/0f802ef0cfe0061e63e8f7ae3b842ac1 to your computer and use it in GitHub Desktop.
Save alanmcgovern/0f802ef0cfe0061e63e8f7ae3b842ac1 to your computer and use it in GitHub Desktop.
var docId = ws.GetDocumentId (projectId, part.SourceTree.FilePath);
var document = ws.GetDocument (docId, cancellationToken);
var root = await document.GetSyntaxRootAsync (cancellationToken).ConfigureAwait (false);```
> projectId
(ProjectId, #77bfb0bd-fbe9-4e32-8748-ed901976c13d - ConflictingConstraint)
Id: {77bfb0bd-fbe9-4e32-8748-ed901976c13d}
Non-public members:
> docId
(DocumentId, #c7d284ef-2243-44dc-b3f4-ce046151037d - /Users/alan/Projects/ConflictingConstraint/ConflictingConstraint/ViewController.cs)
Id: {c7d284ef-2243-44dc-b3f4-ce046151037d}
ProjectId: (ProjectId, #77bfb0bd-fbe9-4e32-8748-ed901976c13d - ConflictingConstraint)
Non-public members:
> document
(null)
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment