This repository was archived by the owner on Apr 8, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +16
-9
lines changed
Expand file tree Collapse file tree 3 files changed +16
-9
lines changed Original file line number Diff line number Diff line change 1+ ## 1.0.0-alpha+6
2+
3+ - ` MethodBuilder.closure ` emits properly as a top-level function
4+
15## 1.0.0-alpha+5
26
3- - MethodBuilder with no statements will create an empty block instead of a
4- semicolon.
7+ - MethodBuilder with no statements will create an empty block instead of
8+ a semicolon.
59
610``` dart
711// main() {}
812method('main')
913```
1014
11- - Fix lambdas and closures to not include a trailing semicolon when used as an
12- expression.
15+ - Fix lambdas and closures to not include a trailing semicolon when used
16+ as an expression.
1317
1418``` dart
1519 // () => false
Original file line number Diff line number Diff line change @@ -376,6 +376,9 @@ class _LambdaMethodBuilder extends Object
376376 ),
377377 );
378378 }
379+
380+ @override
381+ CompilationUnitMember buildTopLevelAst ([Scope scope]) => buildFunction (scope);
379382}
380383
381384class _MethodBuilderImpl extends Object
@@ -412,10 +415,10 @@ class _MethodBuilderImpl extends Object
412415 null ,
413416 _property != Keyword .GET ? buildParameterList (scope) : null ,
414417 new BlockFunctionBody (
415- null ,
416- null ,
417- buildBlock (scope),
418- ),
418+ null ,
419+ null ,
420+ buildBlock (scope),
421+ ),
419422 );
420423 }
421424
Original file line number Diff line number Diff line change 11name : code_builder
2- version : 1.0.0-alpha+5
2+ version : 1.0.0-alpha+6
33description : A fluent API for generating Dart code
44author :
Dart Team <[email protected] > 55homepage : https://github.com/dart-lang/code_builder
You can’t perform that action at this time.
0 commit comments