Class LuaParseOptions
This class stores several source parsing related options and offers access to their values.
Implements
IEquatable<LuaParseOptions>
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.Lua
Assembly: Loretta.CodeAnalysis.Lua.dll
Syntax
public sealed class LuaParseOptions : ParseOptions
Constructors
| Improve this Doc View SourceLuaParseOptions(LuaSyntaxOptions)
Initializes a new set of parse options.
Declaration
public LuaParseOptions(LuaSyntaxOptions syntaxOptions)
Parameters
Type | Name | Description |
---|---|---|
LuaSyntaxOptions | syntaxOptions |
Properties
| Improve this Doc View SourceDefault
The default parse options.
Declaration
public static LuaParseOptions Default { get; }
Property Value
Type | Description |
---|---|
LuaParseOptions |
Language
Gets the source language ("Lua").
Declaration
public override string Language { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
| Improve this Doc View SourceSyntaxOptions
The LuaSyntaxOptions to use when parsing.
Declaration
public LuaSyntaxOptions SyntaxOptions { get; }
Property Value
Type | Description |
---|---|
LuaSyntaxOptions |
Methods
| Improve this Doc View SourceEquals(LuaParseOptions)
Declaration
public bool Equals(LuaParseOptions other)
Parameters
Type | Name | Description |
---|---|---|
LuaParseOptions | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceGetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
| Improve this Doc View SourceWithSyntaxOptions(LuaSyntaxOptions)
Creates a new instance with the syntax options replaced by the provided ones.
Declaration
public LuaParseOptions WithSyntaxOptions(LuaSyntaxOptions syntaxOptions)
Parameters
Type | Name | Description |
---|---|---|
LuaSyntaxOptions | syntaxOptions |
Returns
Type | Description |
---|---|
LuaParseOptions |
Implements
IEquatable<>