Skip to content

Commit

Permalink
add xml doc on InvalidDataException
Browse files Browse the repository at this point in the history
  • Loading branch information
heejaechang committed Jan 31, 2017
1 parent e83cd71 commit 3c99db5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Workspaces/Core/Desktop/Workspace/FileTextLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ protected virtual SourceText CreateText(Stream stream, Workspace workspace)
/// Load a text and a version of the document in the workspace.
/// </summary>
/// <exception cref="IOException"></exception>
/// <exception cref="InvalidDataException"></exception>
public override async Task<TextAndVersion> LoadTextAndVersionAsync(Workspace workspace, DocumentId documentId, CancellationToken cancellationToken)
{
ValidateFileLength(workspace, _path);
Expand Down Expand Up @@ -185,6 +186,11 @@ public override async Task<TextAndVersion> LoadTextAndVersionAsync(Workspace wor
return textAndVersion;
}

/// <summary>
/// Load a text and a version of the document in the workspace.
/// </summary>
/// <exception cref="IOException"></exception>
/// <exception cref="InvalidDataException"></exception>
internal override TextAndVersion LoadTextAndVersionSynchronously(Workspace workspace, DocumentId documentId, CancellationToken cancellationToken)
{
ValidateFileLength(workspace, _path);
Expand Down

0 comments on commit 3c99db5

Please sign in to comment.