From 2b9c69bed8272ef09f70e419008556ca9f8d73ba Mon Sep 17 00:00:00 2001 From: Ryan Nowak Date: Fri, 12 May 2017 13:48:30 -0700 Subject: [PATCH] Fixes #1308 and #1315 Misc project item cleanup --- .../FileSystemRazorProjectItem.cs | 2 -- .../NotFoundProjectItem.cs | 2 +- .../RazorProjectItem.cs | 8 ++++---- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/Microsoft.AspNetCore.Razor.Language/FileSystemRazorProjectItem.cs b/src/Microsoft.AspNetCore.Razor.Language/FileSystemRazorProjectItem.cs index bc08dd81c5..cd36649dc8 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/FileSystemRazorProjectItem.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/FileSystemRazorProjectItem.cs @@ -28,8 +28,6 @@ namespace Microsoft.AspNetCore.Razor.Language public override bool Exists => File.Exists; - public override string FileName => File.Name; - public override string PhysicalPath => File.FullName; public override Stream Read() => File.OpenRead(); diff --git a/src/Microsoft.AspNetCore.Razor.Language/NotFoundProjectItem.cs b/src/Microsoft.AspNetCore.Razor.Language/NotFoundProjectItem.cs index a6c4b63e7e..ecbb8dce32 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/NotFoundProjectItem.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/NotFoundProjectItem.cs @@ -9,7 +9,7 @@ namespace Microsoft.AspNetCore.Razor.Language /// /// A that does not exist. /// - public class NotFoundProjectItem : RazorProjectItem + internal class NotFoundProjectItem : RazorProjectItem { /// /// Initializes a new instance of . diff --git a/src/Microsoft.AspNetCore.Razor.Language/RazorProjectItem.cs b/src/Microsoft.AspNetCore.Razor.Language/RazorProjectItem.cs index 602f1cc5c5..6928158752 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/RazorProjectItem.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/RazorProjectItem.cs @@ -41,7 +41,7 @@ namespace Microsoft.AspNetCore.Razor.Language /// /// The root relative path of the item. /// - public virtual string CombinedPath + public string CombinedPath { get { @@ -59,7 +59,7 @@ namespace Microsoft.AspNetCore.Razor.Language /// /// The extension of the file. /// - public virtual string Extension + public string Extension { get { @@ -78,7 +78,7 @@ namespace Microsoft.AspNetCore.Razor.Language /// /// The name of the file including the extension. /// - public virtual string FileName + public string FileName { get { @@ -90,7 +90,7 @@ namespace Microsoft.AspNetCore.Razor.Language /// /// Path relative to without the extension. /// - public virtual string PathWithoutExtension + public string PathWithoutExtension { get {