@@ -2,7 +2,7 @@ class ApplyWorkspaceEditParams {
2
2
ApplyWorkspaceEditParams ._(this .edit, this .label);
3
3
4
4
factory ApplyWorkspaceEditParams (
5
- void Function (ApplyWorkspaceEditParams$Builder ) init ) {
5
+ void init (ApplyWorkspaceEditParams$Builder )) {
6
6
final b = new ApplyWorkspaceEditParams$Builder ._();
7
7
init (b);
8
8
return new ApplyWorkspaceEditParams ._(b.edit, b.label);
@@ -49,7 +49,7 @@ class ApplyWorkspaceEditParams$Builder {
49
49
class ClientCapabilities {
50
50
ClientCapabilities ._(this .textDocument, this .workspace);
51
51
52
- factory ClientCapabilities (void Function (ClientCapabilities$Builder ) init ) {
52
+ factory ClientCapabilities (void init (ClientCapabilities$Builder )) {
53
53
final b = new ClientCapabilities$Builder ._();
54
54
init (b);
55
55
return new ClientCapabilities ._(b.textDocument, b.workspace);
@@ -100,7 +100,7 @@ class ClientCapabilities$Builder {
100
100
class CodeActionContext {
101
101
CodeActionContext ._(this .diagnostics);
102
102
103
- factory CodeActionContext (void Function (CodeActionContext$Builder ) init ) {
103
+ factory CodeActionContext (void init (CodeActionContext$Builder )) {
104
104
final b = new CodeActionContext$Builder ._();
105
105
init (b);
106
106
return new CodeActionContext ._(b.diagnostics);
@@ -142,7 +142,7 @@ class CodeActionContext$Builder {
142
142
class CodeLensOptions {
143
143
CodeLensOptions ._(this .resolveProvider);
144
144
145
- factory CodeLensOptions (void Function (CodeLensOptions$Builder ) init ) {
145
+ factory CodeLensOptions (void init (CodeLensOptions$Builder )) {
146
146
final b = new CodeLensOptions$Builder ._();
147
147
init (b);
148
148
return new CodeLensOptions ._(b.resolveProvider);
@@ -179,7 +179,7 @@ class CodeLensOptions$Builder {
179
179
class Command {
180
180
Command ._(this .arguments, this .command, this .title);
181
181
182
- factory Command (void Function (Command$Builder ) init ) {
182
+ factory Command (void init (Command$Builder )) {
183
183
final b = new Command$Builder ._();
184
184
init (b);
185
185
return new Command ._(b.arguments, b.command, b.title);
@@ -230,8 +230,7 @@ class Command$Builder {
230
230
class CompletionCapabilities {
231
231
CompletionCapabilities ._(this .completionItem, this .dynamicRegistration);
232
232
233
- factory CompletionCapabilities (
234
- void Function (CompletionCapabilities$Builder ) init) {
233
+ factory CompletionCapabilities (void init (CompletionCapabilities$Builder )) {
235
234
final b = new CompletionCapabilities$Builder ._();
236
235
init (b);
237
236
return new CompletionCapabilities ._(
@@ -297,7 +296,7 @@ class CompletionItem {
297
296
this .sortText,
298
297
this .textEdit);
299
298
300
- factory CompletionItem (void Function (CompletionItem$Builder ) init ) {
299
+ factory CompletionItem (void init (CompletionItem$Builder )) {
301
300
final b = new CompletionItem$Builder ._();
302
301
init (b);
303
302
return new CompletionItem ._(
@@ -450,7 +449,7 @@ class CompletionItemCapabilities {
450
449
CompletionItemCapabilities ._(this .snippetSupport);
451
450
452
451
factory CompletionItemCapabilities (
453
- void Function (CompletionItemCapabilities$Builder ) init ) {
452
+ void init (CompletionItemCapabilities$Builder )) {
454
453
final b = new CompletionItemCapabilities$Builder ._();
455
454
init (b);
456
455
return new CompletionItemCapabilities ._(b.snippetSupport);
@@ -557,7 +556,7 @@ class CompletionItemKind {
557
556
class CompletionList {
558
557
CompletionList ._(this .isIncomplete, this .items);
559
558
560
- factory CompletionList (void Function (CompletionList$Builder ) init ) {
559
+ factory CompletionList (void init (CompletionList$Builder )) {
561
560
final b = new CompletionList$Builder ._();
562
561
init (b);
563
562
return new CompletionList ._(b.isIncomplete, b.items);
@@ -606,7 +605,7 @@ class CompletionList$Builder {
606
605
class CompletionOptions {
607
606
CompletionOptions ._(this .resolveProvider, this .triggerCharacters);
608
607
609
- factory CompletionOptions (void Function (CompletionOptions$Builder ) init ) {
608
+ factory CompletionOptions (void init (CompletionOptions$Builder )) {
610
609
final b = new CompletionOptions$Builder ._();
611
610
init (b);
612
611
return new CompletionOptions ._(b.resolveProvider, b.triggerCharacters);
@@ -655,7 +654,7 @@ class CompletionOptions$Builder {
655
654
class Diagnostic {
656
655
Diagnostic ._(this .code, this .message, this .range, this .severity, this .source);
657
656
658
- factory Diagnostic (void Function (Diagnostic$Builder ) init ) {
657
+ factory Diagnostic (void init (Diagnostic$Builder )) {
659
658
final b = new Diagnostic$Builder ._();
660
659
init (b);
661
660
return new Diagnostic ._(b.code, b.message, b.range, b.severity, b.source);
@@ -726,7 +725,7 @@ class Diagnostic$Builder {
726
725
class Diagnostics {
727
726
Diagnostics ._(this .diagnostics, this .uri);
728
727
729
- factory Diagnostics (void Function (Diagnostics$Builder ) init ) {
728
+ factory Diagnostics (void init (Diagnostics$Builder )) {
730
729
final b = new Diagnostics$Builder ._();
731
730
init (b);
732
731
return new Diagnostics ._(b.diagnostics, b.uri);
@@ -777,7 +776,7 @@ class Diagnostics$Builder {
777
776
class DocumentLinkOptions {
778
777
DocumentLinkOptions ._(this .resolveProvider);
779
778
780
- factory DocumentLinkOptions (void Function (DocumentLinkOptions$Builder ) init ) {
779
+ factory DocumentLinkOptions (void init (DocumentLinkOptions$Builder )) {
781
780
final b = new DocumentLinkOptions$Builder ._();
782
781
init (b);
783
782
return new DocumentLinkOptions ._(b.resolveProvider);
@@ -816,7 +815,7 @@ class DocumentOnTypeFormattingOptions {
816
815
this .firstTriggerCharacter, this .moreTriggerCharacter);
817
816
818
817
factory DocumentOnTypeFormattingOptions (
819
- void Function (DocumentOnTypeFormattingOptions$Builder ) init ) {
818
+ void init (DocumentOnTypeFormattingOptions$Builder )) {
820
819
final b = new DocumentOnTypeFormattingOptions$Builder ._();
821
820
init (b);
822
821
return new DocumentOnTypeFormattingOptions ._(
@@ -871,7 +870,7 @@ class DynamicRegistrationCapability {
871
870
DynamicRegistrationCapability ._(this .dynamicRegistration);
872
871
873
872
factory DynamicRegistrationCapability (
874
- void Function (DynamicRegistrationCapability$Builder ) init ) {
873
+ void init (DynamicRegistrationCapability$Builder )) {
875
874
final b = new DynamicRegistrationCapability$Builder ._();
876
875
init (b);
877
876
return new DynamicRegistrationCapability ._(b.dynamicRegistration);
@@ -911,8 +910,7 @@ class DynamicRegistrationCapability$Builder {
911
910
class ExecuteCommandOptions {
912
911
ExecuteCommandOptions ._(this .commands);
913
912
914
- factory ExecuteCommandOptions (
915
- void Function (ExecuteCommandOptions$Builder ) init) {
913
+ factory ExecuteCommandOptions (void init (ExecuteCommandOptions$Builder )) {
916
914
final b = new ExecuteCommandOptions$Builder ._();
917
915
init (b);
918
916
return new ExecuteCommandOptions ._(b.commands);
@@ -950,7 +948,7 @@ class ExecuteCommandOptions$Builder {
950
948
class Hover {
951
949
Hover ._(this .contents, this .range);
952
950
953
- factory Hover (void Function (Hover$Builder ) init ) {
951
+ factory Hover (void init (Hover$Builder )) {
954
952
final b = new Hover$Builder ._();
955
953
init (b);
956
954
return new Hover ._(b.contents, b.range);
@@ -1014,7 +1012,7 @@ class InsertTextFormat {
1014
1012
class Location {
1015
1013
Location ._(this .range, this .uri);
1016
1014
1017
- factory Location (void Function (Location$Builder ) init ) {
1015
+ factory Location (void init (Location$Builder )) {
1018
1016
final b = new Location$Builder ._();
1019
1017
init (b);
1020
1018
return new Location ._(b.range, b.uri);
@@ -1058,7 +1056,7 @@ class Location$Builder {
1058
1056
class Position {
1059
1057
Position ._(this .character, this .line);
1060
1058
1061
- factory Position (void Function (Position$Builder ) init ) {
1059
+ factory Position (void init (Position$Builder )) {
1062
1060
final b = new Position$Builder ._();
1063
1061
init (b);
1064
1062
return new Position ._(b.character, b.line);
@@ -1102,7 +1100,7 @@ class Position$Builder {
1102
1100
class Range {
1103
1101
Range ._(this .end, this .start);
1104
1102
1105
- factory Range (void Function (Range$Builder ) init ) {
1103
+ factory Range (void init (Range$Builder )) {
1106
1104
final b = new Range$Builder ._();
1107
1105
init (b);
1108
1106
return new Range ._(b.end, b.start);
@@ -1148,7 +1146,7 @@ class Range$Builder {
1148
1146
class ReferenceContext {
1149
1147
ReferenceContext ._(this .includeDeclaration);
1150
1148
1151
- factory ReferenceContext (void Function (ReferenceContext$Builder ) init ) {
1149
+ factory ReferenceContext (void init (ReferenceContext$Builder )) {
1152
1150
final b = new ReferenceContext$Builder ._();
1153
1151
init (b);
1154
1152
return new ReferenceContext ._(b.includeDeclaration);
@@ -1187,7 +1185,7 @@ class ReferenceContext$Builder {
1187
1185
class SaveOptions {
1188
1186
SaveOptions ._(this .includeText);
1189
1187
1190
- factory SaveOptions (void Function (SaveOptions$Builder ) init ) {
1188
+ factory SaveOptions (void init (SaveOptions$Builder )) {
1191
1189
final b = new SaveOptions$Builder ._();
1192
1190
init (b);
1193
1191
return new SaveOptions ._(b.includeText);
@@ -1241,7 +1239,7 @@ class ServerCapabilities {
1241
1239
this .textDocumentSync,
1242
1240
this .workspaceSymbolProvider);
1243
1241
1244
- factory ServerCapabilities (void Function (ServerCapabilities$Builder ) init ) {
1242
+ factory ServerCapabilities (void init (ServerCapabilities$Builder )) {
1245
1243
final b = new ServerCapabilities$Builder ._();
1246
1244
init (b);
1247
1245
return new ServerCapabilities ._(
@@ -1459,8 +1457,7 @@ class ServerCapabilities$Builder {
1459
1457
class SignatureHelpOptions {
1460
1458
SignatureHelpOptions ._(this .triggerCharacters);
1461
1459
1462
- factory SignatureHelpOptions (
1463
- void Function (SignatureHelpOptions$Builder ) init) {
1460
+ factory SignatureHelpOptions (void init (SignatureHelpOptions$Builder )) {
1464
1461
final b = new SignatureHelpOptions$Builder ._();
1465
1462
init (b);
1466
1463
return new SignatureHelpOptions ._(b.triggerCharacters);
@@ -1501,7 +1498,7 @@ class SynchronizationCapabilities {
1501
1498
this .willSave, this .willSaveWaitUntil);
1502
1499
1503
1500
factory SynchronizationCapabilities (
1504
- void Function (SynchronizationCapabilities$Builder ) init ) {
1501
+ void init (SynchronizationCapabilities$Builder )) {
1505
1502
final b = new SynchronizationCapabilities$Builder ._();
1506
1503
init (b);
1507
1504
return new SynchronizationCapabilities ._(
@@ -1584,7 +1581,7 @@ class TextDocumentClientCapabilities {
1584
1581
this .synchronization);
1585
1582
1586
1583
factory TextDocumentClientCapabilities (
1587
- void Function (TextDocumentClientCapabilities$Builder ) init ) {
1584
+ void init (TextDocumentClientCapabilities$Builder )) {
1588
1585
final b = new TextDocumentClientCapabilities$Builder ._();
1589
1586
init (b);
1590
1587
return new TextDocumentClientCapabilities ._(
@@ -1765,7 +1762,7 @@ class TextDocumentContentChangeEvent {
1765
1762
TextDocumentContentChangeEvent ._(this .range, this .rangeLength, this .text);
1766
1763
1767
1764
factory TextDocumentContentChangeEvent (
1768
- void Function (TextDocumentContentChangeEvent$Builder ) init ) {
1765
+ void init (TextDocumentContentChangeEvent$Builder )) {
1769
1766
final b = new TextDocumentContentChangeEvent$Builder ._();
1770
1767
init (b);
1771
1768
return new TextDocumentContentChangeEvent ._(b.range, b.rangeLength, b.text);
@@ -1820,8 +1817,7 @@ class TextDocumentContentChangeEvent$Builder {
1820
1817
class TextDocumentIdentifier {
1821
1818
TextDocumentIdentifier ._(this .uri);
1822
1819
1823
- factory TextDocumentIdentifier (
1824
- void Function (TextDocumentIdentifier$Builder ) init) {
1820
+ factory TextDocumentIdentifier (void init (TextDocumentIdentifier$Builder )) {
1825
1821
final b = new TextDocumentIdentifier$Builder ._();
1826
1822
init (b);
1827
1823
return new TextDocumentIdentifier ._(b.uri);
@@ -1859,7 +1855,7 @@ class TextDocumentIdentifier$Builder {
1859
1855
class TextDocumentItem {
1860
1856
TextDocumentItem ._(this .languageId, this .text, this .uri, this .version);
1861
1857
1862
- factory TextDocumentItem (void Function (TextDocumentItem$Builder ) init ) {
1858
+ factory TextDocumentItem (void init (TextDocumentItem$Builder )) {
1863
1859
final b = new TextDocumentItem$Builder ._();
1864
1860
init (b);
1865
1861
return new TextDocumentItem ._(b.languageId, b.text, b.uri, b.version);
@@ -1942,8 +1938,7 @@ class TextDocumentSyncOptions {
1942
1938
TextDocumentSyncOptions ._(this .change, this .openClose, this .save,
1943
1939
this .willSave, this .willSaveWaitUntil);
1944
1940
1945
- factory TextDocumentSyncOptions (
1946
- void Function (TextDocumentSyncOptions$Builder ) init) {
1941
+ factory TextDocumentSyncOptions (void init (TextDocumentSyncOptions$Builder )) {
1947
1942
final b = new TextDocumentSyncOptions$Builder ._();
1948
1943
init (b);
1949
1944
return new TextDocumentSyncOptions ._(
@@ -2021,7 +2016,7 @@ class TextDocumentSyncOptions$Builder {
2021
2016
class TextEdit {
2022
2017
TextEdit ._(this .newText, this .range);
2023
2018
2024
- factory TextEdit (void Function (TextEdit$Builder ) init ) {
2019
+ factory TextEdit (void init (TextEdit$Builder )) {
2025
2020
final b = new TextEdit$Builder ._();
2026
2021
init (b);
2027
2022
return new TextEdit ._(b.newText, b.range);
@@ -2066,7 +2061,7 @@ class VersionedTextDocumentIdentifier {
2066
2061
VersionedTextDocumentIdentifier ._(this .uri, this .version);
2067
2062
2068
2063
factory VersionedTextDocumentIdentifier (
2069
- void Function (VersionedTextDocumentIdentifier$Builder ) init ) {
2064
+ void init (VersionedTextDocumentIdentifier$Builder )) {
2070
2065
final b = new VersionedTextDocumentIdentifier$Builder ._();
2071
2066
init (b);
2072
2067
return new VersionedTextDocumentIdentifier ._(b.uri, b.version);
@@ -2113,7 +2108,7 @@ class WorkspaceClientCapabilities {
2113
2108
this .didChangeWatchedFiles, this .executeCommand, this .symbol);
2114
2109
2115
2110
factory WorkspaceClientCapabilities (
2116
- void Function (WorkspaceClientCapabilities$Builder ) init ) {
2111
+ void init (WorkspaceClientCapabilities$Builder )) {
2117
2112
final b = new WorkspaceClientCapabilities$Builder ._();
2118
2113
init (b);
2119
2114
return new WorkspaceClientCapabilities ._(
@@ -2202,7 +2197,7 @@ class WorkspaceClientCapabilities$Builder {
2202
2197
class WorkspaceEdit {
2203
2198
WorkspaceEdit ._(this .changes);
2204
2199
2205
- factory WorkspaceEdit (void Function (WorkspaceEdit$Builder ) init ) {
2200
+ factory WorkspaceEdit (void init (WorkspaceEdit$Builder )) {
2206
2201
final b = new WorkspaceEdit$Builder ._();
2207
2202
init (b);
2208
2203
return new WorkspaceEdit ._(b.changes);
0 commit comments