Beispiel #1
0
 public CommandLineParser(ICommandLineLexer lexer,
                          ISemanticModel semanticModel, SyntaxFactory syntaxFactory)
 {
     _lexer         = lexer ?? throw new ArgumentNullException(nameof(lexer));
     _semanticModel = semanticModel ?? throw new ArgumentNullException(nameof(semanticModel));
     _syntaxFactory = syntaxFactory ?? throw new ArgumentNullException(nameof(syntaxFactory));
 }
 /// <summary>
 /// Lexes the command line for this process. The returned command line includes the process name.
 /// </summary>
 /// <returns>The lexed command line.</returns>
 public static IEnumerable <string> Lex(this ICommandLineLexer @this) => @this.Lex(Environment.CommandLine);