次の方法で共有


VisualBasicCommandLineParser.ParseConditionalCompilationSymbols Method

Definition

Parses Conditional Compilations Symbols. Given the string of conditional compilation symbols from the project system, parse them and merge them with an IReadOnlyDictionary ready to be given to the compilation.

public static System.Collections.Generic.IReadOnlyDictionary<string,object> ParseConditionalCompilationSymbols (string symbolList, out System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Diagnostic> diagnostics, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object>> symbols = default);
static member ParseConditionalCompilationSymbols : string * seq * seq<System.Collections.Generic.KeyValuePair<string, obj>> -> System.Collections.Generic.IReadOnlyDictionary<string, obj>
Public Shared Function ParseConditionalCompilationSymbols (symbolList As String, ByRef diagnostics As IEnumerable(Of Diagnostic), Optional symbols As IEnumerable(Of KeyValuePair(Of String, Object)) = Nothing) As IReadOnlyDictionary(Of String, Object)

Parameters

symbolList
String

The conditional compilation string. This takes the form of a comma delimited list of NAME=Value pairs, where Value may be a quoted string or integer.

diagnostics
IEnumerable<Diagnostic>

A collection of reported diagnostics during parsing of symbolList, can be empty IEnumerable.

symbols
IEnumerable<KeyValuePair<String,Object>>

A collection representing existing symbols. Symbols parsed from symbolList will be merged with this dictionary.

Returns

Exceptions

Invalid value provided.

Applies to