public Message(SourceCodeRef srcRef, MessageType type, int code, ICodeProcessor from, SourcePosition position, Token token, string text, Exception exception) { SourceCodeReference = srcRef; Type = type; Code = code; From = from; Position = position; this.Token = token; Text = text ?? string.Empty; AssociatedException = exception; }
public CodeProcessorProxy() { try { var builder = new ContainerBuilder(); builder.RegisterModule <LocalProcessingModule>(); var container = builder.Build(); _processor = container.Resolve <ICodeProcessor>(); } catch (Exception ex) { throw new Exception(ex.ToString()); } }
public void Add(ICodeProcessor processor) { processors.Add(processor); }
public Message(SourceCodeRef srcRef, MessageType type, int code, ICodeProcessor from) : this(srcRef, type, code, from, SourcePosition.UNASSIGNED, null, null, null) { }
public Message(SourceCodeRef srcRef, MessageType type, int code, ICodeProcessor from, SourcePosition position) : this(srcRef, type, code, from, position, null, null, null) { }
public Message(SourceCodeRef srcRef, MessageType type, int code, ICodeProcessor from, SourcePosition position, Token token, string text) : this(srcRef, type, code, from, position, token, text, null) { }
public CodeProcessorException(ICodeProcessor codeProcessor, string message, Exception inner) : base(message, inner) { CodeProcessor = codeProcessor; }
public CodeProcessorException(ICodeProcessor codeProcessor, string message) : base(message) { CodeProcessor = codeProcessor; }
public CodeProcessorException(ICodeProcessor codeProcessor) { CodeProcessor = codeProcessor; }
public RoslynController(ICodeProcessor processor) { _processor = processor; }
public void AddReplacement(ICodeProcessor processor) { processors.Add(processor); }
public CodeProcessorManager(ICodeProcessor defaultProcessor, Func <string, ICodeProcessor> getBranchProcessor) { _getBranchProcessor = getBranchProcessor; _branchProcessors = new ConcurrentDictionary <string, ICodeProcessor>(); DefaultProcessor = defaultProcessor; }