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