-
Notifications
You must be signed in to change notification settings - Fork 4k
/
CSharpCommandLineArguments.cs
48 lines (41 loc) · 1.58 KB
/
CSharpCommandLineArguments.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#nullable enable
namespace Microsoft.CodeAnalysis.CSharp
{
/// <summary>
/// The command line arguments to a C# <see cref="CSharpCompiler"/>.
/// </summary>
public sealed class CSharpCommandLineArguments : CommandLineArguments
{
/// <summary>
/// Gets the compilation options for the C# <see cref="Compilation"/>
/// created from the <see cref="CSharpCompiler"/>.
/// </summary>
public new CSharpCompilationOptions CompilationOptions { get; internal set; }
/// <summary>
/// Gets the parse options for the C# <see cref="Compilation"/>.
/// </summary>
public new CSharpParseOptions ParseOptions { get; internal set; }
protected override ParseOptions ParseOptionsCore
{
get { return ParseOptions; }
}
protected override CompilationOptions CompilationOptionsCore
{
get { return CompilationOptions; }
}
/// <value>
/// Should the format of error messages include the line and column of
/// the end of the offending text.
/// </value>
internal bool ShouldIncludeErrorEndLocation { get; set; }
internal CSharpCommandLineArguments()
{
// Always initialized by CSharpCommandLineParser.Parse
CompilationOptions = null!;
ParseOptions = null!;
}
}
}