Class ParseOptions
Represents parse options common to C# and VB.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Loretta.CodeAnalysis
Assembly: Loretta.CodeAnalysis.dll
Syntax
public abstract class ParseOptions
Properties
| Improve this Doc View SourceDocumentationMode
Gets a value indicating whether the documentation comments are parsed.
Declaration
public DocumentationMode DocumentationMode { get; protected set; }
Property Value
Type | Description |
---|---|
DocumentationMode |
|
Errors
Errors collection related to an incompatible set of parse options
Declaration
public ImmutableArray<Diagnostic> Errors { get; }
Property Value
Type | Description |
---|---|
ImmutableArray<Diagnostic> |
Features
Returns the experimental features.
Declaration
public abstract IReadOnlyDictionary<string, string> Features { get; }
Property Value
Type | Description |
---|---|
IReadOnlyDictionary<System.String, System.String> |
Language
Gets the source language ("Lua").
Declaration
public abstract string Language { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceEquals(Object)
Declaration
public abstract override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
GetHashCode()
Declaration
public abstract override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()
|
Improve this Doc
View Source
WithDocumentationMode(DocumentationMode)
Creates a new options instance with the specified documentation mode.
Declaration
public ParseOptions WithDocumentationMode(DocumentationMode documentationMode)
Parameters
Type | Name | Description |
---|---|---|
DocumentationMode | documentationMode |
Returns
Type | Description |
---|---|
ParseOptions |
WithFeatures(IEnumerable<KeyValuePair<String, String>>)
Enable some experimental language features for testing.
Declaration
public ParseOptions WithFeatures(IEnumerable<KeyValuePair<string, string>> features)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<KeyValuePair<System.String, System.String>> | features |
Returns
Type | Description |
---|---|
ParseOptions |
Operators
| Improve this Doc View SourceEquality(ParseOptions, ParseOptions)
Checks whether two parse options are equal.
Declaration
public static bool operator ==(ParseOptions left, ParseOptions right)
Parameters
Type | Name | Description |
---|---|---|
ParseOptions | left | |
ParseOptions | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(ParseOptions, ParseOptions)
Checks whether two parse options are not equal.
Declaration
public static bool operator !=(ParseOptions left, ParseOptions right)
Parameters
Type | Name | Description |
---|---|---|
ParseOptions | left | |
ParseOptions | right |
Returns
Type | Description |
---|---|
System.Boolean |