BadHandlesPattern constructor
BadHandlesPattern(
- MethodMirror mm,
- 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 "."
}
}