public CodeCellState( CodeCellId codeCellId, CodeCellBuffer buffer) { CodeCellId = codeCellId; Buffer = buffer; }
public void Empty() { CodeCellId emptySubmissionId = default; DocumentId emptyDocumentId = default; DocumentId convertedSubmissionId = emptySubmissionId.ToDocumentId(); Assert.Equal(emptyDocumentId, convertedSubmissionId); }
public void Create() { var projectId = Guid.NewGuid(); var id = Guid.NewGuid(); var submissionId = new CodeCellId(projectId, id); Assert.Equal(projectId, submissionId.ProjectId); Assert.Equal(id, submissionId.Id); }
public void Parse() { var projectId = Guid.NewGuid(); var id = Guid.NewGuid(); var submissionId = CodeCellId.Parse($"{projectId}/{id}"); Assert.Equal(projectId, submissionId.ProjectId); Assert.Equal(id, submissionId.Id); }
internal CapturedOutputSegment( CodeCellId codeCellId, int fileDescriptor, char singleChar) : this( codeCellId, fileDescriptor, singleChar.ToString()) { }
CapturedOutputSegment( CodeCellId codeCellId, int fileDescriptor, string value) { CodeCellId = codeCellId; FileDescriptor = fileDescriptor; Value = value; }
internal CapturedOutputSegment( CodeCellId codeCellId, int fileDescriptor, char singleChar) { CodeCellId = codeCellId; FileDescriptor = fileDescriptor; Value = singleChar.ToString(); }
internal CapturedOutputSegment( CodeCellId codeCellId, int fileDescriptor, char [] buffer, int index, int count) : this( codeCellId, fileDescriptor, new string (buffer, index, count)) { }
internal CapturedOutputSegment( CodeCellId codeCellId, int fileDescriptor, char [] buffer, int index, int count) { CodeCellId = codeCellId; FileDescriptor = fileDescriptor; Value = new string (buffer, index, count); }
public Compilation( CodeCellId codeCellId, int submissionNumber, EvaluationEnvironment evaluationEnvironment, bool isResultAnExpression, AssemblyDefinition executableAssembly, IReadOnlyList <AssemblyDefinition> references) { CodeCellId = codeCellId; SubmissionNumber = submissionNumber; EvaluationEnvironment = evaluationEnvironment; IsResultAnExpression = isResultAnExpression; ExecutableAssembly = executableAssembly; References = references; }
public CodeCellState(CodeCellId codeCellId) => CodeCellId = codeCellId;
internal CapturedOutputSegment(int fileDescriptor, char [] buffer, int index, int count, CodeCellId context) { FileDescriptor = fileDescriptor; Value = new string (buffer, index, count); Context = context; }
public static DocumentId ToDocumentId(this CodeCellId codeCellId) => DocumentId.CreateFromSerialized( ProjectId.CreateFromSerialized(codeCellId.ProjectId), codeCellId.Id);
public Writer(int fileDescriptor, CapturedOutputWriter monitor) { this.fileDescriptor = fileDescriptor; this.monitor = monitor; this.codeCellId = monitor.codeCellId; }
public CapturedOutputWriter(CodeCellId codeCellId) { this.codeCellId = codeCellId; StandardOutput = new Writer(StandardOutputFd, this); StandardError = new Writer(StandardErrorFd, this); }
internal CapturedOutputSegment(int fileDescriptor, char singleChar, CodeCellId context) { FileDescriptor = fileDescriptor; Value = singleChar.ToString(); Context = context; }
public Writer(int fileDescriptor, CapturedOutputWriter monitor) { this.fileDescriptor = fileDescriptor; this.monitor = monitor; this.context = monitor.context; }