public CompilerContext(SourceUnit sourceUnit, CompilerOptions options, ErrorSink errorSink, ParserSink parserSink) { ContractUtils.RequiresNotNull(sourceUnit, "sourceUnit"); ContractUtils.RequiresNotNull(errorSink, "errorSink"); ContractUtils.RequiresNotNull(parserSink, "parserSink"); ContractUtils.RequiresNotNull(options, "options"); _sourceUnit = sourceUnit; _options = options; _errors = errorSink; _parserSink = parserSink; }
public CompilerContext(SourceUnit sourceUnit, CompilerOptions options, ErrorSink errorSink, ParserSink parserSink) { ContractUtils.RequiresNotNull(sourceUnit, "sourceUnit"); ContractUtils.RequiresNotNull(errorSink, "errorSink"); ContractUtils.RequiresNotNull(parserSink, "parserSink"); ContractUtils.RequiresNotNull(options, "options"); _sourceUnit = sourceUnit; _options = options; _errors = errorSink; _parserSink = parserSink; }
public CompilerContext(SourceUnit sourceUnit, CompilerOptions options, ErrorSink errorSink, ParserSink parserSink) { ContractUtils.RequiresNotNull(sourceUnit, nameof(sourceUnit)); ContractUtils.RequiresNotNull(errorSink, nameof(errorSink)); ContractUtils.RequiresNotNull(parserSink, nameof(parserSink)); ContractUtils.RequiresNotNull(options, nameof(options)); SourceUnit = sourceUnit; Options = options; Errors = errorSink; ParserSink = parserSink; }
private Parser(Tokenizer tokenizer, ErrorSink errorSink, ParserSink parserSink, ModuleOptions languageFeatures) { ContractUtils.RequiresNotNull(tokenizer, "tokenizer"); ContractUtils.RequiresNotNull(errorSink, "errorSink"); ContractUtils.RequiresNotNull(parserSink, "parserSink"); tokenizer.ErrorSink = new TokenizerErrorSink(this); _tokenizer = tokenizer; _errors = errorSink; _sink = parserSink; Reset(tokenizer.SourceUnit, languageFeatures); }
private TotemParser(CompilerContext context, TotemTokenizer tokenizer, ErrorSink errorSink, ParserSink parserSink) { ContractUtils.RequiresNotNull(tokenizer, "tokenizer"); ContractUtils.RequiresNotNull(errorSink, "errorSink"); ContractUtils.RequiresNotNull(parserSink, "parserSink"); tokenizer.ErrorSink = new TokenizerErrorSink(this); _tokenizer = tokenizer; _errors = errorSink; if (parserSink != ParserSink.Null) _sink = parserSink; _context = context; Reset(tokenizer.SourceUnit); }
private Parser(CompilerContext context, Tokenizer tokenizer, ErrorSink errorSink, ParserSink parserSink, ModuleOptions languageFeatures) { ContractUtils.RequiresNotNull(tokenizer, "tokenizer"); ContractUtils.RequiresNotNull(errorSink, "errorSink"); ContractUtils.RequiresNotNull(parserSink, "parserSink"); tokenizer.ErrorSink = new TokenizerErrorSink(this); _tokenizer = tokenizer; _errors = errorSink; if (parserSink != ParserSink.Null) { _sink = parserSink; } _context = context; Reset(tokenizer.SourceUnit, languageFeatures); }