Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

* Redesign CompilationResult so that it does not throw when CompiledType is accessed #2045

Closed
wants to merge 1 commit into from

Conversation

pranavkm
Copy link
Contributor

  • Update to use ICompilationException interface from Microsoft.Framework.Runtime
  • Update to use RoslynCompilationException

Fixes #955

@ghost ghost added the cla-not-required label Feb 20, 2015
{
CompilationFailures = new[] { compilationFailure };
}

/// <inheritdoc />
public IEnumerable<ICompilationFailure> CompilationFailures { get; }

private static string FormatMessage(ICompilationFailure compilationFailure)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We changed Diagnostics \ Helios to not print compilation messages. So we can do better with showing exception messages in the debugger now.

@pranavkm
Copy link
Contributor Author

cc @dougbu

/// <summary>
/// Creates a new instance of <see cref="CompilationResult"/>.
/// Creates a new instance of <see cref="CompilationResult"/> that represents a success in compilation.
Copy link
Member

Choose a reason for hiding this comment

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

"that represents" (contains exactly two noise words) -> "for"

Copy link
Member

Choose a reason for hiding this comment

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

  • and end with "a successful compilation"
  • similarly, "for a failed compilation" below

@dougbu
Copy link
Member

dougbu commented Feb 22, 2015

@pranavkm
Copy link
Contributor Author

Updated. I'll change the file names for RazorCompilation* before checking in

private Type _type;

/// <summary>
// <summary>
Copy link
Member

Choose a reason for hiding this comment

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

typo: ///

@dougbu
Copy link
Member

dougbu commented Feb 23, 2015

:shipit: with a couple of typos and nits fixed

/// </summary>
public class CompilationFailure : ICompilationFailure
public class RazorCompilationFailure : ICompilationFailure
Copy link
Member

Choose a reason for hiding this comment

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

Rename file too

Copy link
Member

Choose a reason for hiding this comment

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

I could go either way on this naming. There isn't really any functionality in this class that makes this "razor" specific.

@rynowak
Copy link
Member

rynowak commented Feb 24, 2015

…ype is

accessed.
* Update to use ICompilationException interface from
  Microsoft.Framework.Runtime
* Update to use RoslynCompilationException

Fixes #955
@pranavkm
Copy link
Contributor Author

Updated.

@rynowak
Copy link
Member

rynowak commented Feb 26, 2015

:shipit:

@dougbu
Copy link
Member

dougbu commented Mar 10, 2015

commits 717c2bf and a4e01bf

@dougbu dougbu closed this Mar 10, 2015
@dougbu dougbu deleted the 955 branch March 10, 2015 16:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants