Unverified Commit b336452c authored by Ferhat's avatar Ferhat Committed by GitHub

Fix diagnostics crash in profile mode (#53878)

* Prevent diagnostics crash in profile mode

* Prevent diagnostics crash in profile mode
parent 6837b0e3
......@@ -2937,10 +2937,10 @@ class DiagnosticableNode<T extends Diagnosticable> extends DiagnosticsNode {
}
@override
String get emptyBodyDescription => kReleaseMode ? '' : builder.emptyBodyDescription;
String get emptyBodyDescription => (kReleaseMode || kProfileMode) ? '' : builder.emptyBodyDescription;
@override
List<DiagnosticsNode> getProperties() => kReleaseMode ? const <DiagnosticsNode>[] : builder.properties;
List<DiagnosticsNode> getProperties() => (kReleaseMode || kProfileMode) ? const <DiagnosticsNode>[] : builder.properties;
@override
List<DiagnosticsNode> getChildren() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment