reportErrorLocation method

String reportErrorLocation(
  1. AstNode node
)

Implementation

String reportErrorLocation(AstNode node) {
  var result = StringBuffer();
  if (origin != null) result.write('    from $origin');
  var line = root.lineInfo.getLocation(node.offset);
  result.write('    line: ${line.lineNumber}, column: ${line.columnNumber}');
  return result.toString();
}