// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.AspNetCore.Razor.Language; using Microsoft.CodeAnalysis.Text; namespace Microsoft.CodeAnalysis.Razor.ProjectSystem { internal abstract class DocumentSnapshot { public abstract string FilePath { get; } public abstract string TargetPath { get; } public abstract ProjectSnapshot Project { get; } public abstract bool SupportsOutput { get; } public abstract IReadOnlyList GetImports(); public abstract Task GetTextAsync(); public abstract Task GetTextVersionAsync(); public abstract Task GetGeneratedOutputAsync(); public abstract bool TryGetText(out SourceText result); public abstract bool TryGetTextVersion(out VersionStamp result); public abstract bool TryGetGeneratedOutput(out RazorCodeDocument result); } }