)]}'
{
  "commit": "74f64cd06953e4bc3e1f01e597b0e34ac74242ab",
  "tree": "89d19cab22dc69aafa02814181e0be9e401404ef",
  "parents": [
    "c2814391fdf48e57e50d7f102a1fc5b8bbf72507"
  ],
  "author": {
    "name": "Konstantin Shcheglov",
    "email": "scheglov@google.com",
    "time": "Thu Dec 03 16:52:22 2026 -0800"
  },
  "committer": {
    "name": "dart-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "email": "dart-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "time": "Thu Dec 03 16:52:22 2026 -0800"
  },
  "message": "ROFS. Recover an incomplete typedef as the new syntax.\n\nWith the `remove-old-function-syntax` feature enabled, a typedef without\n`\u003d` was always parsed as an old style typedef. An incomplete typedef got\na synthetic parameter list, which is old syntax that the feature\nrejects, and errors for both the parameter list and the `;`, though\nadding them doesn\u0027t fix the code:\n\n  typedef T\n\nWhen a function followed, its name and parameters were taken as the\nold style typedef, and reported as the old syntax:\n\n  typedef T\n  main() {}\n\nNow, with the feature enabled:\n\n- A typedef without `\u003d` and without a parameter list after its name is\n  recovered as a new style typedef with a synthetic `\u003d` and type.\n\n- When the tokens after the type start another declaration, such as a\n  function, a getter, a setter, or a declaration keyword, the typedef\n  ends before them. The type is the name if it can be one, as `T` or\n  `T\u003cU\u003e`, otherwise it is the aliased type, and the name is missing.\n\n- An incomplete typedef is one mistake, so it is reported once:\n  `missingTypedefParameters` at the name, or `missingIdentifier` when\n  the name is missing. The missing `;` is inserted without an error.\n\nA typedef with a return type but no parameter list, as\n`typedef int F;`, is still an old style typedef, because only it can\nhave the return type, but it also gets one error.\n\nA complete old style typedef is still reported, and a library with an\nearlier language version is parsed as before.\n\nThe partial code recovery tests of `typedef` before a function\ndeclaration don\u0027t need `%before-language-feature` anymore. The\ncompletion tests of doc comment references to a typedef used an\ninvalid typedef with a body, which is now parsed as a function, so\nthey use `;` instead. Completion at `n` in `typedef n` suggested types,\nbecause `n` was the return type of an old style typedef; now it is the\nname of the typedef, so there are no suggestions, as for other names\nin declarations.\n\nBug: https://github.com/dart-lang/sdk/issues/65045\nChange-Id: Id6b0e63ee984019ed8f627d63ffceecd5d03821a\nReviewed-on: https://dart-review.googlesource.com/c/sdk/+/585180\nCommit-Queue: Konstantin Shcheglov \u003cscheglov@google.com\u003e\nReviewed-by: Paul Berry \u003cpaulberry@google.com\u003e\nReviewed-by: Samuel Rawlins \u003csrawlins@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "fb2d7c2a52500d9c1208c5ebf1f0d95d3d44923e",
      "old_mode": 33188,
      "old_path": "pkg/_fe_analyzer_shared/lib/src/parser/parser_impl.dart",
      "new_id": "6fe6d307f50c39d88d4f72a78b8c7b7d2cbd9a27",
      "new_mode": 33188,
      "new_path": "pkg/_fe_analyzer_shared/lib/src/parser/parser_impl.dart"
    },
    {
      "type": "modify",
      "old_id": "c150567b90d79a80f284b4a3388d2a06f61451c4",
      "old_mode": 33188,
      "old_path": "pkg/analysis_server/test/services/completion/dart/completion_test.dart",
      "new_id": "8ca9ded9fe2c097d81e90ad161e1a78153121b40",
      "new_mode": 33188,
      "new_path": "pkg/analysis_server/test/services/completion/dart/completion_test.dart"
    },
    {
      "type": "modify",
      "old_id": "d853a71f49692ae7ebf01f2f41c7397b126a5519",
      "old_mode": 33188,
      "old_path": "pkg/analyzer/test/generated/error_parser_test.dart",
      "new_id": "38365a4436619ab9149054d4a9b9e76a971ba721",
      "new_mode": 33188,
      "new_path": "pkg/analyzer/test/generated/error_parser_test.dart"
    },
    {
      "type": "modify",
      "old_id": "dee63807ee15b70f78e82599b6825bc934c7be44",
      "old_mode": 33188,
      "old_path": "pkg/analyzer/test/generated/recovery_parser_test.dart",
      "new_id": "20e5cd870530ee40959f0c0a8bdcbc964b2c3a57",
      "new_mode": 33188,
      "new_path": "pkg/analyzer/test/generated/recovery_parser_test.dart"
    },
    {
      "type": "modify",
      "old_id": "b06671886430b1fab2239b19d6ffe0484cf1bdcf",
      "old_mode": 33188,
      "old_path": "pkg/analyzer/test/src/diagnostics/old_function_typedef_test.dart",
      "new_id": "44619113032bcb5b2bed6ad01faf330d94feea24",
      "new_mode": 33188,
      "new_path": "pkg/analyzer/test/src/diagnostics/old_function_typedef_test.dart"
    },
    {
      "type": "modify",
      "old_id": "45090d82f225c42ce8b9d66626e51b3f8cbc6dab",
      "old_mode": 33188,
      "old_path": "pkg/analyzer/test/src/fasta/recovery/partial_code/typedef_test.dart",
      "new_id": "696fef38897694df1d9703396ff796d5633ef594",
      "new_mode": 33188,
      "new_path": "pkg/analyzer/test/src/fasta/recovery/partial_code/typedef_test.dart"
    },
    {
      "type": "modify",
      "old_id": "0416b4e140db791b4351770b6df77ead32496139",
      "old_mode": 33188,
      "old_path": "pkg/analyzer_plugin/test/src/utilities/completion/optype_test.dart",
      "new_id": "65a67a589e7fc61e4f58e34e30d8b54674efca1b",
      "new_mode": 33188,
      "new_path": "pkg/analyzer_plugin/test/src/utilities/completion/optype_test.dart"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "314668e490529b92e5602eeaeb3024f4a13ffe82",
      "new_mode": 33188,
      "new_path": "pkg/front_end/testcases/remove_old_function_syntax/typedef_incomplete.dart"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "ccda813e8d2ca7692c727428889e38fd50a59b49",
      "new_mode": 33188,
      "new_path": "pkg/front_end/testcases/remove_old_function_syntax/typedef_incomplete.dart.strong.expect"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "ccda813e8d2ca7692c727428889e38fd50a59b49",
      "new_mode": 33188,
      "new_path": "pkg/front_end/testcases/remove_old_function_syntax/typedef_incomplete.dart.strong.modular.expect"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "d2e61ff0be3e506ca43b5fc7cc66aa2869f34aba",
      "new_mode": 33188,
      "new_path": "pkg/front_end/testcases/remove_old_function_syntax/typedef_incomplete.dart.strong.outline.expect"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "a6f7c19b11ef933a4d0c086fe2a9e94f90adb88b",
      "new_mode": 33188,
      "new_path": "pkg/front_end/testcases/remove_old_function_syntax/typedef_incomplete.dart.strong.transformed.expect"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "91ded1380992aaa99dc98bbe5c7b2a29588f83a4",
      "new_mode": 33188,
      "new_path": "pkg/front_end/testcases/remove_old_function_syntax/typedef_incomplete.dart.textual_outline.expect"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "60a74c44bfdb7144104a8429ffd0a98fe40e67fa",
      "new_mode": 33188,
      "new_path": "pkg/front_end/testcases/remove_old_function_syntax/typedef_incomplete.dart.textual_outline_modelled.expect"
    },
    {
      "type": "modify",
      "old_id": "32c8930f0460c28a8c91babd701944d990f63af3",
      "old_mode": 33188,
      "old_path": "pkg/linter/test/rules/prefer_generic_function_type_aliases_test.dart",
      "new_id": "9606c85f94fc09ab6a54c0387ebe8b4ac797a956",
      "new_mode": 33188,
      "new_path": "pkg/linter/test/rules/prefer_generic_function_type_aliases_test.dart"
    }
  ]
}
