7 instantiations of VisualBasicParseOptions
Microsoft.CodeAnalysis.VisualBasic (7)
VisualBasicParseOptions.vb (7)
64
MyClass.
New
(
140
Return New
VisualBasicParseOptions
(Me) With {._specifiedLanguageVersion = version, ._languageVersion = effectiveVersion}
154
Return New
VisualBasicParseOptions
(Me) With {.SpecifiedKind = kind, .Kind = effectiveKind}
167
Return New
VisualBasicParseOptions
(Me) With {.DocumentationMode = documentationMode}
202
Return New
VisualBasicParseOptions
(Me) With {._preprocessorSymbols = symbols}
233
Return New
VisualBasicParseOptions
(Me) With {._features = ImmutableDictionary(Of String, String).Empty}
235
Return New
VisualBasicParseOptions
(Me) With {._features = features.ToImmutableDictionary(StringComparer.OrdinalIgnoreCase)}
102 references to VisualBasicParseOptions
Microsoft.CodeAnalysis.VisualBasic (102)
Binding\Binder_Attributes.vb (1)
495
DirectCast(identifierName.SyntaxTree.Options,
VisualBasicParseOptions
).LanguageVersion,
Binding\Binder_Expressions.vb (1)
2125
DirectCast(node.SyntaxTree.Options,
VisualBasicParseOptions
).LanguageVersion,
Binding\Binder_Invocation.vb (1)
2904
DirectCast(argument.Syntax.SyntaxTree.Options,
VisualBasicParseOptions
).LanguageVersion,
Binding\Binder_Statements.vb (1)
1966
DirectCast(node.SyntaxTree.Options,
VisualBasicParseOptions
).LanguageVersion,
CommandLine\VisualBasicCommandLineArguments.vb (1)
35
Public Overloads Property ParseOptions As
VisualBasicParseOptions
CommandLine\VisualBasicCommandLineParser.vb (1)
2094
Using p = New InternalSyntax.Parser(SyntaxFactory.MakeSourceText(symbolList, offset),
VisualBasicParseOptions
.Default)
CommandLine\VisualBasicCompiler.vb (3)
56
parseOptions As
VisualBasicParseOptions
,
57
scriptParseOptions As
VisualBasicParseOptions
,
301
Return VisualBasicGeneratorDriver.Create(generators, additionalTexts, DirectCast(parseOptions,
VisualBasicParseOptions
), analyzerConfigOptionsProvider,
Compilation\VisualBasicCompilation.vb (4)
54
Private Shared ReadOnly s_myTemplateCache As ConcurrentLruCache(Of
VisualBasicParseOptions
, SyntaxTree) =
55
New ConcurrentLruCache(Of
VisualBasicParseOptions
, SyntaxTree)(capacity:=5)
248
Dim parseOptions = If(compilationOptions.ParseOptions,
VisualBasicParseOptions
.Default)
491
Dim version = CType(tree.Options,
VisualBasicParseOptions
).LanguageVersion
Compilation\VisualBasicDeterministicKeyBuilder.vb (1)
25
Dim basicOptions = TryCast(parseOptions,
VisualBasicParseOptions
)
OptionsValidator.vb (1)
30
Dim tree = VisualBasicSyntaxTree.ParseText(SourceText.From(importFileText),
VisualBasicParseOptions
.Default, "")
Parser\Parser.vb (1)
52
Friend Sub New(text As SourceText, options As
VisualBasicParseOptions
, Optional cancellationToken As CancellationToken = Nothing)
Scanner\Blender.vb (1)
187
options As
VisualBasicParseOptions
)
Scanner\Scanner.vb (5)
50
Private ReadOnly _options As
VisualBasicParseOptions
106
Friend Sub New(textToScan As SourceText, options As
VisualBasicParseOptions
, Optional isScanningForExpressionCompiler As Boolean = False)
144
Friend ReadOnly Property Options As
VisualBasicParseOptions
150
Friend Shared Function GetPreprocessorConstants(options As
VisualBasicParseOptions
) As ImmutableDictionary(Of String, CConst)
2702
Private Shared Function CheckFeatureAvailability(parseOptions As
VisualBasicParseOptions
, feature As Feature) As Boolean
SourceGeneration\VisualBasicGeneratorDriver.vb (4)
22
Friend Sub New(parseOptions As
VisualBasicParseOptions
, generators As ImmutableArray(Of ISourceGenerator), optionsProvider As AnalyzerConfigOptionsProvider, additionalTexts As ImmutableArray(Of AdditionalText), driverOptions As GeneratorDriverOptions)
37
Return VisualBasicSyntaxTree.ParseTextLazy(input.Text, CType(_state.ParseOptions,
VisualBasicParseOptions
), fileName)
40
Public Shared Function Create(generators As ImmutableArray(Of ISourceGenerator), Optional additionalTexts As ImmutableArray(Of AdditionalText) = Nothing, Optional parseOptions As
VisualBasicParseOptions
= Nothing, Optional analyzerConfigOptionsProvider As AnalyzerConfigOptionsProvider = Nothing, Optional driverOptions As GeneratorDriverOptions = Nothing) As VisualBasicGeneratorDriver
46
Public Shared Function Create(generators As ImmutableArray(Of ISourceGenerator), additionalTexts As ImmutableArray(Of AdditionalText), parseOptions As
VisualBasicParseOptions
, analyzerConfigOptionsProvider As AnalyzerConfigOptionsProvider) As VisualBasicGeneratorDriver
Symbols\ConstraintsHelper.vb (1)
469
DirectCast(syntaxNode.SyntaxTree.Options,
VisualBasicParseOptions
).LanguageVersion,
Syntax\SyntaxFactory.vb (2)
1067
Dim options As
VisualBasicParseOptions
= DirectCast(tree.Options,
VisualBasicParseOptions
)
Syntax\SyntaxNodeFactories.vb (19)
37
Return VisualBasicSyntaxTree.Create(DirectCast(root, VisualBasicSyntaxNode), If(DirectCast(options,
VisualBasicParseOptions
),
VisualBasicParseOptions
.Default), path, encoding, SourceHashAlgorithm.Sha1)
62
Return VisualBasicSyntaxTree.ParseText(text, DirectCast(options,
VisualBasicParseOptions
), path, cancellationToken)
92
Return VisualBasicSyntaxTree.ParseText(text, DirectCast(options,
VisualBasicParseOptions
), path, diagnosticOptions, cancellationToken)
104
Dim s = New InternalSyntax.Scanner(MakeSourceText(text, offset),
VisualBasicParseOptions
.Default)
116
Dim s = New InternalSyntax.Scanner(MakeSourceText(text, offset),
VisualBasicParseOptions
.Default)
129
Dim s = New InternalSyntax.Scanner(MakeSourceText(text, offset),
VisualBasicParseOptions
.Default)
151
Optional options As
VisualBasicParseOptions
= Nothing) As IEnumerable(Of SyntaxToken)
153
Using parser = New InternalSyntax.Parser(MakeSourceText(text, offset), If(options,
VisualBasicParseOptions
.Default))
178
Using p = New InternalSyntax.Parser(MakeSourceText(text, offset),
VisualBasicParseOptions
.Default)
199
Using p = New InternalSyntax.Parser(MakeSourceText(text, offset), If(DirectCast(options,
VisualBasicParseOptions
),
VisualBasicParseOptions
.Default))
223
Using p = New InternalSyntax.Parser(MakeSourceText(text, offset),
VisualBasicParseOptions
.Default)
236
Using p = New InternalSyntax.Parser(MakeSourceText(text, offset),
VisualBasicParseOptions
.Default)
247
Public Shared Function ParseCompilationUnit(text As String, Optional offset As Integer = 0, Optional options As
VisualBasicParseOptions
= Nothing) As CompilationUnitSyntax
248
Using p = New InternalSyntax.Parser(MakeSourceText(text, offset), If(options,
VisualBasicParseOptions
.Default))
259
Using p = New InternalSyntax.Parser(MakeSourceText(text, offset),
VisualBasicParseOptions
.Default)
272
Using p = New InternalSyntax.Parser(MakeSourceText(text, offset),
VisualBasicParseOptions
.Default)
292
Using scanner As New InternalSyntax.Scanner(MakeSourceText(text, 0),
VisualBasicParseOptions
.Default) ' NOTE: Default options should be enough
Syntax\VisualBasicSyntaxTree.ConditionalSymbolsMap.vb (2)
56
Friend Shared Function Create(syntaxRoot As VisualBasicSyntaxNode, options As
VisualBasicParseOptions
) As ConditionalSymbolsMap
67
Friend Function Build(root As SyntaxNodeOrToken, options As
VisualBasicParseOptions
) As ImmutableDictionary(Of String, Stack(Of Tuple(Of InternalSyntax.CConst, Integer)))
Syntax\VisualBasicSyntaxTree.DebuggerSyntaxTree.vb (1)
16
Friend Sub New(root As VisualBasicSyntaxNode, text As SourceText, options As
VisualBasicParseOptions
)
Syntax\VisualBasicSyntaxTree.DummySyntaxTree.vb (3)
49
Public Overrides ReadOnly Property Options As
VisualBasicParseOptions
51
Return
VisualBasicParseOptions
.Default
91
Return Create(DirectCast(root, VisualBasicSyntaxNode), DirectCast(options,
VisualBasicParseOptions
), FilePath, Encoding, ChecksumAlgorithm)
Syntax\VisualBasicSyntaxTree.LazySyntaxTree.vb (4)
18
Private ReadOnly _options As
VisualBasicParseOptions
27
options As
VisualBasicParseOptions
,
95
Public Overrides ReadOnly Property Options As
VisualBasicParseOptions
124
DirectCast(options,
VisualBasicParseOptions
),
Syntax\VisualBasicSyntaxTree.ParsedSyntaxTree.vb (4)
22
Private ReadOnly _options As
VisualBasicParseOptions
40
options As
VisualBasicParseOptions
,
120
Public Overrides ReadOnly Property Options As
VisualBasicParseOptions
149
DirectCast(options,
VisualBasicParseOptions
),
Syntax\VisualBasicSyntaxTree.vb (16)
27
Public MustOverride Shadows ReadOnly Property Options As
VisualBasicParseOptions
161
Optional options As
VisualBasicParseOptions
= Nothing,
174
options:=If(options,
VisualBasicParseOptions
.Default),
181
options As
VisualBasicParseOptions
,
200
Friend Shared Function CreateForDebugger(root As VisualBasicSyntaxNode, text As SourceText, options As
VisualBasicParseOptions
) As SyntaxTree
221
options:=
VisualBasicParseOptions
.Default,
229
Optional options As
VisualBasicParseOptions
= Nothing,
231
Return New LazySyntaxTree(text, If(options,
VisualBasicParseOptions
.Default), path, Nothing)
236
Optional options As
VisualBasicParseOptions
= Nothing,
246
Optional options As
VisualBasicParseOptions
= Nothing,
264
Optional options As
VisualBasicParseOptions
= Nothing,
280
Optional parseOptions As
VisualBasicParseOptions
= Nothing,
289
parseOptions = If(parseOptions,
VisualBasicParseOptions
.Default)
612
options As
VisualBasicParseOptions
,
624
options As
VisualBasicParseOptions
,
633
options As
VisualBasicParseOptions
,
VisualBasicCompilationOptions.vb (11)
26
Private _parseOptions As
VisualBasicParseOptions
59
''' <param name="parseOptions">An optional parameter to specify the parse options. <see cref="
VisualBasicParseOptions
"/></param>
79
Optional parseOptions As
VisualBasicParseOptions
= Nothing,
156
parseOptions As
VisualBasicParseOptions
,
224
parseOptions As
VisualBasicParseOptions
,
468
Public ReadOnly Property ParseOptions As
VisualBasicParseOptions
923
''' <param name="options">The parse option setting. <see cref="Microsoft.CodeAnalysis.VisualBasic.
VisualBasicParseOptions
"/></param>
925
Public Function WithParseOptions(options As
VisualBasicParseOptions
) As VisualBasicCompilationOptions
1155
parseOptions As
VisualBasicParseOptions
,
1220
parseOptions As
VisualBasicParseOptions
,
1286
Optional parseOptions As
VisualBasicParseOptions
= Nothing,
VisualBasicParseOptions.vb (13)
17
Implements IEquatable(Of
VisualBasicParseOptions
)
19
Public Shared ReadOnly Property [Default] As
VisualBasicParseOptions
= New VisualBasicParseOptions()
63
Private Sub New(other As
VisualBasicParseOptions
)
134
Public Shadows Function WithLanguageVersion(version As LanguageVersion) As
VisualBasicParseOptions
148
Public Shadows Function WithKind(kind As SourceCodeKind) As
VisualBasicParseOptions
162
Public Overloads Function WithDocumentationMode(documentationMode As DocumentationMode) As
VisualBasicParseOptions
175
Public Shadows Function WithPreprocessorSymbols(symbols As IEnumerable(Of KeyValuePair(Of String, Object))) As
VisualBasicParseOptions
184
Public Shadows Function WithPreprocessorSymbols(ParamArray symbols As KeyValuePair(Of String, Object)()) As
VisualBasicParseOptions
193
Public Shadows Function WithPreprocessorSymbols(symbols As ImmutableArray(Of KeyValuePair(Of String, Object))) As
VisualBasicParseOptions
230
Public Shadows Function WithFeatures(features As IEnumerable(Of KeyValuePair(Of String, String))) As
VisualBasicParseOptions
275
Public Overloads Function Equals(other As
VisualBasicParseOptions
) As Boolean Implements IEquatable(Of
VisualBasicParseOptions
).Equals
301
Return Equals(TryCast(obj,
VisualBasicParseOptions
))