• Greg Spencer's avatar
    Fix the sample code analyzer to properly handle `missing_identifier` errors (#87593) · 169bb1b7
    Greg Spencer authored
    This fixes how the sample analyzer handles missing_identifier errors. It was looking at the wrong line, and missing an else clause, so it was silently allowing missing_identifier errors to pass.
    
    In addition, this fixes the sample generation so that it uses the correct filename for the output files: it previously was looking for the first line that had a filename, which was meant to indicate a non-generated line. This change adds a new Line.generated constructor for generated lines, so that they can also have the correct filename associated with them.
    169bb1b7
Name
Last commit
Last update
..
test Loading commit data...
README.md Loading commit data...
accept_android_sdk_licenses.sh Loading commit data...
allowlist.dart Loading commit data...
analyze.dart Loading commit data...
analyze_sample_code.dart Loading commit data...
browser.dart Loading commit data...
codelabs_build_test.sh Loading commit data...
docs.sh Loading commit data...
flutter_compact_formatter.dart Loading commit data...
prepare_package.dart Loading commit data...
pubspec.yaml Loading commit data...
run_command.dart Loading commit data...
service_worker_test.dart Loading commit data...
serviceaccount.enc Loading commit data...
test.dart Loading commit data...
unpublish_package.dart Loading commit data...
utils.dart Loading commit data...