Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit 61eb598

Browse files
author
Yuncong Zhang
committed
[Align 1.5.4] Finish foundation part.
1 parent b24d3a2 commit 61eb598

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Runtime/foundation/diagnostics.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1421,7 +1421,13 @@ public override string ToString() {
14211421
}
14221422

14231423
public virtual string toString(DiagnosticLevel minLevel = DiagnosticLevel.debug) {
1424-
return this.toDiagnosticsNode(style: DiagnosticsTreeStyle.singleLine).toString(minLevel: minLevel);
1424+
string fullString = null;
1425+
D.assert(() => {
1426+
fullString = this.toDiagnosticsNode(style: DiagnosticsTreeStyle.singleLine)
1427+
.toString(minLevel: minLevel);
1428+
return true;
1429+
});
1430+
return fullString ?? this.toStringShort();
14251431
}
14261432

14271433
public virtual DiagnosticsNode toDiagnosticsNode(

0 commit comments

Comments
 (0)