prettyPrint method

  1. @override
String prettyPrint([
  1. int indent = 2
])
override

Uses a rough approximation of reverse polish notation to render the parsed value of a FHIRPath in a more human readable way than verbosePrint, while still demonstrating how the expression was parsed and nested according to this package

Implementation

@override
String prettyPrint([int indent = 2]) =>
    '.subsetOf(\n${"  " * indent}${value.prettyPrint(indent + 1)}\n'
    '${indent <= 0 ? "" : "  " * (indent - 1)})';