Esempio n. 1
0
 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;
 }
Esempio n. 2
0
        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());
            }
        }
Esempio n. 3
0
 public void Add(ICodeProcessor processor)
 {
     processors.Add(processor);
 }
Esempio n. 4
0
 public Message(SourceCodeRef srcRef, MessageType type, int code, ICodeProcessor from) :
     this(srcRef, type, code, from, SourcePosition.UNASSIGNED, null, null, null)
 {
 }
Esempio n. 5
0
 public Message(SourceCodeRef srcRef, MessageType type, int code, ICodeProcessor from, SourcePosition position) :
     this(srcRef, type, code, from, position, null, null, null)
 {
 }
Esempio n. 6
0
 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)
 {
 }
Esempio n. 7
0
 public CodeProcessorException(ICodeProcessor codeProcessor, string message, Exception inner) : base(message, inner)
 {
     CodeProcessor = codeProcessor;
 }
Esempio n. 8
0
 public CodeProcessorException(ICodeProcessor codeProcessor, string message) : base(message)
 {
     CodeProcessor = codeProcessor;
 }
Esempio n. 9
0
 public CodeProcessorException(ICodeProcessor codeProcessor)
 {
     CodeProcessor = codeProcessor;
 }
Esempio n. 10
0
 public RoslynController(ICodeProcessor processor)
 {
     _processor = processor;
 }
Esempio n. 11
0
 public RoslynController(ICodeProcessor processor)
 {
     _processor = processor;
 }
Esempio n. 12
0
 public void AddReplacement(ICodeProcessor processor)
 {
     processors.Add(processor);
 }
Esempio n. 13
0
 public CodeProcessorManager(ICodeProcessor defaultProcessor, Func <string, ICodeProcessor> getBranchProcessor)
 {
     _getBranchProcessor = getBranchProcessor;
     _branchProcessors   = new ConcurrentDictionary <string, ICodeProcessor>();
     DefaultProcessor    = defaultProcessor;
 }
Esempio n. 14
0
 public CodeProcessorException(ICodeProcessor codeProcessor, string message, Exception inner)
   : base(message, inner)
 {
     CodeProcessor = codeProcessor;
 }
Esempio n. 15
0
 public CodeProcessorException(ICodeProcessor codeProcessor, string message) : base(message)
 {
     CodeProcessor = codeProcessor;
 }
Esempio n. 16
0
 public CodeProcessorException(ICodeProcessor codeProcessor)
 {
     CodeProcessor = codeProcessor;
 }