// 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; using System.Collections.Generic; using System.Linq; namespace Microsoft.AspNetCore.Razor.Language { internal class DefaultRazorParserOptionsBuilder : RazorParserOptionsBuilder { public DefaultRazorParserOptionsBuilder(bool designTime, RazorLanguageVersion version) { DesignTime = designTime; Version = version; } public override bool DesignTime { get; } public override ICollection Directives { get; } = new List(); public override bool ParseLeadingDirectives { get; set; } public override RazorLanguageVersion Version { get; } public override RazorParserOptions Build() { return new DefaultRazorParserOptions(Directives.ToArray(), DesignTime, ParseLeadingDirectives, Version); } } }