private void UpdateAst() { if (_parseResult == null) { return; } if (IsSplicable(_parseResult)) { return; } if (_ast == null) { var timer = Stopwatch.StartNew(); _ast = _parseResult.CreateAst(); _astTime.Text = (_astTimeSpan = timer.Elapsed).ToString(); } }