提交 32d191f2 编写于 作者: D dino

fix brace style

上级 c2614c63
......@@ -1844,13 +1844,15 @@ private Task Submit()
}
}
private void FinishCurrentSubmissionInput() {
private void FinishCurrentSubmissionInput()
{
Debug.Assert(CheckAccess());
AppendLineNoPromptInjection(_currentLanguageBuffer);
ApplyProtection(_currentLanguageBuffer, regions: null);
if (_adornmentToMinimize) {
if (_adornmentToMinimize)
{
// TODO (tomat): remember the index of the adornment(s) in the current output and minimize those instead of the last one
InlineAdornmentProvider.MinimizeLastInlineAdornment(TextView);
_adornmentToMinimize = false;
......@@ -1859,7 +1861,8 @@ private Task Submit()
NewOutputBuffer();
}
private void NewOutputBuffer() {
private void NewOutputBuffer()
{
// Stop growing the current output projection span.
Debug.Assert(_projectionSpans[_currentOutputProjectionSpan].Kind == ReplSpanKind.Output);
var nonGrowingSpan = _projectionSpans[_currentOutputProjectionSpan].WithEndTrackingMode(PointTrackingMode.Negative);
......@@ -2032,14 +2035,16 @@ public Span WriteLine(string text = null)
return new Span(result, (text != null ? text.Length : 0) + LineBreak.Length);
}
public Span WriteError(string text) {
public Span WriteError(string text)
{
int result = _buffer.Write(text);
var res = new Span(result, (text != null ? text.Length : 0));
_errorOutputWriter.Spans.Add(res);
return res;
}
public Span WriteErrorLine(string text = null) {
public Span WriteErrorLine(string text = null)
{
int result = _buffer.Write(text);
_buffer.Write(LineBreak);
var res = new Span(result, (text != null ? text.Length : 0) + LineBreak.Length);
......
......@@ -26,8 +26,10 @@ public IInteractiveWindow Window
get { return _window; }
}
public SortedSpans Spans {
get {
public SortedSpans Spans
{
get
{
return _spans;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册