Class
RavenQuoterOptions
class RavenQuoterOptions
Namespace: Raven.CodeAnalysis.Syntax
Assembly: Raven.CodeAnalysis.dll
Source file: RavenQuoterOptions.cs
Inheritance: Object → RavenQuoterOptions
Options for RavenQuoter.
Constructors
1 item
RavenQuoterOptions()
No summary available.
Properties
14 items
FullyQualifyNames: bool
Fully qualify syntax factory, syntax kind, and syntax node type names. This allows the generated expression to bind without syntax namespace imports in the consuming source file.
GeneratedClassName: string
Name of the generated class when WrapInClass is true.
GeneratedMethodName: string
Name of the generated factory method when WrapInClass is true.
GenerateUsingDirectives: bool
If true, imports appropriate for Raven.CodeAnalysis.Syntax.RavenQuoterOptions.OutputLanguage are generated. If false, no imports are generated.
IgnoreNullValue: bool
If true, named arguments that are null are not printed. If false, named arguments that are null are printed: expression: null
IncludeTrivia: bool
Include leading/trailing trivia in the quoted code. If false, trivia is ignored.
InlineSingleArg: bool
If true, single args will be inlined: IdentifierName(Identifier("Foo")) If false, the default behavior: IdentifierName( Identifier("Foo") )
NodeSourceOverride: (SyntaxNode -> string?)?
Optionally supplies source text to emit in place of an individual syntax node's factory construction.
NormalizeWhitespace: bool
Append a call to NormalizeWhitespace() to the generated root. Disable this when the generated factory expression must preserve the quoted node's exact static result type.
OutputLanguage: RavenQuoterOutputLanguage
The source language used for imports, declarations, and collections.
UseFactoryPropsForSimpleTokens: bool
If true, simple tokens are instantiated via their factory properties. If false, simple tokens are instantiated via Token(SyntaxKind.Kind).
UseNamedArguments: bool
If true, named arguments are generated.
UseStaticSyntaxFactoryImport: bool
If true, imports SyntaxFactory members and emits CompilationUnit(). If false, emits SyntaxFactory.CompilationUnit().
WrapInClass: bool
If true, wraps the expression in a class with a Create() method. If false, only the factory expression followed by .NormalizeWhitespace() is emitted.
Methods
4 items
Equals(obj: object?) -> bool
Determines whether the specified object is equal to the current object.
Inherited from Object.Equals
GetHashCode() -> int
Serves as the default hash function.
Inherited from Object.GetHashCode
GetType() -> Type
Gets the System.Type of the current instance.
Inherited from Object.GetType
ToString() -> string?
Returns a string that represents the current object.
Inherited from Object.ToString