BadHandlesPattern constructor

BadHandlesPattern(
  1. MethodMirror mm,
  2. ArgumentError error
)

Constructor for a bad handles pattern

Implementation

BadHandlesPattern(MethodMirror mm, this.error) {
  try {
    location = mm.location;
    // ignore: avoid_catching_errors
  } on UnsupportedError {
    // No location information to report
  }

  name = MirrorSystem.getName(mm.qualifiedName);
  if (name.startsWith('.')) {
    name = name.substring(1); // remove leading "."
  }
}