| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 // | 4 // |
| 5 // This file has been automatically generated. Please do not edit it manually. | 5 // This file has been automatically generated. Please do not edit it manually. |
| 6 // To regenerate the file, use the script "pkg/analyzer/tool/generate_files". | 6 // To regenerate the file, use the script "pkg/analyzer/tool/generate_files". |
| 7 | 7 |
| 8 library analyzer.src.summary.format; | 8 library analyzer.src.summary.format; |
| 9 | 9 |
| 10 import 'flat_buffers.dart' as fb; | 10 import 'flat_buffers.dart' as fb; |
| (...skipping 1159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1170 "unlinkedUnits": unlinkedUnits, | 1170 "unlinkedUnits": unlinkedUnits, |
| 1171 }; | 1171 }; |
| 1172 } | 1172 } |
| 1173 | 1173 |
| 1174 class UnlinkedClassBuilder extends Object with _UnlinkedClassMixin implements id
l.UnlinkedClass { | 1174 class UnlinkedClassBuilder extends Object with _UnlinkedClassMixin implements id
l.UnlinkedClass { |
| 1175 bool _finished = false; | 1175 bool _finished = false; |
| 1176 | 1176 |
| 1177 String _name; | 1177 String _name; |
| 1178 int _nameOffset; | 1178 int _nameOffset; |
| 1179 UnlinkedDocumentationCommentBuilder _documentationComment; | 1179 UnlinkedDocumentationCommentBuilder _documentationComment; |
| 1180 List<UnlinkedConstBuilder> _annotations; |
| 1180 List<UnlinkedTypeParamBuilder> _typeParameters; | 1181 List<UnlinkedTypeParamBuilder> _typeParameters; |
| 1181 EntityRefBuilder _supertype; | 1182 EntityRefBuilder _supertype; |
| 1182 List<EntityRefBuilder> _mixins; | 1183 List<EntityRefBuilder> _mixins; |
| 1183 List<EntityRefBuilder> _interfaces; | 1184 List<EntityRefBuilder> _interfaces; |
| 1184 List<UnlinkedVariableBuilder> _fields; | 1185 List<UnlinkedVariableBuilder> _fields; |
| 1185 List<UnlinkedExecutableBuilder> _executables; | 1186 List<UnlinkedExecutableBuilder> _executables; |
| 1186 bool _isAbstract; | 1187 bool _isAbstract; |
| 1187 bool _isMixinApplication; | 1188 bool _isMixinApplication; |
| 1188 bool _hasNoSupertype; | 1189 bool _hasNoSupertype; |
| 1189 | 1190 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 1216 /** | 1217 /** |
| 1217 * Documentation comment for the class, or `null` if there is no | 1218 * Documentation comment for the class, or `null` if there is no |
| 1218 * documentation comment. | 1219 * documentation comment. |
| 1219 */ | 1220 */ |
| 1220 void set documentationComment(UnlinkedDocumentationCommentBuilder _value) { | 1221 void set documentationComment(UnlinkedDocumentationCommentBuilder _value) { |
| 1221 assert(!_finished); | 1222 assert(!_finished); |
| 1222 _documentationComment = _value; | 1223 _documentationComment = _value; |
| 1223 } | 1224 } |
| 1224 | 1225 |
| 1225 @override | 1226 @override |
| 1227 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; |
| 1228 |
| 1229 /** |
| 1230 * Annotations for this class. |
| 1231 */ |
| 1232 void set annotations(List<UnlinkedConstBuilder> _value) { |
| 1233 assert(!_finished); |
| 1234 _annotations = _value; |
| 1235 } |
| 1236 |
| 1237 @override |
| 1226 List<UnlinkedTypeParamBuilder> get typeParameters => _typeParameters ??= <Unli
nkedTypeParamBuilder>[]; | 1238 List<UnlinkedTypeParamBuilder> get typeParameters => _typeParameters ??= <Unli
nkedTypeParamBuilder>[]; |
| 1227 | 1239 |
| 1228 /** | 1240 /** |
| 1229 * Type parameters of the class, if any. | 1241 * Type parameters of the class, if any. |
| 1230 */ | 1242 */ |
| 1231 void set typeParameters(List<UnlinkedTypeParamBuilder> _value) { | 1243 void set typeParameters(List<UnlinkedTypeParamBuilder> _value) { |
| 1232 assert(!_finished); | 1244 assert(!_finished); |
| 1233 _typeParameters = _value; | 1245 _typeParameters = _value; |
| 1234 } | 1246 } |
| 1235 | 1247 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1317 | 1329 |
| 1318 /** | 1330 /** |
| 1319 * Indicates whether this class is the core "Object" class (and hence has no | 1331 * Indicates whether this class is the core "Object" class (and hence has no |
| 1320 * supertype) | 1332 * supertype) |
| 1321 */ | 1333 */ |
| 1322 void set hasNoSupertype(bool _value) { | 1334 void set hasNoSupertype(bool _value) { |
| 1323 assert(!_finished); | 1335 assert(!_finished); |
| 1324 _hasNoSupertype = _value; | 1336 _hasNoSupertype = _value; |
| 1325 } | 1337 } |
| 1326 | 1338 |
| 1327 UnlinkedClassBuilder({String name, int nameOffset, UnlinkedDocumentationCommen
tBuilder documentationComment, List<UnlinkedTypeParamBuilder> typeParameters, En
tityRefBuilder supertype, List<EntityRefBuilder> mixins, List<EntityRefBuilder>
interfaces, List<UnlinkedVariableBuilder> fields, List<UnlinkedExecutableBuilder
> executables, bool isAbstract, bool isMixinApplication, bool hasNoSupertype}) | 1339 UnlinkedClassBuilder({String name, int nameOffset, UnlinkedDocumentationCommen
tBuilder documentationComment, List<UnlinkedConstBuilder> annotations, List<Unli
nkedTypeParamBuilder> typeParameters, EntityRefBuilder supertype, List<EntityRef
Builder> mixins, List<EntityRefBuilder> interfaces, List<UnlinkedVariableBuilder
> fields, List<UnlinkedExecutableBuilder> executables, bool isAbstract, bool isM
ixinApplication, bool hasNoSupertype}) |
| 1328 : _name = name, | 1340 : _name = name, |
| 1329 _nameOffset = nameOffset, | 1341 _nameOffset = nameOffset, |
| 1330 _documentationComment = documentationComment, | 1342 _documentationComment = documentationComment, |
| 1343 _annotations = annotations, |
| 1331 _typeParameters = typeParameters, | 1344 _typeParameters = typeParameters, |
| 1332 _supertype = supertype, | 1345 _supertype = supertype, |
| 1333 _mixins = mixins, | 1346 _mixins = mixins, |
| 1334 _interfaces = interfaces, | 1347 _interfaces = interfaces, |
| 1335 _fields = fields, | 1348 _fields = fields, |
| 1336 _executables = executables, | 1349 _executables = executables, |
| 1337 _isAbstract = isAbstract, | 1350 _isAbstract = isAbstract, |
| 1338 _isMixinApplication = isMixinApplication, | 1351 _isMixinApplication = isMixinApplication, |
| 1339 _hasNoSupertype = hasNoSupertype; | 1352 _hasNoSupertype = hasNoSupertype; |
| 1340 | 1353 |
| 1341 fb.Offset finish(fb.Builder fbBuilder) { | 1354 fb.Offset finish(fb.Builder fbBuilder) { |
| 1342 assert(!_finished); | 1355 assert(!_finished); |
| 1343 _finished = true; | 1356 _finished = true; |
| 1344 fb.Offset offset_name; | 1357 fb.Offset offset_name; |
| 1345 fb.Offset offset_documentationComment; | 1358 fb.Offset offset_documentationComment; |
| 1359 fb.Offset offset_annotations; |
| 1346 fb.Offset offset_typeParameters; | 1360 fb.Offset offset_typeParameters; |
| 1347 fb.Offset offset_supertype; | 1361 fb.Offset offset_supertype; |
| 1348 fb.Offset offset_mixins; | 1362 fb.Offset offset_mixins; |
| 1349 fb.Offset offset_interfaces; | 1363 fb.Offset offset_interfaces; |
| 1350 fb.Offset offset_fields; | 1364 fb.Offset offset_fields; |
| 1351 fb.Offset offset_executables; | 1365 fb.Offset offset_executables; |
| 1352 if (_name != null) { | 1366 if (_name != null) { |
| 1353 offset_name = fbBuilder.writeString(_name); | 1367 offset_name = fbBuilder.writeString(_name); |
| 1354 } | 1368 } |
| 1355 if (_documentationComment != null) { | 1369 if (_documentationComment != null) { |
| 1356 offset_documentationComment = _documentationComment.finish(fbBuilder); | 1370 offset_documentationComment = _documentationComment.finish(fbBuilder); |
| 1357 } | 1371 } |
| 1372 if (!(_annotations == null || _annotations.isEmpty)) { |
| 1373 offset_annotations = fbBuilder.writeList(_annotations.map((b) => b.finish(
fbBuilder)).toList()); |
| 1374 } |
| 1358 if (!(_typeParameters == null || _typeParameters.isEmpty)) { | 1375 if (!(_typeParameters == null || _typeParameters.isEmpty)) { |
| 1359 offset_typeParameters = fbBuilder.writeList(_typeParameters.map((b) => b.f
inish(fbBuilder)).toList()); | 1376 offset_typeParameters = fbBuilder.writeList(_typeParameters.map((b) => b.f
inish(fbBuilder)).toList()); |
| 1360 } | 1377 } |
| 1361 if (_supertype != null) { | 1378 if (_supertype != null) { |
| 1362 offset_supertype = _supertype.finish(fbBuilder); | 1379 offset_supertype = _supertype.finish(fbBuilder); |
| 1363 } | 1380 } |
| 1364 if (!(_mixins == null || _mixins.isEmpty)) { | 1381 if (!(_mixins == null || _mixins.isEmpty)) { |
| 1365 offset_mixins = fbBuilder.writeList(_mixins.map((b) => b.finish(fbBuilder)
).toList()); | 1382 offset_mixins = fbBuilder.writeList(_mixins.map((b) => b.finish(fbBuilder)
).toList()); |
| 1366 } | 1383 } |
| 1367 if (!(_interfaces == null || _interfaces.isEmpty)) { | 1384 if (!(_interfaces == null || _interfaces.isEmpty)) { |
| 1368 offset_interfaces = fbBuilder.writeList(_interfaces.map((b) => b.finish(fb
Builder)).toList()); | 1385 offset_interfaces = fbBuilder.writeList(_interfaces.map((b) => b.finish(fb
Builder)).toList()); |
| 1369 } | 1386 } |
| 1370 if (!(_fields == null || _fields.isEmpty)) { | 1387 if (!(_fields == null || _fields.isEmpty)) { |
| 1371 offset_fields = fbBuilder.writeList(_fields.map((b) => b.finish(fbBuilder)
).toList()); | 1388 offset_fields = fbBuilder.writeList(_fields.map((b) => b.finish(fbBuilder)
).toList()); |
| 1372 } | 1389 } |
| 1373 if (!(_executables == null || _executables.isEmpty)) { | 1390 if (!(_executables == null || _executables.isEmpty)) { |
| 1374 offset_executables = fbBuilder.writeList(_executables.map((b) => b.finish(
fbBuilder)).toList()); | 1391 offset_executables = fbBuilder.writeList(_executables.map((b) => b.finish(
fbBuilder)).toList()); |
| 1375 } | 1392 } |
| 1376 fbBuilder.startTable(); | 1393 fbBuilder.startTable(); |
| 1377 if (offset_name != null) { | 1394 if (offset_name != null) { |
| 1378 fbBuilder.addOffset(0, offset_name); | 1395 fbBuilder.addOffset(0, offset_name); |
| 1379 } | 1396 } |
| 1380 if (_nameOffset != null && _nameOffset != 0) { | 1397 if (_nameOffset != null && _nameOffset != 0) { |
| 1381 fbBuilder.addUint32(1, _nameOffset); | 1398 fbBuilder.addUint32(1, _nameOffset); |
| 1382 } | 1399 } |
| 1383 if (offset_documentationComment != null) { | 1400 if (offset_documentationComment != null) { |
| 1384 fbBuilder.addOffset(2, offset_documentationComment); | 1401 fbBuilder.addOffset(2, offset_documentationComment); |
| 1385 } | 1402 } |
| 1403 if (offset_annotations != null) { |
| 1404 fbBuilder.addOffset(3, offset_annotations); |
| 1405 } |
| 1386 if (offset_typeParameters != null) { | 1406 if (offset_typeParameters != null) { |
| 1387 fbBuilder.addOffset(3, offset_typeParameters); | 1407 fbBuilder.addOffset(4, offset_typeParameters); |
| 1388 } | 1408 } |
| 1389 if (offset_supertype != null) { | 1409 if (offset_supertype != null) { |
| 1390 fbBuilder.addOffset(4, offset_supertype); | 1410 fbBuilder.addOffset(5, offset_supertype); |
| 1391 } | 1411 } |
| 1392 if (offset_mixins != null) { | 1412 if (offset_mixins != null) { |
| 1393 fbBuilder.addOffset(5, offset_mixins); | 1413 fbBuilder.addOffset(6, offset_mixins); |
| 1394 } | 1414 } |
| 1395 if (offset_interfaces != null) { | 1415 if (offset_interfaces != null) { |
| 1396 fbBuilder.addOffset(6, offset_interfaces); | 1416 fbBuilder.addOffset(7, offset_interfaces); |
| 1397 } | 1417 } |
| 1398 if (offset_fields != null) { | 1418 if (offset_fields != null) { |
| 1399 fbBuilder.addOffset(7, offset_fields); | 1419 fbBuilder.addOffset(8, offset_fields); |
| 1400 } | 1420 } |
| 1401 if (offset_executables != null) { | 1421 if (offset_executables != null) { |
| 1402 fbBuilder.addOffset(8, offset_executables); | 1422 fbBuilder.addOffset(9, offset_executables); |
| 1403 } | 1423 } |
| 1404 if (_isAbstract == true) { | 1424 if (_isAbstract == true) { |
| 1405 fbBuilder.addBool(9, true); | 1425 fbBuilder.addBool(10, true); |
| 1406 } | 1426 } |
| 1407 if (_isMixinApplication == true) { | 1427 if (_isMixinApplication == true) { |
| 1408 fbBuilder.addBool(10, true); | 1428 fbBuilder.addBool(11, true); |
| 1409 } | 1429 } |
| 1410 if (_hasNoSupertype == true) { | 1430 if (_hasNoSupertype == true) { |
| 1411 fbBuilder.addBool(11, true); | 1431 fbBuilder.addBool(12, true); |
| 1412 } | 1432 } |
| 1413 return fbBuilder.endTable(); | 1433 return fbBuilder.endTable(); |
| 1414 } | 1434 } |
| 1415 } | 1435 } |
| 1416 | 1436 |
| 1417 class _UnlinkedClassReader extends fb.TableReader<_UnlinkedClassImpl> { | 1437 class _UnlinkedClassReader extends fb.TableReader<_UnlinkedClassImpl> { |
| 1418 const _UnlinkedClassReader(); | 1438 const _UnlinkedClassReader(); |
| 1419 | 1439 |
| 1420 @override | 1440 @override |
| 1421 _UnlinkedClassImpl createObject(fb.BufferPointer bp) => new _UnlinkedClassImpl
(bp); | 1441 _UnlinkedClassImpl createObject(fb.BufferPointer bp) => new _UnlinkedClassImpl
(bp); |
| 1422 } | 1442 } |
| 1423 | 1443 |
| 1424 class _UnlinkedClassImpl extends Object with _UnlinkedClassMixin implements idl.
UnlinkedClass { | 1444 class _UnlinkedClassImpl extends Object with _UnlinkedClassMixin implements idl.
UnlinkedClass { |
| 1425 final fb.BufferPointer _bp; | 1445 final fb.BufferPointer _bp; |
| 1426 | 1446 |
| 1427 _UnlinkedClassImpl(this._bp); | 1447 _UnlinkedClassImpl(this._bp); |
| 1428 | 1448 |
| 1429 String _name; | 1449 String _name; |
| 1430 int _nameOffset; | 1450 int _nameOffset; |
| 1431 idl.UnlinkedDocumentationComment _documentationComment; | 1451 idl.UnlinkedDocumentationComment _documentationComment; |
| 1452 List<idl.UnlinkedConst> _annotations; |
| 1432 List<idl.UnlinkedTypeParam> _typeParameters; | 1453 List<idl.UnlinkedTypeParam> _typeParameters; |
| 1433 idl.EntityRef _supertype; | 1454 idl.EntityRef _supertype; |
| 1434 List<idl.EntityRef> _mixins; | 1455 List<idl.EntityRef> _mixins; |
| 1435 List<idl.EntityRef> _interfaces; | 1456 List<idl.EntityRef> _interfaces; |
| 1436 List<idl.UnlinkedVariable> _fields; | 1457 List<idl.UnlinkedVariable> _fields; |
| 1437 List<idl.UnlinkedExecutable> _executables; | 1458 List<idl.UnlinkedExecutable> _executables; |
| 1438 bool _isAbstract; | 1459 bool _isAbstract; |
| 1439 bool _isMixinApplication; | 1460 bool _isMixinApplication; |
| 1440 bool _hasNoSupertype; | 1461 bool _hasNoSupertype; |
| 1441 | 1462 |
| 1442 @override | 1463 @override |
| 1443 String get name { | 1464 String get name { |
| 1444 _name ??= const fb.StringReader().vTableGet(_bp, 0, ''); | 1465 _name ??= const fb.StringReader().vTableGet(_bp, 0, ''); |
| 1445 return _name; | 1466 return _name; |
| 1446 } | 1467 } |
| 1447 | 1468 |
| 1448 @override | 1469 @override |
| 1449 int get nameOffset { | 1470 int get nameOffset { |
| 1450 _nameOffset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0); | 1471 _nameOffset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0); |
| 1451 return _nameOffset; | 1472 return _nameOffset; |
| 1452 } | 1473 } |
| 1453 | 1474 |
| 1454 @override | 1475 @override |
| 1455 idl.UnlinkedDocumentationComment get documentationComment { | 1476 idl.UnlinkedDocumentationComment get documentationComment { |
| 1456 _documentationComment ??= const _UnlinkedDocumentationCommentReader().vTable
Get(_bp, 2, null); | 1477 _documentationComment ??= const _UnlinkedDocumentationCommentReader().vTable
Get(_bp, 2, null); |
| 1457 return _documentationComment; | 1478 return _documentationComment; |
| 1458 } | 1479 } |
| 1459 | 1480 |
| 1460 @override | 1481 @override |
| 1482 List<idl.UnlinkedConst> get annotations { |
| 1483 _annotations ??= const fb.ListReader<idl.UnlinkedConst>(const _UnlinkedConst
Reader()).vTableGet(_bp, 3, const <idl.UnlinkedConst>[]); |
| 1484 return _annotations; |
| 1485 } |
| 1486 |
| 1487 @override |
| 1461 List<idl.UnlinkedTypeParam> get typeParameters { | 1488 List<idl.UnlinkedTypeParam> get typeParameters { |
| 1462 _typeParameters ??= const fb.ListReader<idl.UnlinkedTypeParam>(const _Unlink
edTypeParamReader()).vTableGet(_bp, 3, const <idl.UnlinkedTypeParam>[]); | 1489 _typeParameters ??= const fb.ListReader<idl.UnlinkedTypeParam>(const _Unlink
edTypeParamReader()).vTableGet(_bp, 4, const <idl.UnlinkedTypeParam>[]); |
| 1463 return _typeParameters; | 1490 return _typeParameters; |
| 1464 } | 1491 } |
| 1465 | 1492 |
| 1466 @override | 1493 @override |
| 1467 idl.EntityRef get supertype { | 1494 idl.EntityRef get supertype { |
| 1468 _supertype ??= const _EntityRefReader().vTableGet(_bp, 4, null); | 1495 _supertype ??= const _EntityRefReader().vTableGet(_bp, 5, null); |
| 1469 return _supertype; | 1496 return _supertype; |
| 1470 } | 1497 } |
| 1471 | 1498 |
| 1472 @override | 1499 @override |
| 1473 List<idl.EntityRef> get mixins { | 1500 List<idl.EntityRef> get mixins { |
| 1474 _mixins ??= const fb.ListReader<idl.EntityRef>(const _EntityRefReader()).vTa
bleGet(_bp, 5, const <idl.EntityRef>[]); | 1501 _mixins ??= const fb.ListReader<idl.EntityRef>(const _EntityRefReader()).vTa
bleGet(_bp, 6, const <idl.EntityRef>[]); |
| 1475 return _mixins; | 1502 return _mixins; |
| 1476 } | 1503 } |
| 1477 | 1504 |
| 1478 @override | 1505 @override |
| 1479 List<idl.EntityRef> get interfaces { | 1506 List<idl.EntityRef> get interfaces { |
| 1480 _interfaces ??= const fb.ListReader<idl.EntityRef>(const _EntityRefReader())
.vTableGet(_bp, 6, const <idl.EntityRef>[]); | 1507 _interfaces ??= const fb.ListReader<idl.EntityRef>(const _EntityRefReader())
.vTableGet(_bp, 7, const <idl.EntityRef>[]); |
| 1481 return _interfaces; | 1508 return _interfaces; |
| 1482 } | 1509 } |
| 1483 | 1510 |
| 1484 @override | 1511 @override |
| 1485 List<idl.UnlinkedVariable> get fields { | 1512 List<idl.UnlinkedVariable> get fields { |
| 1486 _fields ??= const fb.ListReader<idl.UnlinkedVariable>(const _UnlinkedVariabl
eReader()).vTableGet(_bp, 7, const <idl.UnlinkedVariable>[]); | 1513 _fields ??= const fb.ListReader<idl.UnlinkedVariable>(const _UnlinkedVariabl
eReader()).vTableGet(_bp, 8, const <idl.UnlinkedVariable>[]); |
| 1487 return _fields; | 1514 return _fields; |
| 1488 } | 1515 } |
| 1489 | 1516 |
| 1490 @override | 1517 @override |
| 1491 List<idl.UnlinkedExecutable> get executables { | 1518 List<idl.UnlinkedExecutable> get executables { |
| 1492 _executables ??= const fb.ListReader<idl.UnlinkedExecutable>(const _Unlinked
ExecutableReader()).vTableGet(_bp, 8, const <idl.UnlinkedExecutable>[]); | 1519 _executables ??= const fb.ListReader<idl.UnlinkedExecutable>(const _Unlinked
ExecutableReader()).vTableGet(_bp, 9, const <idl.UnlinkedExecutable>[]); |
| 1493 return _executables; | 1520 return _executables; |
| 1494 } | 1521 } |
| 1495 | 1522 |
| 1496 @override | 1523 @override |
| 1497 bool get isAbstract { | 1524 bool get isAbstract { |
| 1498 _isAbstract ??= const fb.BoolReader().vTableGet(_bp, 9, false); | 1525 _isAbstract ??= const fb.BoolReader().vTableGet(_bp, 10, false); |
| 1499 return _isAbstract; | 1526 return _isAbstract; |
| 1500 } | 1527 } |
| 1501 | 1528 |
| 1502 @override | 1529 @override |
| 1503 bool get isMixinApplication { | 1530 bool get isMixinApplication { |
| 1504 _isMixinApplication ??= const fb.BoolReader().vTableGet(_bp, 10, false); | 1531 _isMixinApplication ??= const fb.BoolReader().vTableGet(_bp, 11, false); |
| 1505 return _isMixinApplication; | 1532 return _isMixinApplication; |
| 1506 } | 1533 } |
| 1507 | 1534 |
| 1508 @override | 1535 @override |
| 1509 bool get hasNoSupertype { | 1536 bool get hasNoSupertype { |
| 1510 _hasNoSupertype ??= const fb.BoolReader().vTableGet(_bp, 11, false); | 1537 _hasNoSupertype ??= const fb.BoolReader().vTableGet(_bp, 12, false); |
| 1511 return _hasNoSupertype; | 1538 return _hasNoSupertype; |
| 1512 } | 1539 } |
| 1513 } | 1540 } |
| 1514 | 1541 |
| 1515 abstract class _UnlinkedClassMixin implements idl.UnlinkedClass { | 1542 abstract class _UnlinkedClassMixin implements idl.UnlinkedClass { |
| 1516 @override | 1543 @override |
| 1517 Map<String, Object> toMap() => { | 1544 Map<String, Object> toMap() => { |
| 1518 "name": name, | 1545 "name": name, |
| 1519 "nameOffset": nameOffset, | 1546 "nameOffset": nameOffset, |
| 1520 "documentationComment": documentationComment, | 1547 "documentationComment": documentationComment, |
| 1548 "annotations": annotations, |
| 1521 "typeParameters": typeParameters, | 1549 "typeParameters": typeParameters, |
| 1522 "supertype": supertype, | 1550 "supertype": supertype, |
| 1523 "mixins": mixins, | 1551 "mixins": mixins, |
| 1524 "interfaces": interfaces, | 1552 "interfaces": interfaces, |
| 1525 "fields": fields, | 1553 "fields": fields, |
| 1526 "executables": executables, | 1554 "executables": executables, |
| 1527 "isAbstract": isAbstract, | 1555 "isAbstract": isAbstract, |
| 1528 "isMixinApplication": isMixinApplication, | 1556 "isMixinApplication": isMixinApplication, |
| 1529 "hasNoSupertype": hasNoSupertype, | 1557 "hasNoSupertype": hasNoSupertype, |
| 1530 }; | 1558 }; |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1917 "length": length, | 1945 "length": length, |
| 1918 }; | 1946 }; |
| 1919 } | 1947 } |
| 1920 | 1948 |
| 1921 class UnlinkedEnumBuilder extends Object with _UnlinkedEnumMixin implements idl.
UnlinkedEnum { | 1949 class UnlinkedEnumBuilder extends Object with _UnlinkedEnumMixin implements idl.
UnlinkedEnum { |
| 1922 bool _finished = false; | 1950 bool _finished = false; |
| 1923 | 1951 |
| 1924 String _name; | 1952 String _name; |
| 1925 int _nameOffset; | 1953 int _nameOffset; |
| 1926 UnlinkedDocumentationCommentBuilder _documentationComment; | 1954 UnlinkedDocumentationCommentBuilder _documentationComment; |
| 1955 List<UnlinkedConstBuilder> _annotations; |
| 1927 List<UnlinkedEnumValueBuilder> _values; | 1956 List<UnlinkedEnumValueBuilder> _values; |
| 1928 | 1957 |
| 1929 @override | 1958 @override |
| 1930 String get name => _name ??= ''; | 1959 String get name => _name ??= ''; |
| 1931 | 1960 |
| 1932 /** | 1961 /** |
| 1933 * Name of the enum type. | 1962 * Name of the enum type. |
| 1934 */ | 1963 */ |
| 1935 void set name(String _value) { | 1964 void set name(String _value) { |
| 1936 assert(!_finished); | 1965 assert(!_finished); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 1955 /** | 1984 /** |
| 1956 * Documentation comment for the enum, or `null` if there is no documentation | 1985 * Documentation comment for the enum, or `null` if there is no documentation |
| 1957 * comment. | 1986 * comment. |
| 1958 */ | 1987 */ |
| 1959 void set documentationComment(UnlinkedDocumentationCommentBuilder _value) { | 1988 void set documentationComment(UnlinkedDocumentationCommentBuilder _value) { |
| 1960 assert(!_finished); | 1989 assert(!_finished); |
| 1961 _documentationComment = _value; | 1990 _documentationComment = _value; |
| 1962 } | 1991 } |
| 1963 | 1992 |
| 1964 @override | 1993 @override |
| 1994 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; |
| 1995 |
| 1996 /** |
| 1997 * Annotations for this enum. |
| 1998 */ |
| 1999 void set annotations(List<UnlinkedConstBuilder> _value) { |
| 2000 assert(!_finished); |
| 2001 _annotations = _value; |
| 2002 } |
| 2003 |
| 2004 @override |
| 1965 List<UnlinkedEnumValueBuilder> get values => _values ??= <UnlinkedEnumValueBui
lder>[]; | 2005 List<UnlinkedEnumValueBuilder> get values => _values ??= <UnlinkedEnumValueBui
lder>[]; |
| 1966 | 2006 |
| 1967 /** | 2007 /** |
| 1968 * Values listed in the enum declaration, in declaration order. | 2008 * Values listed in the enum declaration, in declaration order. |
| 1969 */ | 2009 */ |
| 1970 void set values(List<UnlinkedEnumValueBuilder> _value) { | 2010 void set values(List<UnlinkedEnumValueBuilder> _value) { |
| 1971 assert(!_finished); | 2011 assert(!_finished); |
| 1972 _values = _value; | 2012 _values = _value; |
| 1973 } | 2013 } |
| 1974 | 2014 |
| 1975 UnlinkedEnumBuilder({String name, int nameOffset, UnlinkedDocumentationComment
Builder documentationComment, List<UnlinkedEnumValueBuilder> values}) | 2015 UnlinkedEnumBuilder({String name, int nameOffset, UnlinkedDocumentationComment
Builder documentationComment, List<UnlinkedConstBuilder> annotations, List<Unlin
kedEnumValueBuilder> values}) |
| 1976 : _name = name, | 2016 : _name = name, |
| 1977 _nameOffset = nameOffset, | 2017 _nameOffset = nameOffset, |
| 1978 _documentationComment = documentationComment, | 2018 _documentationComment = documentationComment, |
| 2019 _annotations = annotations, |
| 1979 _values = values; | 2020 _values = values; |
| 1980 | 2021 |
| 1981 fb.Offset finish(fb.Builder fbBuilder) { | 2022 fb.Offset finish(fb.Builder fbBuilder) { |
| 1982 assert(!_finished); | 2023 assert(!_finished); |
| 1983 _finished = true; | 2024 _finished = true; |
| 1984 fb.Offset offset_name; | 2025 fb.Offset offset_name; |
| 1985 fb.Offset offset_documentationComment; | 2026 fb.Offset offset_documentationComment; |
| 2027 fb.Offset offset_annotations; |
| 1986 fb.Offset offset_values; | 2028 fb.Offset offset_values; |
| 1987 if (_name != null) { | 2029 if (_name != null) { |
| 1988 offset_name = fbBuilder.writeString(_name); | 2030 offset_name = fbBuilder.writeString(_name); |
| 1989 } | 2031 } |
| 1990 if (_documentationComment != null) { | 2032 if (_documentationComment != null) { |
| 1991 offset_documentationComment = _documentationComment.finish(fbBuilder); | 2033 offset_documentationComment = _documentationComment.finish(fbBuilder); |
| 1992 } | 2034 } |
| 2035 if (!(_annotations == null || _annotations.isEmpty)) { |
| 2036 offset_annotations = fbBuilder.writeList(_annotations.map((b) => b.finish(
fbBuilder)).toList()); |
| 2037 } |
| 1993 if (!(_values == null || _values.isEmpty)) { | 2038 if (!(_values == null || _values.isEmpty)) { |
| 1994 offset_values = fbBuilder.writeList(_values.map((b) => b.finish(fbBuilder)
).toList()); | 2039 offset_values = fbBuilder.writeList(_values.map((b) => b.finish(fbBuilder)
).toList()); |
| 1995 } | 2040 } |
| 1996 fbBuilder.startTable(); | 2041 fbBuilder.startTable(); |
| 1997 if (offset_name != null) { | 2042 if (offset_name != null) { |
| 1998 fbBuilder.addOffset(0, offset_name); | 2043 fbBuilder.addOffset(0, offset_name); |
| 1999 } | 2044 } |
| 2000 if (_nameOffset != null && _nameOffset != 0) { | 2045 if (_nameOffset != null && _nameOffset != 0) { |
| 2001 fbBuilder.addUint32(1, _nameOffset); | 2046 fbBuilder.addUint32(1, _nameOffset); |
| 2002 } | 2047 } |
| 2003 if (offset_documentationComment != null) { | 2048 if (offset_documentationComment != null) { |
| 2004 fbBuilder.addOffset(2, offset_documentationComment); | 2049 fbBuilder.addOffset(2, offset_documentationComment); |
| 2005 } | 2050 } |
| 2051 if (offset_annotations != null) { |
| 2052 fbBuilder.addOffset(3, offset_annotations); |
| 2053 } |
| 2006 if (offset_values != null) { | 2054 if (offset_values != null) { |
| 2007 fbBuilder.addOffset(3, offset_values); | 2055 fbBuilder.addOffset(4, offset_values); |
| 2008 } | 2056 } |
| 2009 return fbBuilder.endTable(); | 2057 return fbBuilder.endTable(); |
| 2010 } | 2058 } |
| 2011 } | 2059 } |
| 2012 | 2060 |
| 2013 class _UnlinkedEnumReader extends fb.TableReader<_UnlinkedEnumImpl> { | 2061 class _UnlinkedEnumReader extends fb.TableReader<_UnlinkedEnumImpl> { |
| 2014 const _UnlinkedEnumReader(); | 2062 const _UnlinkedEnumReader(); |
| 2015 | 2063 |
| 2016 @override | 2064 @override |
| 2017 _UnlinkedEnumImpl createObject(fb.BufferPointer bp) => new _UnlinkedEnumImpl(b
p); | 2065 _UnlinkedEnumImpl createObject(fb.BufferPointer bp) => new _UnlinkedEnumImpl(b
p); |
| 2018 } | 2066 } |
| 2019 | 2067 |
| 2020 class _UnlinkedEnumImpl extends Object with _UnlinkedEnumMixin implements idl.Un
linkedEnum { | 2068 class _UnlinkedEnumImpl extends Object with _UnlinkedEnumMixin implements idl.Un
linkedEnum { |
| 2021 final fb.BufferPointer _bp; | 2069 final fb.BufferPointer _bp; |
| 2022 | 2070 |
| 2023 _UnlinkedEnumImpl(this._bp); | 2071 _UnlinkedEnumImpl(this._bp); |
| 2024 | 2072 |
| 2025 String _name; | 2073 String _name; |
| 2026 int _nameOffset; | 2074 int _nameOffset; |
| 2027 idl.UnlinkedDocumentationComment _documentationComment; | 2075 idl.UnlinkedDocumentationComment _documentationComment; |
| 2076 List<idl.UnlinkedConst> _annotations; |
| 2028 List<idl.UnlinkedEnumValue> _values; | 2077 List<idl.UnlinkedEnumValue> _values; |
| 2029 | 2078 |
| 2030 @override | 2079 @override |
| 2031 String get name { | 2080 String get name { |
| 2032 _name ??= const fb.StringReader().vTableGet(_bp, 0, ''); | 2081 _name ??= const fb.StringReader().vTableGet(_bp, 0, ''); |
| 2033 return _name; | 2082 return _name; |
| 2034 } | 2083 } |
| 2035 | 2084 |
| 2036 @override | 2085 @override |
| 2037 int get nameOffset { | 2086 int get nameOffset { |
| 2038 _nameOffset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0); | 2087 _nameOffset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0); |
| 2039 return _nameOffset; | 2088 return _nameOffset; |
| 2040 } | 2089 } |
| 2041 | 2090 |
| 2042 @override | 2091 @override |
| 2043 idl.UnlinkedDocumentationComment get documentationComment { | 2092 idl.UnlinkedDocumentationComment get documentationComment { |
| 2044 _documentationComment ??= const _UnlinkedDocumentationCommentReader().vTable
Get(_bp, 2, null); | 2093 _documentationComment ??= const _UnlinkedDocumentationCommentReader().vTable
Get(_bp, 2, null); |
| 2045 return _documentationComment; | 2094 return _documentationComment; |
| 2046 } | 2095 } |
| 2047 | 2096 |
| 2048 @override | 2097 @override |
| 2098 List<idl.UnlinkedConst> get annotations { |
| 2099 _annotations ??= const fb.ListReader<idl.UnlinkedConst>(const _UnlinkedConst
Reader()).vTableGet(_bp, 3, const <idl.UnlinkedConst>[]); |
| 2100 return _annotations; |
| 2101 } |
| 2102 |
| 2103 @override |
| 2049 List<idl.UnlinkedEnumValue> get values { | 2104 List<idl.UnlinkedEnumValue> get values { |
| 2050 _values ??= const fb.ListReader<idl.UnlinkedEnumValue>(const _UnlinkedEnumVa
lueReader()).vTableGet(_bp, 3, const <idl.UnlinkedEnumValue>[]); | 2105 _values ??= const fb.ListReader<idl.UnlinkedEnumValue>(const _UnlinkedEnumVa
lueReader()).vTableGet(_bp, 4, const <idl.UnlinkedEnumValue>[]); |
| 2051 return _values; | 2106 return _values; |
| 2052 } | 2107 } |
| 2053 } | 2108 } |
| 2054 | 2109 |
| 2055 abstract class _UnlinkedEnumMixin implements idl.UnlinkedEnum { | 2110 abstract class _UnlinkedEnumMixin implements idl.UnlinkedEnum { |
| 2056 @override | 2111 @override |
| 2057 Map<String, Object> toMap() => { | 2112 Map<String, Object> toMap() => { |
| 2058 "name": name, | 2113 "name": name, |
| 2059 "nameOffset": nameOffset, | 2114 "nameOffset": nameOffset, |
| 2060 "documentationComment": documentationComment, | 2115 "documentationComment": documentationComment, |
| 2116 "annotations": annotations, |
| 2061 "values": values, | 2117 "values": values, |
| 2062 }; | 2118 }; |
| 2063 } | 2119 } |
| 2064 | 2120 |
| 2065 class UnlinkedEnumValueBuilder extends Object with _UnlinkedEnumValueMixin imple
ments idl.UnlinkedEnumValue { | 2121 class UnlinkedEnumValueBuilder extends Object with _UnlinkedEnumValueMixin imple
ments idl.UnlinkedEnumValue { |
| 2066 bool _finished = false; | 2122 bool _finished = false; |
| 2067 | 2123 |
| 2068 String _name; | 2124 String _name; |
| 2069 int _nameOffset; | 2125 int _nameOffset; |
| 2070 UnlinkedDocumentationCommentBuilder _documentationComment; | 2126 UnlinkedDocumentationCommentBuilder _documentationComment; |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2177 "documentationComment": documentationComment, | 2233 "documentationComment": documentationComment, |
| 2178 }; | 2234 }; |
| 2179 } | 2235 } |
| 2180 | 2236 |
| 2181 class UnlinkedExecutableBuilder extends Object with _UnlinkedExecutableMixin imp
lements idl.UnlinkedExecutable { | 2237 class UnlinkedExecutableBuilder extends Object with _UnlinkedExecutableMixin imp
lements idl.UnlinkedExecutable { |
| 2182 bool _finished = false; | 2238 bool _finished = false; |
| 2183 | 2239 |
| 2184 String _name; | 2240 String _name; |
| 2185 int _nameOffset; | 2241 int _nameOffset; |
| 2186 UnlinkedDocumentationCommentBuilder _documentationComment; | 2242 UnlinkedDocumentationCommentBuilder _documentationComment; |
| 2243 List<UnlinkedConstBuilder> _annotations; |
| 2187 List<UnlinkedTypeParamBuilder> _typeParameters; | 2244 List<UnlinkedTypeParamBuilder> _typeParameters; |
| 2188 EntityRefBuilder _returnType; | 2245 EntityRefBuilder _returnType; |
| 2189 List<UnlinkedParamBuilder> _parameters; | 2246 List<UnlinkedParamBuilder> _parameters; |
| 2190 idl.UnlinkedExecutableKind _kind; | 2247 idl.UnlinkedExecutableKind _kind; |
| 2191 bool _isAbstract; | 2248 bool _isAbstract; |
| 2192 bool _isStatic; | 2249 bool _isStatic; |
| 2193 bool _isConst; | 2250 bool _isConst; |
| 2194 bool _isFactory; | 2251 bool _isFactory; |
| 2195 bool _isExternal; | 2252 bool _isExternal; |
| 2196 int _inferredReturnTypeSlot; | 2253 int _inferredReturnTypeSlot; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2229 /** | 2286 /** |
| 2230 * Documentation comment for the executable, or `null` if there is no | 2287 * Documentation comment for the executable, or `null` if there is no |
| 2231 * documentation comment. | 2288 * documentation comment. |
| 2232 */ | 2289 */ |
| 2233 void set documentationComment(UnlinkedDocumentationCommentBuilder _value) { | 2290 void set documentationComment(UnlinkedDocumentationCommentBuilder _value) { |
| 2234 assert(!_finished); | 2291 assert(!_finished); |
| 2235 _documentationComment = _value; | 2292 _documentationComment = _value; |
| 2236 } | 2293 } |
| 2237 | 2294 |
| 2238 @override | 2295 @override |
| 2296 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; |
| 2297 |
| 2298 /** |
| 2299 * Annotations for this executable. |
| 2300 */ |
| 2301 void set annotations(List<UnlinkedConstBuilder> _value) { |
| 2302 assert(!_finished); |
| 2303 _annotations = _value; |
| 2304 } |
| 2305 |
| 2306 @override |
| 2239 List<UnlinkedTypeParamBuilder> get typeParameters => _typeParameters ??= <Unli
nkedTypeParamBuilder>[]; | 2307 List<UnlinkedTypeParamBuilder> get typeParameters => _typeParameters ??= <Unli
nkedTypeParamBuilder>[]; |
| 2240 | 2308 |
| 2241 /** | 2309 /** |
| 2242 * Type parameters of the executable, if any. Empty if support for generic | 2310 * Type parameters of the executable, if any. Empty if support for generic |
| 2243 * method syntax is disabled. | 2311 * method syntax is disabled. |
| 2244 */ | 2312 */ |
| 2245 void set typeParameters(List<UnlinkedTypeParamBuilder> _value) { | 2313 void set typeParameters(List<UnlinkedTypeParamBuilder> _value) { |
| 2246 assert(!_finished); | 2314 assert(!_finished); |
| 2247 _typeParameters = _value; | 2315 _typeParameters = _value; |
| 2248 } | 2316 } |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2352 * return type. If there is no matching entry in [LinkedLibrary.types], then | 2420 * return type. If there is no matching entry in [LinkedLibrary.types], then |
| 2353 * no return type was inferred for this variable, so its static type is | 2421 * no return type was inferred for this variable, so its static type is |
| 2354 * `dynamic`. | 2422 * `dynamic`. |
| 2355 */ | 2423 */ |
| 2356 void set inferredReturnTypeSlot(int _value) { | 2424 void set inferredReturnTypeSlot(int _value) { |
| 2357 assert(!_finished); | 2425 assert(!_finished); |
| 2358 assert(_value == null || _value >= 0); | 2426 assert(_value == null || _value >= 0); |
| 2359 _inferredReturnTypeSlot = _value; | 2427 _inferredReturnTypeSlot = _value; |
| 2360 } | 2428 } |
| 2361 | 2429 |
| 2362 UnlinkedExecutableBuilder({String name, int nameOffset, UnlinkedDocumentationC
ommentBuilder documentationComment, List<UnlinkedTypeParamBuilder> typeParameter
s, EntityRefBuilder returnType, List<UnlinkedParamBuilder> parameters, idl.Unlin
kedExecutableKind kind, bool isAbstract, bool isStatic, bool isConst, bool isFac
tory, bool isExternal, int inferredReturnTypeSlot}) | 2430 UnlinkedExecutableBuilder({String name, int nameOffset, UnlinkedDocumentationC
ommentBuilder documentationComment, List<UnlinkedConstBuilder> annotations, List
<UnlinkedTypeParamBuilder> typeParameters, EntityRefBuilder returnType, List<Unl
inkedParamBuilder> parameters, idl.UnlinkedExecutableKind kind, bool isAbstract,
bool isStatic, bool isConst, bool isFactory, bool isExternal, int inferredRetur
nTypeSlot}) |
| 2363 : _name = name, | 2431 : _name = name, |
| 2364 _nameOffset = nameOffset, | 2432 _nameOffset = nameOffset, |
| 2365 _documentationComment = documentationComment, | 2433 _documentationComment = documentationComment, |
| 2434 _annotations = annotations, |
| 2366 _typeParameters = typeParameters, | 2435 _typeParameters = typeParameters, |
| 2367 _returnType = returnType, | 2436 _returnType = returnType, |
| 2368 _parameters = parameters, | 2437 _parameters = parameters, |
| 2369 _kind = kind, | 2438 _kind = kind, |
| 2370 _isAbstract = isAbstract, | 2439 _isAbstract = isAbstract, |
| 2371 _isStatic = isStatic, | 2440 _isStatic = isStatic, |
| 2372 _isConst = isConst, | 2441 _isConst = isConst, |
| 2373 _isFactory = isFactory, | 2442 _isFactory = isFactory, |
| 2374 _isExternal = isExternal, | 2443 _isExternal = isExternal, |
| 2375 _inferredReturnTypeSlot = inferredReturnTypeSlot; | 2444 _inferredReturnTypeSlot = inferredReturnTypeSlot; |
| 2376 | 2445 |
| 2377 fb.Offset finish(fb.Builder fbBuilder) { | 2446 fb.Offset finish(fb.Builder fbBuilder) { |
| 2378 assert(!_finished); | 2447 assert(!_finished); |
| 2379 _finished = true; | 2448 _finished = true; |
| 2380 fb.Offset offset_name; | 2449 fb.Offset offset_name; |
| 2381 fb.Offset offset_documentationComment; | 2450 fb.Offset offset_documentationComment; |
| 2451 fb.Offset offset_annotations; |
| 2382 fb.Offset offset_typeParameters; | 2452 fb.Offset offset_typeParameters; |
| 2383 fb.Offset offset_returnType; | 2453 fb.Offset offset_returnType; |
| 2384 fb.Offset offset_parameters; | 2454 fb.Offset offset_parameters; |
| 2385 if (_name != null) { | 2455 if (_name != null) { |
| 2386 offset_name = fbBuilder.writeString(_name); | 2456 offset_name = fbBuilder.writeString(_name); |
| 2387 } | 2457 } |
| 2388 if (_documentationComment != null) { | 2458 if (_documentationComment != null) { |
| 2389 offset_documentationComment = _documentationComment.finish(fbBuilder); | 2459 offset_documentationComment = _documentationComment.finish(fbBuilder); |
| 2390 } | 2460 } |
| 2461 if (!(_annotations == null || _annotations.isEmpty)) { |
| 2462 offset_annotations = fbBuilder.writeList(_annotations.map((b) => b.finish(
fbBuilder)).toList()); |
| 2463 } |
| 2391 if (!(_typeParameters == null || _typeParameters.isEmpty)) { | 2464 if (!(_typeParameters == null || _typeParameters.isEmpty)) { |
| 2392 offset_typeParameters = fbBuilder.writeList(_typeParameters.map((b) => b.f
inish(fbBuilder)).toList()); | 2465 offset_typeParameters = fbBuilder.writeList(_typeParameters.map((b) => b.f
inish(fbBuilder)).toList()); |
| 2393 } | 2466 } |
| 2394 if (_returnType != null) { | 2467 if (_returnType != null) { |
| 2395 offset_returnType = _returnType.finish(fbBuilder); | 2468 offset_returnType = _returnType.finish(fbBuilder); |
| 2396 } | 2469 } |
| 2397 if (!(_parameters == null || _parameters.isEmpty)) { | 2470 if (!(_parameters == null || _parameters.isEmpty)) { |
| 2398 offset_parameters = fbBuilder.writeList(_parameters.map((b) => b.finish(fb
Builder)).toList()); | 2471 offset_parameters = fbBuilder.writeList(_parameters.map((b) => b.finish(fb
Builder)).toList()); |
| 2399 } | 2472 } |
| 2400 fbBuilder.startTable(); | 2473 fbBuilder.startTable(); |
| 2401 if (offset_name != null) { | 2474 if (offset_name != null) { |
| 2402 fbBuilder.addOffset(0, offset_name); | 2475 fbBuilder.addOffset(0, offset_name); |
| 2403 } | 2476 } |
| 2404 if (_nameOffset != null && _nameOffset != 0) { | 2477 if (_nameOffset != null && _nameOffset != 0) { |
| 2405 fbBuilder.addUint32(1, _nameOffset); | 2478 fbBuilder.addUint32(1, _nameOffset); |
| 2406 } | 2479 } |
| 2407 if (offset_documentationComment != null) { | 2480 if (offset_documentationComment != null) { |
| 2408 fbBuilder.addOffset(2, offset_documentationComment); | 2481 fbBuilder.addOffset(2, offset_documentationComment); |
| 2409 } | 2482 } |
| 2483 if (offset_annotations != null) { |
| 2484 fbBuilder.addOffset(3, offset_annotations); |
| 2485 } |
| 2410 if (offset_typeParameters != null) { | 2486 if (offset_typeParameters != null) { |
| 2411 fbBuilder.addOffset(3, offset_typeParameters); | 2487 fbBuilder.addOffset(4, offset_typeParameters); |
| 2412 } | 2488 } |
| 2413 if (offset_returnType != null) { | 2489 if (offset_returnType != null) { |
| 2414 fbBuilder.addOffset(4, offset_returnType); | 2490 fbBuilder.addOffset(5, offset_returnType); |
| 2415 } | 2491 } |
| 2416 if (offset_parameters != null) { | 2492 if (offset_parameters != null) { |
| 2417 fbBuilder.addOffset(5, offset_parameters); | 2493 fbBuilder.addOffset(6, offset_parameters); |
| 2418 } | 2494 } |
| 2419 if (_kind != null && _kind != idl.UnlinkedExecutableKind.functionOrMethod) { | 2495 if (_kind != null && _kind != idl.UnlinkedExecutableKind.functionOrMethod) { |
| 2420 fbBuilder.addUint32(6, _kind.index); | 2496 fbBuilder.addUint32(7, _kind.index); |
| 2421 } | 2497 } |
| 2422 if (_isAbstract == true) { | 2498 if (_isAbstract == true) { |
| 2423 fbBuilder.addBool(7, true); | 2499 fbBuilder.addBool(8, true); |
| 2424 } | 2500 } |
| 2425 if (_isStatic == true) { | 2501 if (_isStatic == true) { |
| 2426 fbBuilder.addBool(8, true); | 2502 fbBuilder.addBool(9, true); |
| 2427 } | 2503 } |
| 2428 if (_isConst == true) { | 2504 if (_isConst == true) { |
| 2429 fbBuilder.addBool(9, true); | 2505 fbBuilder.addBool(10, true); |
| 2430 } | 2506 } |
| 2431 if (_isFactory == true) { | 2507 if (_isFactory == true) { |
| 2432 fbBuilder.addBool(10, true); | 2508 fbBuilder.addBool(11, true); |
| 2433 } | 2509 } |
| 2434 if (_isExternal == true) { | 2510 if (_isExternal == true) { |
| 2435 fbBuilder.addBool(11, true); | 2511 fbBuilder.addBool(12, true); |
| 2436 } | 2512 } |
| 2437 if (_inferredReturnTypeSlot != null && _inferredReturnTypeSlot != 0) { | 2513 if (_inferredReturnTypeSlot != null && _inferredReturnTypeSlot != 0) { |
| 2438 fbBuilder.addUint32(12, _inferredReturnTypeSlot); | 2514 fbBuilder.addUint32(13, _inferredReturnTypeSlot); |
| 2439 } | 2515 } |
| 2440 return fbBuilder.endTable(); | 2516 return fbBuilder.endTable(); |
| 2441 } | 2517 } |
| 2442 } | 2518 } |
| 2443 | 2519 |
| 2444 class _UnlinkedExecutableReader extends fb.TableReader<_UnlinkedExecutableImpl>
{ | 2520 class _UnlinkedExecutableReader extends fb.TableReader<_UnlinkedExecutableImpl>
{ |
| 2445 const _UnlinkedExecutableReader(); | 2521 const _UnlinkedExecutableReader(); |
| 2446 | 2522 |
| 2447 @override | 2523 @override |
| 2448 _UnlinkedExecutableImpl createObject(fb.BufferPointer bp) => new _UnlinkedExec
utableImpl(bp); | 2524 _UnlinkedExecutableImpl createObject(fb.BufferPointer bp) => new _UnlinkedExec
utableImpl(bp); |
| 2449 } | 2525 } |
| 2450 | 2526 |
| 2451 class _UnlinkedExecutableImpl extends Object with _UnlinkedExecutableMixin imple
ments idl.UnlinkedExecutable { | 2527 class _UnlinkedExecutableImpl extends Object with _UnlinkedExecutableMixin imple
ments idl.UnlinkedExecutable { |
| 2452 final fb.BufferPointer _bp; | 2528 final fb.BufferPointer _bp; |
| 2453 | 2529 |
| 2454 _UnlinkedExecutableImpl(this._bp); | 2530 _UnlinkedExecutableImpl(this._bp); |
| 2455 | 2531 |
| 2456 String _name; | 2532 String _name; |
| 2457 int _nameOffset; | 2533 int _nameOffset; |
| 2458 idl.UnlinkedDocumentationComment _documentationComment; | 2534 idl.UnlinkedDocumentationComment _documentationComment; |
| 2535 List<idl.UnlinkedConst> _annotations; |
| 2459 List<idl.UnlinkedTypeParam> _typeParameters; | 2536 List<idl.UnlinkedTypeParam> _typeParameters; |
| 2460 idl.EntityRef _returnType; | 2537 idl.EntityRef _returnType; |
| 2461 List<idl.UnlinkedParam> _parameters; | 2538 List<idl.UnlinkedParam> _parameters; |
| 2462 idl.UnlinkedExecutableKind _kind; | 2539 idl.UnlinkedExecutableKind _kind; |
| 2463 bool _isAbstract; | 2540 bool _isAbstract; |
| 2464 bool _isStatic; | 2541 bool _isStatic; |
| 2465 bool _isConst; | 2542 bool _isConst; |
| 2466 bool _isFactory; | 2543 bool _isFactory; |
| 2467 bool _isExternal; | 2544 bool _isExternal; |
| 2468 int _inferredReturnTypeSlot; | 2545 int _inferredReturnTypeSlot; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 2479 return _nameOffset; | 2556 return _nameOffset; |
| 2480 } | 2557 } |
| 2481 | 2558 |
| 2482 @override | 2559 @override |
| 2483 idl.UnlinkedDocumentationComment get documentationComment { | 2560 idl.UnlinkedDocumentationComment get documentationComment { |
| 2484 _documentationComment ??= const _UnlinkedDocumentationCommentReader().vTable
Get(_bp, 2, null); | 2561 _documentationComment ??= const _UnlinkedDocumentationCommentReader().vTable
Get(_bp, 2, null); |
| 2485 return _documentationComment; | 2562 return _documentationComment; |
| 2486 } | 2563 } |
| 2487 | 2564 |
| 2488 @override | 2565 @override |
| 2566 List<idl.UnlinkedConst> get annotations { |
| 2567 _annotations ??= const fb.ListReader<idl.UnlinkedConst>(const _UnlinkedConst
Reader()).vTableGet(_bp, 3, const <idl.UnlinkedConst>[]); |
| 2568 return _annotations; |
| 2569 } |
| 2570 |
| 2571 @override |
| 2489 List<idl.UnlinkedTypeParam> get typeParameters { | 2572 List<idl.UnlinkedTypeParam> get typeParameters { |
| 2490 _typeParameters ??= const fb.ListReader<idl.UnlinkedTypeParam>(const _Unlink
edTypeParamReader()).vTableGet(_bp, 3, const <idl.UnlinkedTypeParam>[]); | 2573 _typeParameters ??= const fb.ListReader<idl.UnlinkedTypeParam>(const _Unlink
edTypeParamReader()).vTableGet(_bp, 4, const <idl.UnlinkedTypeParam>[]); |
| 2491 return _typeParameters; | 2574 return _typeParameters; |
| 2492 } | 2575 } |
| 2493 | 2576 |
| 2494 @override | 2577 @override |
| 2495 idl.EntityRef get returnType { | 2578 idl.EntityRef get returnType { |
| 2496 _returnType ??= const _EntityRefReader().vTableGet(_bp, 4, null); | 2579 _returnType ??= const _EntityRefReader().vTableGet(_bp, 5, null); |
| 2497 return _returnType; | 2580 return _returnType; |
| 2498 } | 2581 } |
| 2499 | 2582 |
| 2500 @override | 2583 @override |
| 2501 List<idl.UnlinkedParam> get parameters { | 2584 List<idl.UnlinkedParam> get parameters { |
| 2502 _parameters ??= const fb.ListReader<idl.UnlinkedParam>(const _UnlinkedParamR
eader()).vTableGet(_bp, 5, const <idl.UnlinkedParam>[]); | 2585 _parameters ??= const fb.ListReader<idl.UnlinkedParam>(const _UnlinkedParamR
eader()).vTableGet(_bp, 6, const <idl.UnlinkedParam>[]); |
| 2503 return _parameters; | 2586 return _parameters; |
| 2504 } | 2587 } |
| 2505 | 2588 |
| 2506 @override | 2589 @override |
| 2507 idl.UnlinkedExecutableKind get kind { | 2590 idl.UnlinkedExecutableKind get kind { |
| 2508 _kind ??= const _UnlinkedExecutableKindReader().vTableGet(_bp, 6, idl.Unlink
edExecutableKind.functionOrMethod); | 2591 _kind ??= const _UnlinkedExecutableKindReader().vTableGet(_bp, 7, idl.Unlink
edExecutableKind.functionOrMethod); |
| 2509 return _kind; | 2592 return _kind; |
| 2510 } | 2593 } |
| 2511 | 2594 |
| 2512 @override | 2595 @override |
| 2513 bool get isAbstract { | 2596 bool get isAbstract { |
| 2514 _isAbstract ??= const fb.BoolReader().vTableGet(_bp, 7, false); | 2597 _isAbstract ??= const fb.BoolReader().vTableGet(_bp, 8, false); |
| 2515 return _isAbstract; | 2598 return _isAbstract; |
| 2516 } | 2599 } |
| 2517 | 2600 |
| 2518 @override | 2601 @override |
| 2519 bool get isStatic { | 2602 bool get isStatic { |
| 2520 _isStatic ??= const fb.BoolReader().vTableGet(_bp, 8, false); | 2603 _isStatic ??= const fb.BoolReader().vTableGet(_bp, 9, false); |
| 2521 return _isStatic; | 2604 return _isStatic; |
| 2522 } | 2605 } |
| 2523 | 2606 |
| 2524 @override | 2607 @override |
| 2525 bool get isConst { | 2608 bool get isConst { |
| 2526 _isConst ??= const fb.BoolReader().vTableGet(_bp, 9, false); | 2609 _isConst ??= const fb.BoolReader().vTableGet(_bp, 10, false); |
| 2527 return _isConst; | 2610 return _isConst; |
| 2528 } | 2611 } |
| 2529 | 2612 |
| 2530 @override | 2613 @override |
| 2531 bool get isFactory { | 2614 bool get isFactory { |
| 2532 _isFactory ??= const fb.BoolReader().vTableGet(_bp, 10, false); | 2615 _isFactory ??= const fb.BoolReader().vTableGet(_bp, 11, false); |
| 2533 return _isFactory; | 2616 return _isFactory; |
| 2534 } | 2617 } |
| 2535 | 2618 |
| 2536 @override | 2619 @override |
| 2537 bool get isExternal { | 2620 bool get isExternal { |
| 2538 _isExternal ??= const fb.BoolReader().vTableGet(_bp, 11, false); | 2621 _isExternal ??= const fb.BoolReader().vTableGet(_bp, 12, false); |
| 2539 return _isExternal; | 2622 return _isExternal; |
| 2540 } | 2623 } |
| 2541 | 2624 |
| 2542 @override | 2625 @override |
| 2543 int get inferredReturnTypeSlot { | 2626 int get inferredReturnTypeSlot { |
| 2544 _inferredReturnTypeSlot ??= const fb.Uint32Reader().vTableGet(_bp, 12, 0); | 2627 _inferredReturnTypeSlot ??= const fb.Uint32Reader().vTableGet(_bp, 13, 0); |
| 2545 return _inferredReturnTypeSlot; | 2628 return _inferredReturnTypeSlot; |
| 2546 } | 2629 } |
| 2547 } | 2630 } |
| 2548 | 2631 |
| 2549 abstract class _UnlinkedExecutableMixin implements idl.UnlinkedExecutable { | 2632 abstract class _UnlinkedExecutableMixin implements idl.UnlinkedExecutable { |
| 2550 @override | 2633 @override |
| 2551 Map<String, Object> toMap() => { | 2634 Map<String, Object> toMap() => { |
| 2552 "name": name, | 2635 "name": name, |
| 2553 "nameOffset": nameOffset, | 2636 "nameOffset": nameOffset, |
| 2554 "documentationComment": documentationComment, | 2637 "documentationComment": documentationComment, |
| 2638 "annotations": annotations, |
| 2555 "typeParameters": typeParameters, | 2639 "typeParameters": typeParameters, |
| 2556 "returnType": returnType, | 2640 "returnType": returnType, |
| 2557 "parameters": parameters, | 2641 "parameters": parameters, |
| 2558 "kind": kind, | 2642 "kind": kind, |
| 2559 "isAbstract": isAbstract, | 2643 "isAbstract": isAbstract, |
| 2560 "isStatic": isStatic, | 2644 "isStatic": isStatic, |
| 2561 "isConst": isConst, | 2645 "isConst": isConst, |
| 2562 "isFactory": isFactory, | 2646 "isFactory": isFactory, |
| 2563 "isExternal": isExternal, | 2647 "isExternal": isExternal, |
| 2564 "inferredReturnTypeSlot": inferredReturnTypeSlot, | 2648 "inferredReturnTypeSlot": inferredReturnTypeSlot, |
| 2565 }; | 2649 }; |
| 2566 } | 2650 } |
| 2567 | 2651 |
| 2568 class UnlinkedExportNonPublicBuilder extends Object with _UnlinkedExportNonPubli
cMixin implements idl.UnlinkedExportNonPublic { | 2652 class UnlinkedExportNonPublicBuilder extends Object with _UnlinkedExportNonPubli
cMixin implements idl.UnlinkedExportNonPublic { |
| 2569 bool _finished = false; | 2653 bool _finished = false; |
| 2570 | 2654 |
| 2571 int _offset; | 2655 int _offset; |
| 2572 int _uriOffset; | 2656 int _uriOffset; |
| 2573 int _uriEnd; | 2657 int _uriEnd; |
| 2658 List<UnlinkedConstBuilder> _annotations; |
| 2574 | 2659 |
| 2575 @override | 2660 @override |
| 2576 int get offset => _offset ??= 0; | 2661 int get offset => _offset ??= 0; |
| 2577 | 2662 |
| 2578 /** | 2663 /** |
| 2579 * Offset of the "export" keyword. | 2664 * Offset of the "export" keyword. |
| 2580 */ | 2665 */ |
| 2581 void set offset(int _value) { | 2666 void set offset(int _value) { |
| 2582 assert(!_finished); | 2667 assert(!_finished); |
| 2583 assert(_value == null || _value >= 0); | 2668 assert(_value == null || _value >= 0); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 2603 /** | 2688 /** |
| 2604 * End of the URI string (including quotes) relative to the beginning of the | 2689 * End of the URI string (including quotes) relative to the beginning of the |
| 2605 * file. | 2690 * file. |
| 2606 */ | 2691 */ |
| 2607 void set uriEnd(int _value) { | 2692 void set uriEnd(int _value) { |
| 2608 assert(!_finished); | 2693 assert(!_finished); |
| 2609 assert(_value == null || _value >= 0); | 2694 assert(_value == null || _value >= 0); |
| 2610 _uriEnd = _value; | 2695 _uriEnd = _value; |
| 2611 } | 2696 } |
| 2612 | 2697 |
| 2613 UnlinkedExportNonPublicBuilder({int offset, int uriOffset, int uriEnd}) | 2698 @override |
| 2699 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; |
| 2700 |
| 2701 /** |
| 2702 * Annotations for this export directive. |
| 2703 */ |
| 2704 void set annotations(List<UnlinkedConstBuilder> _value) { |
| 2705 assert(!_finished); |
| 2706 _annotations = _value; |
| 2707 } |
| 2708 |
| 2709 UnlinkedExportNonPublicBuilder({int offset, int uriOffset, int uriEnd, List<Un
linkedConstBuilder> annotations}) |
| 2614 : _offset = offset, | 2710 : _offset = offset, |
| 2615 _uriOffset = uriOffset, | 2711 _uriOffset = uriOffset, |
| 2616 _uriEnd = uriEnd; | 2712 _uriEnd = uriEnd, |
| 2713 _annotations = annotations; |
| 2617 | 2714 |
| 2618 fb.Offset finish(fb.Builder fbBuilder) { | 2715 fb.Offset finish(fb.Builder fbBuilder) { |
| 2619 assert(!_finished); | 2716 assert(!_finished); |
| 2620 _finished = true; | 2717 _finished = true; |
| 2718 fb.Offset offset_annotations; |
| 2719 if (!(_annotations == null || _annotations.isEmpty)) { |
| 2720 offset_annotations = fbBuilder.writeList(_annotations.map((b) => b.finish(
fbBuilder)).toList()); |
| 2721 } |
| 2621 fbBuilder.startTable(); | 2722 fbBuilder.startTable(); |
| 2622 if (_offset != null && _offset != 0) { | 2723 if (_offset != null && _offset != 0) { |
| 2623 fbBuilder.addUint32(0, _offset); | 2724 fbBuilder.addUint32(0, _offset); |
| 2624 } | 2725 } |
| 2625 if (_uriOffset != null && _uriOffset != 0) { | 2726 if (_uriOffset != null && _uriOffset != 0) { |
| 2626 fbBuilder.addUint32(1, _uriOffset); | 2727 fbBuilder.addUint32(1, _uriOffset); |
| 2627 } | 2728 } |
| 2628 if (_uriEnd != null && _uriEnd != 0) { | 2729 if (_uriEnd != null && _uriEnd != 0) { |
| 2629 fbBuilder.addUint32(2, _uriEnd); | 2730 fbBuilder.addUint32(2, _uriEnd); |
| 2630 } | 2731 } |
| 2732 if (offset_annotations != null) { |
| 2733 fbBuilder.addOffset(3, offset_annotations); |
| 2734 } |
| 2631 return fbBuilder.endTable(); | 2735 return fbBuilder.endTable(); |
| 2632 } | 2736 } |
| 2633 } | 2737 } |
| 2634 | 2738 |
| 2635 class _UnlinkedExportNonPublicReader extends fb.TableReader<_UnlinkedExportNonPu
blicImpl> { | 2739 class _UnlinkedExportNonPublicReader extends fb.TableReader<_UnlinkedExportNonPu
blicImpl> { |
| 2636 const _UnlinkedExportNonPublicReader(); | 2740 const _UnlinkedExportNonPublicReader(); |
| 2637 | 2741 |
| 2638 @override | 2742 @override |
| 2639 _UnlinkedExportNonPublicImpl createObject(fb.BufferPointer bp) => new _Unlinke
dExportNonPublicImpl(bp); | 2743 _UnlinkedExportNonPublicImpl createObject(fb.BufferPointer bp) => new _Unlinke
dExportNonPublicImpl(bp); |
| 2640 } | 2744 } |
| 2641 | 2745 |
| 2642 class _UnlinkedExportNonPublicImpl extends Object with _UnlinkedExportNonPublicM
ixin implements idl.UnlinkedExportNonPublic { | 2746 class _UnlinkedExportNonPublicImpl extends Object with _UnlinkedExportNonPublicM
ixin implements idl.UnlinkedExportNonPublic { |
| 2643 final fb.BufferPointer _bp; | 2747 final fb.BufferPointer _bp; |
| 2644 | 2748 |
| 2645 _UnlinkedExportNonPublicImpl(this._bp); | 2749 _UnlinkedExportNonPublicImpl(this._bp); |
| 2646 | 2750 |
| 2647 int _offset; | 2751 int _offset; |
| 2648 int _uriOffset; | 2752 int _uriOffset; |
| 2649 int _uriEnd; | 2753 int _uriEnd; |
| 2754 List<idl.UnlinkedConst> _annotations; |
| 2650 | 2755 |
| 2651 @override | 2756 @override |
| 2652 int get offset { | 2757 int get offset { |
| 2653 _offset ??= const fb.Uint32Reader().vTableGet(_bp, 0, 0); | 2758 _offset ??= const fb.Uint32Reader().vTableGet(_bp, 0, 0); |
| 2654 return _offset; | 2759 return _offset; |
| 2655 } | 2760 } |
| 2656 | 2761 |
| 2657 @override | 2762 @override |
| 2658 int get uriOffset { | 2763 int get uriOffset { |
| 2659 _uriOffset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0); | 2764 _uriOffset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0); |
| 2660 return _uriOffset; | 2765 return _uriOffset; |
| 2661 } | 2766 } |
| 2662 | 2767 |
| 2663 @override | 2768 @override |
| 2664 int get uriEnd { | 2769 int get uriEnd { |
| 2665 _uriEnd ??= const fb.Uint32Reader().vTableGet(_bp, 2, 0); | 2770 _uriEnd ??= const fb.Uint32Reader().vTableGet(_bp, 2, 0); |
| 2666 return _uriEnd; | 2771 return _uriEnd; |
| 2667 } | 2772 } |
| 2773 |
| 2774 @override |
| 2775 List<idl.UnlinkedConst> get annotations { |
| 2776 _annotations ??= const fb.ListReader<idl.UnlinkedConst>(const _UnlinkedConst
Reader()).vTableGet(_bp, 3, const <idl.UnlinkedConst>[]); |
| 2777 return _annotations; |
| 2778 } |
| 2668 } | 2779 } |
| 2669 | 2780 |
| 2670 abstract class _UnlinkedExportNonPublicMixin implements idl.UnlinkedExportNonPub
lic { | 2781 abstract class _UnlinkedExportNonPublicMixin implements idl.UnlinkedExportNonPub
lic { |
| 2671 @override | 2782 @override |
| 2672 Map<String, Object> toMap() => { | 2783 Map<String, Object> toMap() => { |
| 2673 "offset": offset, | 2784 "offset": offset, |
| 2674 "uriOffset": uriOffset, | 2785 "uriOffset": uriOffset, |
| 2675 "uriEnd": uriEnd, | 2786 "uriEnd": uriEnd, |
| 2787 "annotations": annotations, |
| 2676 }; | 2788 }; |
| 2677 } | 2789 } |
| 2678 | 2790 |
| 2679 class UnlinkedExportPublicBuilder extends Object with _UnlinkedExportPublicMixin
implements idl.UnlinkedExportPublic { | 2791 class UnlinkedExportPublicBuilder extends Object with _UnlinkedExportPublicMixin
implements idl.UnlinkedExportPublic { |
| 2680 bool _finished = false; | 2792 bool _finished = false; |
| 2681 | 2793 |
| 2682 String _uri; | 2794 String _uri; |
| 2683 List<UnlinkedCombinatorBuilder> _combinators; | 2795 List<UnlinkedCombinatorBuilder> _combinators; |
| 2684 | 2796 |
| 2685 @override | 2797 @override |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2764 "uri": uri, | 2876 "uri": uri, |
| 2765 "combinators": combinators, | 2877 "combinators": combinators, |
| 2766 }; | 2878 }; |
| 2767 } | 2879 } |
| 2768 | 2880 |
| 2769 class UnlinkedImportBuilder extends Object with _UnlinkedImportMixin implements
idl.UnlinkedImport { | 2881 class UnlinkedImportBuilder extends Object with _UnlinkedImportMixin implements
idl.UnlinkedImport { |
| 2770 bool _finished = false; | 2882 bool _finished = false; |
| 2771 | 2883 |
| 2772 String _uri; | 2884 String _uri; |
| 2773 int _offset; | 2885 int _offset; |
| 2886 List<UnlinkedConstBuilder> _annotations; |
| 2774 int _prefixReference; | 2887 int _prefixReference; |
| 2775 List<UnlinkedCombinatorBuilder> _combinators; | 2888 List<UnlinkedCombinatorBuilder> _combinators; |
| 2776 bool _isDeferred; | 2889 bool _isDeferred; |
| 2777 bool _isImplicit; | 2890 bool _isImplicit; |
| 2778 int _uriOffset; | 2891 int _uriOffset; |
| 2779 int _uriEnd; | 2892 int _uriEnd; |
| 2780 int _prefixOffset; | 2893 int _prefixOffset; |
| 2781 | 2894 |
| 2782 @override | 2895 @override |
| 2783 String get uri => _uri ??= ''; | 2896 String get uri => _uri ??= ''; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 2797 * If [isImplicit] is false, offset of the "import" keyword. If [isImplicit] | 2910 * If [isImplicit] is false, offset of the "import" keyword. If [isImplicit] |
| 2798 * is true, zero. | 2911 * is true, zero. |
| 2799 */ | 2912 */ |
| 2800 void set offset(int _value) { | 2913 void set offset(int _value) { |
| 2801 assert(!_finished); | 2914 assert(!_finished); |
| 2802 assert(_value == null || _value >= 0); | 2915 assert(_value == null || _value >= 0); |
| 2803 _offset = _value; | 2916 _offset = _value; |
| 2804 } | 2917 } |
| 2805 | 2918 |
| 2806 @override | 2919 @override |
| 2920 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; |
| 2921 |
| 2922 /** |
| 2923 * Annotations for this import declaration. |
| 2924 */ |
| 2925 void set annotations(List<UnlinkedConstBuilder> _value) { |
| 2926 assert(!_finished); |
| 2927 _annotations = _value; |
| 2928 } |
| 2929 |
| 2930 @override |
| 2807 int get prefixReference => _prefixReference ??= 0; | 2931 int get prefixReference => _prefixReference ??= 0; |
| 2808 | 2932 |
| 2809 /** | 2933 /** |
| 2810 * Index into [UnlinkedUnit.references] of the prefix declared by this | 2934 * Index into [UnlinkedUnit.references] of the prefix declared by this |
| 2811 * import declaration, or zero if this import declaration declares no prefix. | 2935 * import declaration, or zero if this import declaration declares no prefix. |
| 2812 * | 2936 * |
| 2813 * Note that multiple imports can declare the same prefix. | 2937 * Note that multiple imports can declare the same prefix. |
| 2814 */ | 2938 */ |
| 2815 void set prefixReference(int _value) { | 2939 void set prefixReference(int _value) { |
| 2816 assert(!_finished); | 2940 assert(!_finished); |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2883 /** | 3007 /** |
| 2884 * Offset of the prefix name relative to the beginning of the file, or zero | 3008 * Offset of the prefix name relative to the beginning of the file, or zero |
| 2885 * if there is no prefix. | 3009 * if there is no prefix. |
| 2886 */ | 3010 */ |
| 2887 void set prefixOffset(int _value) { | 3011 void set prefixOffset(int _value) { |
| 2888 assert(!_finished); | 3012 assert(!_finished); |
| 2889 assert(_value == null || _value >= 0); | 3013 assert(_value == null || _value >= 0); |
| 2890 _prefixOffset = _value; | 3014 _prefixOffset = _value; |
| 2891 } | 3015 } |
| 2892 | 3016 |
| 2893 UnlinkedImportBuilder({String uri, int offset, int prefixReference, List<Unlin
kedCombinatorBuilder> combinators, bool isDeferred, bool isImplicit, int uriOffs
et, int uriEnd, int prefixOffset}) | 3017 UnlinkedImportBuilder({String uri, int offset, List<UnlinkedConstBuilder> anno
tations, int prefixReference, List<UnlinkedCombinatorBuilder> combinators, bool
isDeferred, bool isImplicit, int uriOffset, int uriEnd, int prefixOffset}) |
| 2894 : _uri = uri, | 3018 : _uri = uri, |
| 2895 _offset = offset, | 3019 _offset = offset, |
| 3020 _annotations = annotations, |
| 2896 _prefixReference = prefixReference, | 3021 _prefixReference = prefixReference, |
| 2897 _combinators = combinators, | 3022 _combinators = combinators, |
| 2898 _isDeferred = isDeferred, | 3023 _isDeferred = isDeferred, |
| 2899 _isImplicit = isImplicit, | 3024 _isImplicit = isImplicit, |
| 2900 _uriOffset = uriOffset, | 3025 _uriOffset = uriOffset, |
| 2901 _uriEnd = uriEnd, | 3026 _uriEnd = uriEnd, |
| 2902 _prefixOffset = prefixOffset; | 3027 _prefixOffset = prefixOffset; |
| 2903 | 3028 |
| 2904 fb.Offset finish(fb.Builder fbBuilder) { | 3029 fb.Offset finish(fb.Builder fbBuilder) { |
| 2905 assert(!_finished); | 3030 assert(!_finished); |
| 2906 _finished = true; | 3031 _finished = true; |
| 2907 fb.Offset offset_uri; | 3032 fb.Offset offset_uri; |
| 3033 fb.Offset offset_annotations; |
| 2908 fb.Offset offset_combinators; | 3034 fb.Offset offset_combinators; |
| 2909 if (_uri != null) { | 3035 if (_uri != null) { |
| 2910 offset_uri = fbBuilder.writeString(_uri); | 3036 offset_uri = fbBuilder.writeString(_uri); |
| 2911 } | 3037 } |
| 3038 if (!(_annotations == null || _annotations.isEmpty)) { |
| 3039 offset_annotations = fbBuilder.writeList(_annotations.map((b) => b.finish(
fbBuilder)).toList()); |
| 3040 } |
| 2912 if (!(_combinators == null || _combinators.isEmpty)) { | 3041 if (!(_combinators == null || _combinators.isEmpty)) { |
| 2913 offset_combinators = fbBuilder.writeList(_combinators.map((b) => b.finish(
fbBuilder)).toList()); | 3042 offset_combinators = fbBuilder.writeList(_combinators.map((b) => b.finish(
fbBuilder)).toList()); |
| 2914 } | 3043 } |
| 2915 fbBuilder.startTable(); | 3044 fbBuilder.startTable(); |
| 2916 if (offset_uri != null) { | 3045 if (offset_uri != null) { |
| 2917 fbBuilder.addOffset(0, offset_uri); | 3046 fbBuilder.addOffset(0, offset_uri); |
| 2918 } | 3047 } |
| 2919 if (_offset != null && _offset != 0) { | 3048 if (_offset != null && _offset != 0) { |
| 2920 fbBuilder.addUint32(1, _offset); | 3049 fbBuilder.addUint32(1, _offset); |
| 2921 } | 3050 } |
| 3051 if (offset_annotations != null) { |
| 3052 fbBuilder.addOffset(2, offset_annotations); |
| 3053 } |
| 2922 if (_prefixReference != null && _prefixReference != 0) { | 3054 if (_prefixReference != null && _prefixReference != 0) { |
| 2923 fbBuilder.addUint32(2, _prefixReference); | 3055 fbBuilder.addUint32(3, _prefixReference); |
| 2924 } | 3056 } |
| 2925 if (offset_combinators != null) { | 3057 if (offset_combinators != null) { |
| 2926 fbBuilder.addOffset(3, offset_combinators); | 3058 fbBuilder.addOffset(4, offset_combinators); |
| 2927 } | 3059 } |
| 2928 if (_isDeferred == true) { | 3060 if (_isDeferred == true) { |
| 2929 fbBuilder.addBool(4, true); | 3061 fbBuilder.addBool(5, true); |
| 2930 } | 3062 } |
| 2931 if (_isImplicit == true) { | 3063 if (_isImplicit == true) { |
| 2932 fbBuilder.addBool(5, true); | 3064 fbBuilder.addBool(6, true); |
| 2933 } | 3065 } |
| 2934 if (_uriOffset != null && _uriOffset != 0) { | 3066 if (_uriOffset != null && _uriOffset != 0) { |
| 2935 fbBuilder.addUint32(6, _uriOffset); | 3067 fbBuilder.addUint32(7, _uriOffset); |
| 2936 } | 3068 } |
| 2937 if (_uriEnd != null && _uriEnd != 0) { | 3069 if (_uriEnd != null && _uriEnd != 0) { |
| 2938 fbBuilder.addUint32(7, _uriEnd); | 3070 fbBuilder.addUint32(8, _uriEnd); |
| 2939 } | 3071 } |
| 2940 if (_prefixOffset != null && _prefixOffset != 0) { | 3072 if (_prefixOffset != null && _prefixOffset != 0) { |
| 2941 fbBuilder.addUint32(8, _prefixOffset); | 3073 fbBuilder.addUint32(9, _prefixOffset); |
| 2942 } | 3074 } |
| 2943 return fbBuilder.endTable(); | 3075 return fbBuilder.endTable(); |
| 2944 } | 3076 } |
| 2945 } | 3077 } |
| 2946 | 3078 |
| 2947 class _UnlinkedImportReader extends fb.TableReader<_UnlinkedImportImpl> { | 3079 class _UnlinkedImportReader extends fb.TableReader<_UnlinkedImportImpl> { |
| 2948 const _UnlinkedImportReader(); | 3080 const _UnlinkedImportReader(); |
| 2949 | 3081 |
| 2950 @override | 3082 @override |
| 2951 _UnlinkedImportImpl createObject(fb.BufferPointer bp) => new _UnlinkedImportIm
pl(bp); | 3083 _UnlinkedImportImpl createObject(fb.BufferPointer bp) => new _UnlinkedImportIm
pl(bp); |
| 2952 } | 3084 } |
| 2953 | 3085 |
| 2954 class _UnlinkedImportImpl extends Object with _UnlinkedImportMixin implements id
l.UnlinkedImport { | 3086 class _UnlinkedImportImpl extends Object with _UnlinkedImportMixin implements id
l.UnlinkedImport { |
| 2955 final fb.BufferPointer _bp; | 3087 final fb.BufferPointer _bp; |
| 2956 | 3088 |
| 2957 _UnlinkedImportImpl(this._bp); | 3089 _UnlinkedImportImpl(this._bp); |
| 2958 | 3090 |
| 2959 String _uri; | 3091 String _uri; |
| 2960 int _offset; | 3092 int _offset; |
| 3093 List<idl.UnlinkedConst> _annotations; |
| 2961 int _prefixReference; | 3094 int _prefixReference; |
| 2962 List<idl.UnlinkedCombinator> _combinators; | 3095 List<idl.UnlinkedCombinator> _combinators; |
| 2963 bool _isDeferred; | 3096 bool _isDeferred; |
| 2964 bool _isImplicit; | 3097 bool _isImplicit; |
| 2965 int _uriOffset; | 3098 int _uriOffset; |
| 2966 int _uriEnd; | 3099 int _uriEnd; |
| 2967 int _prefixOffset; | 3100 int _prefixOffset; |
| 2968 | 3101 |
| 2969 @override | 3102 @override |
| 2970 String get uri { | 3103 String get uri { |
| 2971 _uri ??= const fb.StringReader().vTableGet(_bp, 0, ''); | 3104 _uri ??= const fb.StringReader().vTableGet(_bp, 0, ''); |
| 2972 return _uri; | 3105 return _uri; |
| 2973 } | 3106 } |
| 2974 | 3107 |
| 2975 @override | 3108 @override |
| 2976 int get offset { | 3109 int get offset { |
| 2977 _offset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0); | 3110 _offset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0); |
| 2978 return _offset; | 3111 return _offset; |
| 2979 } | 3112 } |
| 2980 | 3113 |
| 2981 @override | 3114 @override |
| 3115 List<idl.UnlinkedConst> get annotations { |
| 3116 _annotations ??= const fb.ListReader<idl.UnlinkedConst>(const _UnlinkedConst
Reader()).vTableGet(_bp, 2, const <idl.UnlinkedConst>[]); |
| 3117 return _annotations; |
| 3118 } |
| 3119 |
| 3120 @override |
| 2982 int get prefixReference { | 3121 int get prefixReference { |
| 2983 _prefixReference ??= const fb.Uint32Reader().vTableGet(_bp, 2, 0); | 3122 _prefixReference ??= const fb.Uint32Reader().vTableGet(_bp, 3, 0); |
| 2984 return _prefixReference; | 3123 return _prefixReference; |
| 2985 } | 3124 } |
| 2986 | 3125 |
| 2987 @override | 3126 @override |
| 2988 List<idl.UnlinkedCombinator> get combinators { | 3127 List<idl.UnlinkedCombinator> get combinators { |
| 2989 _combinators ??= const fb.ListReader<idl.UnlinkedCombinator>(const _Unlinked
CombinatorReader()).vTableGet(_bp, 3, const <idl.UnlinkedCombinator>[]); | 3128 _combinators ??= const fb.ListReader<idl.UnlinkedCombinator>(const _Unlinked
CombinatorReader()).vTableGet(_bp, 4, const <idl.UnlinkedCombinator>[]); |
| 2990 return _combinators; | 3129 return _combinators; |
| 2991 } | 3130 } |
| 2992 | 3131 |
| 2993 @override | 3132 @override |
| 2994 bool get isDeferred { | 3133 bool get isDeferred { |
| 2995 _isDeferred ??= const fb.BoolReader().vTableGet(_bp, 4, false); | 3134 _isDeferred ??= const fb.BoolReader().vTableGet(_bp, 5, false); |
| 2996 return _isDeferred; | 3135 return _isDeferred; |
| 2997 } | 3136 } |
| 2998 | 3137 |
| 2999 @override | 3138 @override |
| 3000 bool get isImplicit { | 3139 bool get isImplicit { |
| 3001 _isImplicit ??= const fb.BoolReader().vTableGet(_bp, 5, false); | 3140 _isImplicit ??= const fb.BoolReader().vTableGet(_bp, 6, false); |
| 3002 return _isImplicit; | 3141 return _isImplicit; |
| 3003 } | 3142 } |
| 3004 | 3143 |
| 3005 @override | 3144 @override |
| 3006 int get uriOffset { | 3145 int get uriOffset { |
| 3007 _uriOffset ??= const fb.Uint32Reader().vTableGet(_bp, 6, 0); | 3146 _uriOffset ??= const fb.Uint32Reader().vTableGet(_bp, 7, 0); |
| 3008 return _uriOffset; | 3147 return _uriOffset; |
| 3009 } | 3148 } |
| 3010 | 3149 |
| 3011 @override | 3150 @override |
| 3012 int get uriEnd { | 3151 int get uriEnd { |
| 3013 _uriEnd ??= const fb.Uint32Reader().vTableGet(_bp, 7, 0); | 3152 _uriEnd ??= const fb.Uint32Reader().vTableGet(_bp, 8, 0); |
| 3014 return _uriEnd; | 3153 return _uriEnd; |
| 3015 } | 3154 } |
| 3016 | 3155 |
| 3017 @override | 3156 @override |
| 3018 int get prefixOffset { | 3157 int get prefixOffset { |
| 3019 _prefixOffset ??= const fb.Uint32Reader().vTableGet(_bp, 8, 0); | 3158 _prefixOffset ??= const fb.Uint32Reader().vTableGet(_bp, 9, 0); |
| 3020 return _prefixOffset; | 3159 return _prefixOffset; |
| 3021 } | 3160 } |
| 3022 } | 3161 } |
| 3023 | 3162 |
| 3024 abstract class _UnlinkedImportMixin implements idl.UnlinkedImport { | 3163 abstract class _UnlinkedImportMixin implements idl.UnlinkedImport { |
| 3025 @override | 3164 @override |
| 3026 Map<String, Object> toMap() => { | 3165 Map<String, Object> toMap() => { |
| 3027 "uri": uri, | 3166 "uri": uri, |
| 3028 "offset": offset, | 3167 "offset": offset, |
| 3168 "annotations": annotations, |
| 3029 "prefixReference": prefixReference, | 3169 "prefixReference": prefixReference, |
| 3030 "combinators": combinators, | 3170 "combinators": combinators, |
| 3031 "isDeferred": isDeferred, | 3171 "isDeferred": isDeferred, |
| 3032 "isImplicit": isImplicit, | 3172 "isImplicit": isImplicit, |
| 3033 "uriOffset": uriOffset, | 3173 "uriOffset": uriOffset, |
| 3034 "uriEnd": uriEnd, | 3174 "uriEnd": uriEnd, |
| 3035 "prefixOffset": prefixOffset, | 3175 "prefixOffset": prefixOffset, |
| 3036 }; | 3176 }; |
| 3037 } | 3177 } |
| 3038 | 3178 |
| 3039 class UnlinkedParamBuilder extends Object with _UnlinkedParamMixin implements id
l.UnlinkedParam { | 3179 class UnlinkedParamBuilder extends Object with _UnlinkedParamMixin implements id
l.UnlinkedParam { |
| 3040 bool _finished = false; | 3180 bool _finished = false; |
| 3041 | 3181 |
| 3042 String _name; | 3182 String _name; |
| 3043 int _nameOffset; | 3183 int _nameOffset; |
| 3184 List<UnlinkedConstBuilder> _annotations; |
| 3044 EntityRefBuilder _type; | 3185 EntityRefBuilder _type; |
| 3045 List<UnlinkedParamBuilder> _parameters; | 3186 List<UnlinkedParamBuilder> _parameters; |
| 3046 idl.UnlinkedParamKind _kind; | 3187 idl.UnlinkedParamKind _kind; |
| 3047 bool _isFunctionTyped; | 3188 bool _isFunctionTyped; |
| 3048 bool _isInitializingFormal; | 3189 bool _isInitializingFormal; |
| 3049 int _inferredTypeSlot; | 3190 int _inferredTypeSlot; |
| 3050 UnlinkedConstBuilder _defaultValue; | 3191 UnlinkedConstBuilder _defaultValue; |
| 3051 | 3192 |
| 3052 @override | 3193 @override |
| 3053 String get name => _name ??= ''; | 3194 String get name => _name ??= ''; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 3066 /** | 3207 /** |
| 3067 * Offset of the parameter name relative to the beginning of the file. | 3208 * Offset of the parameter name relative to the beginning of the file. |
| 3068 */ | 3209 */ |
| 3069 void set nameOffset(int _value) { | 3210 void set nameOffset(int _value) { |
| 3070 assert(!_finished); | 3211 assert(!_finished); |
| 3071 assert(_value == null || _value >= 0); | 3212 assert(_value == null || _value >= 0); |
| 3072 _nameOffset = _value; | 3213 _nameOffset = _value; |
| 3073 } | 3214 } |
| 3074 | 3215 |
| 3075 @override | 3216 @override |
| 3217 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; |
| 3218 |
| 3219 /** |
| 3220 * Annotations for this parameter. |
| 3221 */ |
| 3222 void set annotations(List<UnlinkedConstBuilder> _value) { |
| 3223 assert(!_finished); |
| 3224 _annotations = _value; |
| 3225 } |
| 3226 |
| 3227 @override |
| 3076 EntityRefBuilder get type => _type; | 3228 EntityRefBuilder get type => _type; |
| 3077 | 3229 |
| 3078 /** | 3230 /** |
| 3079 * If [isFunctionTyped] is `true`, the declared return type. If | 3231 * If [isFunctionTyped] is `true`, the declared return type. If |
| 3080 * [isFunctionTyped] is `false`, the declared type. Absent if the type is | 3232 * [isFunctionTyped] is `false`, the declared type. Absent if the type is |
| 3081 * implicit. | 3233 * implicit. |
| 3082 */ | 3234 */ |
| 3083 void set type(EntityRefBuilder _value) { | 3235 void set type(EntityRefBuilder _value) { |
| 3084 assert(!_finished); | 3236 assert(!_finished); |
| 3085 _type = _value; | 3237 _type = _value; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3155 | 3307 |
| 3156 /** | 3308 /** |
| 3157 * If the parameter has a default value the constant expression in the | 3309 * If the parameter has a default value the constant expression in the |
| 3158 * default value. | 3310 * default value. |
| 3159 */ | 3311 */ |
| 3160 void set defaultValue(UnlinkedConstBuilder _value) { | 3312 void set defaultValue(UnlinkedConstBuilder _value) { |
| 3161 assert(!_finished); | 3313 assert(!_finished); |
| 3162 _defaultValue = _value; | 3314 _defaultValue = _value; |
| 3163 } | 3315 } |
| 3164 | 3316 |
| 3165 UnlinkedParamBuilder({String name, int nameOffset, EntityRefBuilder type, List
<UnlinkedParamBuilder> parameters, idl.UnlinkedParamKind kind, bool isFunctionTy
ped, bool isInitializingFormal, int inferredTypeSlot, UnlinkedConstBuilder defau
ltValue}) | 3317 UnlinkedParamBuilder({String name, int nameOffset, List<UnlinkedConstBuilder>
annotations, EntityRefBuilder type, List<UnlinkedParamBuilder> parameters, idl.U
nlinkedParamKind kind, bool isFunctionTyped, bool isInitializingFormal, int infe
rredTypeSlot, UnlinkedConstBuilder defaultValue}) |
| 3166 : _name = name, | 3318 : _name = name, |
| 3167 _nameOffset = nameOffset, | 3319 _nameOffset = nameOffset, |
| 3320 _annotations = annotations, |
| 3168 _type = type, | 3321 _type = type, |
| 3169 _parameters = parameters, | 3322 _parameters = parameters, |
| 3170 _kind = kind, | 3323 _kind = kind, |
| 3171 _isFunctionTyped = isFunctionTyped, | 3324 _isFunctionTyped = isFunctionTyped, |
| 3172 _isInitializingFormal = isInitializingFormal, | 3325 _isInitializingFormal = isInitializingFormal, |
| 3173 _inferredTypeSlot = inferredTypeSlot, | 3326 _inferredTypeSlot = inferredTypeSlot, |
| 3174 _defaultValue = defaultValue; | 3327 _defaultValue = defaultValue; |
| 3175 | 3328 |
| 3176 fb.Offset finish(fb.Builder fbBuilder) { | 3329 fb.Offset finish(fb.Builder fbBuilder) { |
| 3177 assert(!_finished); | 3330 assert(!_finished); |
| 3178 _finished = true; | 3331 _finished = true; |
| 3179 fb.Offset offset_name; | 3332 fb.Offset offset_name; |
| 3333 fb.Offset offset_annotations; |
| 3180 fb.Offset offset_type; | 3334 fb.Offset offset_type; |
| 3181 fb.Offset offset_parameters; | 3335 fb.Offset offset_parameters; |
| 3182 fb.Offset offset_defaultValue; | 3336 fb.Offset offset_defaultValue; |
| 3183 if (_name != null) { | 3337 if (_name != null) { |
| 3184 offset_name = fbBuilder.writeString(_name); | 3338 offset_name = fbBuilder.writeString(_name); |
| 3185 } | 3339 } |
| 3340 if (!(_annotations == null || _annotations.isEmpty)) { |
| 3341 offset_annotations = fbBuilder.writeList(_annotations.map((b) => b.finish(
fbBuilder)).toList()); |
| 3342 } |
| 3186 if (_type != null) { | 3343 if (_type != null) { |
| 3187 offset_type = _type.finish(fbBuilder); | 3344 offset_type = _type.finish(fbBuilder); |
| 3188 } | 3345 } |
| 3189 if (!(_parameters == null || _parameters.isEmpty)) { | 3346 if (!(_parameters == null || _parameters.isEmpty)) { |
| 3190 offset_parameters = fbBuilder.writeList(_parameters.map((b) => b.finish(fb
Builder)).toList()); | 3347 offset_parameters = fbBuilder.writeList(_parameters.map((b) => b.finish(fb
Builder)).toList()); |
| 3191 } | 3348 } |
| 3192 if (_defaultValue != null) { | 3349 if (_defaultValue != null) { |
| 3193 offset_defaultValue = _defaultValue.finish(fbBuilder); | 3350 offset_defaultValue = _defaultValue.finish(fbBuilder); |
| 3194 } | 3351 } |
| 3195 fbBuilder.startTable(); | 3352 fbBuilder.startTable(); |
| 3196 if (offset_name != null) { | 3353 if (offset_name != null) { |
| 3197 fbBuilder.addOffset(0, offset_name); | 3354 fbBuilder.addOffset(0, offset_name); |
| 3198 } | 3355 } |
| 3199 if (_nameOffset != null && _nameOffset != 0) { | 3356 if (_nameOffset != null && _nameOffset != 0) { |
| 3200 fbBuilder.addUint32(1, _nameOffset); | 3357 fbBuilder.addUint32(1, _nameOffset); |
| 3201 } | 3358 } |
| 3359 if (offset_annotations != null) { |
| 3360 fbBuilder.addOffset(2, offset_annotations); |
| 3361 } |
| 3202 if (offset_type != null) { | 3362 if (offset_type != null) { |
| 3203 fbBuilder.addOffset(2, offset_type); | 3363 fbBuilder.addOffset(3, offset_type); |
| 3204 } | 3364 } |
| 3205 if (offset_parameters != null) { | 3365 if (offset_parameters != null) { |
| 3206 fbBuilder.addOffset(3, offset_parameters); | 3366 fbBuilder.addOffset(4, offset_parameters); |
| 3207 } | 3367 } |
| 3208 if (_kind != null && _kind != idl.UnlinkedParamKind.required) { | 3368 if (_kind != null && _kind != idl.UnlinkedParamKind.required) { |
| 3209 fbBuilder.addUint32(4, _kind.index); | 3369 fbBuilder.addUint32(5, _kind.index); |
| 3210 } | 3370 } |
| 3211 if (_isFunctionTyped == true) { | 3371 if (_isFunctionTyped == true) { |
| 3212 fbBuilder.addBool(5, true); | 3372 fbBuilder.addBool(6, true); |
| 3213 } | 3373 } |
| 3214 if (_isInitializingFormal == true) { | 3374 if (_isInitializingFormal == true) { |
| 3215 fbBuilder.addBool(6, true); | 3375 fbBuilder.addBool(7, true); |
| 3216 } | 3376 } |
| 3217 if (_inferredTypeSlot != null && _inferredTypeSlot != 0) { | 3377 if (_inferredTypeSlot != null && _inferredTypeSlot != 0) { |
| 3218 fbBuilder.addUint32(7, _inferredTypeSlot); | 3378 fbBuilder.addUint32(8, _inferredTypeSlot); |
| 3219 } | 3379 } |
| 3220 if (offset_defaultValue != null) { | 3380 if (offset_defaultValue != null) { |
| 3221 fbBuilder.addOffset(8, offset_defaultValue); | 3381 fbBuilder.addOffset(9, offset_defaultValue); |
| 3222 } | 3382 } |
| 3223 return fbBuilder.endTable(); | 3383 return fbBuilder.endTable(); |
| 3224 } | 3384 } |
| 3225 } | 3385 } |
| 3226 | 3386 |
| 3227 class _UnlinkedParamReader extends fb.TableReader<_UnlinkedParamImpl> { | 3387 class _UnlinkedParamReader extends fb.TableReader<_UnlinkedParamImpl> { |
| 3228 const _UnlinkedParamReader(); | 3388 const _UnlinkedParamReader(); |
| 3229 | 3389 |
| 3230 @override | 3390 @override |
| 3231 _UnlinkedParamImpl createObject(fb.BufferPointer bp) => new _UnlinkedParamImpl
(bp); | 3391 _UnlinkedParamImpl createObject(fb.BufferPointer bp) => new _UnlinkedParamImpl
(bp); |
| 3232 } | 3392 } |
| 3233 | 3393 |
| 3234 class _UnlinkedParamImpl extends Object with _UnlinkedParamMixin implements idl.
UnlinkedParam { | 3394 class _UnlinkedParamImpl extends Object with _UnlinkedParamMixin implements idl.
UnlinkedParam { |
| 3235 final fb.BufferPointer _bp; | 3395 final fb.BufferPointer _bp; |
| 3236 | 3396 |
| 3237 _UnlinkedParamImpl(this._bp); | 3397 _UnlinkedParamImpl(this._bp); |
| 3238 | 3398 |
| 3239 String _name; | 3399 String _name; |
| 3240 int _nameOffset; | 3400 int _nameOffset; |
| 3401 List<idl.UnlinkedConst> _annotations; |
| 3241 idl.EntityRef _type; | 3402 idl.EntityRef _type; |
| 3242 List<idl.UnlinkedParam> _parameters; | 3403 List<idl.UnlinkedParam> _parameters; |
| 3243 idl.UnlinkedParamKind _kind; | 3404 idl.UnlinkedParamKind _kind; |
| 3244 bool _isFunctionTyped; | 3405 bool _isFunctionTyped; |
| 3245 bool _isInitializingFormal; | 3406 bool _isInitializingFormal; |
| 3246 int _inferredTypeSlot; | 3407 int _inferredTypeSlot; |
| 3247 idl.UnlinkedConst _defaultValue; | 3408 idl.UnlinkedConst _defaultValue; |
| 3248 | 3409 |
| 3249 @override | 3410 @override |
| 3250 String get name { | 3411 String get name { |
| 3251 _name ??= const fb.StringReader().vTableGet(_bp, 0, ''); | 3412 _name ??= const fb.StringReader().vTableGet(_bp, 0, ''); |
| 3252 return _name; | 3413 return _name; |
| 3253 } | 3414 } |
| 3254 | 3415 |
| 3255 @override | 3416 @override |
| 3256 int get nameOffset { | 3417 int get nameOffset { |
| 3257 _nameOffset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0); | 3418 _nameOffset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0); |
| 3258 return _nameOffset; | 3419 return _nameOffset; |
| 3259 } | 3420 } |
| 3260 | 3421 |
| 3261 @override | 3422 @override |
| 3423 List<idl.UnlinkedConst> get annotations { |
| 3424 _annotations ??= const fb.ListReader<idl.UnlinkedConst>(const _UnlinkedConst
Reader()).vTableGet(_bp, 2, const <idl.UnlinkedConst>[]); |
| 3425 return _annotations; |
| 3426 } |
| 3427 |
| 3428 @override |
| 3262 idl.EntityRef get type { | 3429 idl.EntityRef get type { |
| 3263 _type ??= const _EntityRefReader().vTableGet(_bp, 2, null); | 3430 _type ??= const _EntityRefReader().vTableGet(_bp, 3, null); |
| 3264 return _type; | 3431 return _type; |
| 3265 } | 3432 } |
| 3266 | 3433 |
| 3267 @override | 3434 @override |
| 3268 List<idl.UnlinkedParam> get parameters { | 3435 List<idl.UnlinkedParam> get parameters { |
| 3269 _parameters ??= const fb.ListReader<idl.UnlinkedParam>(const _UnlinkedParamR
eader()).vTableGet(_bp, 3, const <idl.UnlinkedParam>[]); | 3436 _parameters ??= const fb.ListReader<idl.UnlinkedParam>(const _UnlinkedParamR
eader()).vTableGet(_bp, 4, const <idl.UnlinkedParam>[]); |
| 3270 return _parameters; | 3437 return _parameters; |
| 3271 } | 3438 } |
| 3272 | 3439 |
| 3273 @override | 3440 @override |
| 3274 idl.UnlinkedParamKind get kind { | 3441 idl.UnlinkedParamKind get kind { |
| 3275 _kind ??= const _UnlinkedParamKindReader().vTableGet(_bp, 4, idl.UnlinkedPar
amKind.required); | 3442 _kind ??= const _UnlinkedParamKindReader().vTableGet(_bp, 5, idl.UnlinkedPar
amKind.required); |
| 3276 return _kind; | 3443 return _kind; |
| 3277 } | 3444 } |
| 3278 | 3445 |
| 3279 @override | 3446 @override |
| 3280 bool get isFunctionTyped { | 3447 bool get isFunctionTyped { |
| 3281 _isFunctionTyped ??= const fb.BoolReader().vTableGet(_bp, 5, false); | 3448 _isFunctionTyped ??= const fb.BoolReader().vTableGet(_bp, 6, false); |
| 3282 return _isFunctionTyped; | 3449 return _isFunctionTyped; |
| 3283 } | 3450 } |
| 3284 | 3451 |
| 3285 @override | 3452 @override |
| 3286 bool get isInitializingFormal { | 3453 bool get isInitializingFormal { |
| 3287 _isInitializingFormal ??= const fb.BoolReader().vTableGet(_bp, 6, false); | 3454 _isInitializingFormal ??= const fb.BoolReader().vTableGet(_bp, 7, false); |
| 3288 return _isInitializingFormal; | 3455 return _isInitializingFormal; |
| 3289 } | 3456 } |
| 3290 | 3457 |
| 3291 @override | 3458 @override |
| 3292 int get inferredTypeSlot { | 3459 int get inferredTypeSlot { |
| 3293 _inferredTypeSlot ??= const fb.Uint32Reader().vTableGet(_bp, 7, 0); | 3460 _inferredTypeSlot ??= const fb.Uint32Reader().vTableGet(_bp, 8, 0); |
| 3294 return _inferredTypeSlot; | 3461 return _inferredTypeSlot; |
| 3295 } | 3462 } |
| 3296 | 3463 |
| 3297 @override | 3464 @override |
| 3298 idl.UnlinkedConst get defaultValue { | 3465 idl.UnlinkedConst get defaultValue { |
| 3299 _defaultValue ??= const _UnlinkedConstReader().vTableGet(_bp, 8, null); | 3466 _defaultValue ??= const _UnlinkedConstReader().vTableGet(_bp, 9, null); |
| 3300 return _defaultValue; | 3467 return _defaultValue; |
| 3301 } | 3468 } |
| 3302 } | 3469 } |
| 3303 | 3470 |
| 3304 abstract class _UnlinkedParamMixin implements idl.UnlinkedParam { | 3471 abstract class _UnlinkedParamMixin implements idl.UnlinkedParam { |
| 3305 @override | 3472 @override |
| 3306 Map<String, Object> toMap() => { | 3473 Map<String, Object> toMap() => { |
| 3307 "name": name, | 3474 "name": name, |
| 3308 "nameOffset": nameOffset, | 3475 "nameOffset": nameOffset, |
| 3476 "annotations": annotations, |
| 3309 "type": type, | 3477 "type": type, |
| 3310 "parameters": parameters, | 3478 "parameters": parameters, |
| 3311 "kind": kind, | 3479 "kind": kind, |
| 3312 "isFunctionTyped": isFunctionTyped, | 3480 "isFunctionTyped": isFunctionTyped, |
| 3313 "isInitializingFormal": isInitializingFormal, | 3481 "isInitializingFormal": isInitializingFormal, |
| 3314 "inferredTypeSlot": inferredTypeSlot, | 3482 "inferredTypeSlot": inferredTypeSlot, |
| 3315 "defaultValue": defaultValue, | 3483 "defaultValue": defaultValue, |
| 3316 }; | 3484 }; |
| 3317 } | 3485 } |
| 3318 | 3486 |
| 3319 class UnlinkedPartBuilder extends Object with _UnlinkedPartMixin implements idl.
UnlinkedPart { | 3487 class UnlinkedPartBuilder extends Object with _UnlinkedPartMixin implements idl.
UnlinkedPart { |
| 3320 bool _finished = false; | 3488 bool _finished = false; |
| 3321 | 3489 |
| 3322 int _uriOffset; | 3490 int _uriOffset; |
| 3323 int _uriEnd; | 3491 int _uriEnd; |
| 3492 List<UnlinkedConstBuilder> _annotations; |
| 3324 | 3493 |
| 3325 @override | 3494 @override |
| 3326 int get uriOffset => _uriOffset ??= 0; | 3495 int get uriOffset => _uriOffset ??= 0; |
| 3327 | 3496 |
| 3328 /** | 3497 /** |
| 3329 * Offset of the URI string (including quotes) relative to the beginning of | 3498 * Offset of the URI string (including quotes) relative to the beginning of |
| 3330 * the file. | 3499 * the file. |
| 3331 */ | 3500 */ |
| 3332 void set uriOffset(int _value) { | 3501 void set uriOffset(int _value) { |
| 3333 assert(!_finished); | 3502 assert(!_finished); |
| 3334 assert(_value == null || _value >= 0); | 3503 assert(_value == null || _value >= 0); |
| 3335 _uriOffset = _value; | 3504 _uriOffset = _value; |
| 3336 } | 3505 } |
| 3337 | 3506 |
| 3338 @override | 3507 @override |
| 3339 int get uriEnd => _uriEnd ??= 0; | 3508 int get uriEnd => _uriEnd ??= 0; |
| 3340 | 3509 |
| 3341 /** | 3510 /** |
| 3342 * End of the URI string (including quotes) relative to the beginning of the | 3511 * End of the URI string (including quotes) relative to the beginning of the |
| 3343 * file. | 3512 * file. |
| 3344 */ | 3513 */ |
| 3345 void set uriEnd(int _value) { | 3514 void set uriEnd(int _value) { |
| 3346 assert(!_finished); | 3515 assert(!_finished); |
| 3347 assert(_value == null || _value >= 0); | 3516 assert(_value == null || _value >= 0); |
| 3348 _uriEnd = _value; | 3517 _uriEnd = _value; |
| 3349 } | 3518 } |
| 3350 | 3519 |
| 3351 UnlinkedPartBuilder({int uriOffset, int uriEnd}) | 3520 @override |
| 3521 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; |
| 3522 |
| 3523 /** |
| 3524 * Annotations for this part declaration. |
| 3525 */ |
| 3526 void set annotations(List<UnlinkedConstBuilder> _value) { |
| 3527 assert(!_finished); |
| 3528 _annotations = _value; |
| 3529 } |
| 3530 |
| 3531 UnlinkedPartBuilder({int uriOffset, int uriEnd, List<UnlinkedConstBuilder> ann
otations}) |
| 3352 : _uriOffset = uriOffset, | 3532 : _uriOffset = uriOffset, |
| 3353 _uriEnd = uriEnd; | 3533 _uriEnd = uriEnd, |
| 3534 _annotations = annotations; |
| 3354 | 3535 |
| 3355 fb.Offset finish(fb.Builder fbBuilder) { | 3536 fb.Offset finish(fb.Builder fbBuilder) { |
| 3356 assert(!_finished); | 3537 assert(!_finished); |
| 3357 _finished = true; | 3538 _finished = true; |
| 3539 fb.Offset offset_annotations; |
| 3540 if (!(_annotations == null || _annotations.isEmpty)) { |
| 3541 offset_annotations = fbBuilder.writeList(_annotations.map((b) => b.finish(
fbBuilder)).toList()); |
| 3542 } |
| 3358 fbBuilder.startTable(); | 3543 fbBuilder.startTable(); |
| 3359 if (_uriOffset != null && _uriOffset != 0) { | 3544 if (_uriOffset != null && _uriOffset != 0) { |
| 3360 fbBuilder.addUint32(0, _uriOffset); | 3545 fbBuilder.addUint32(0, _uriOffset); |
| 3361 } | 3546 } |
| 3362 if (_uriEnd != null && _uriEnd != 0) { | 3547 if (_uriEnd != null && _uriEnd != 0) { |
| 3363 fbBuilder.addUint32(1, _uriEnd); | 3548 fbBuilder.addUint32(1, _uriEnd); |
| 3364 } | 3549 } |
| 3550 if (offset_annotations != null) { |
| 3551 fbBuilder.addOffset(2, offset_annotations); |
| 3552 } |
| 3365 return fbBuilder.endTable(); | 3553 return fbBuilder.endTable(); |
| 3366 } | 3554 } |
| 3367 } | 3555 } |
| 3368 | 3556 |
| 3369 class _UnlinkedPartReader extends fb.TableReader<_UnlinkedPartImpl> { | 3557 class _UnlinkedPartReader extends fb.TableReader<_UnlinkedPartImpl> { |
| 3370 const _UnlinkedPartReader(); | 3558 const _UnlinkedPartReader(); |
| 3371 | 3559 |
| 3372 @override | 3560 @override |
| 3373 _UnlinkedPartImpl createObject(fb.BufferPointer bp) => new _UnlinkedPartImpl(b
p); | 3561 _UnlinkedPartImpl createObject(fb.BufferPointer bp) => new _UnlinkedPartImpl(b
p); |
| 3374 } | 3562 } |
| 3375 | 3563 |
| 3376 class _UnlinkedPartImpl extends Object with _UnlinkedPartMixin implements idl.Un
linkedPart { | 3564 class _UnlinkedPartImpl extends Object with _UnlinkedPartMixin implements idl.Un
linkedPart { |
| 3377 final fb.BufferPointer _bp; | 3565 final fb.BufferPointer _bp; |
| 3378 | 3566 |
| 3379 _UnlinkedPartImpl(this._bp); | 3567 _UnlinkedPartImpl(this._bp); |
| 3380 | 3568 |
| 3381 int _uriOffset; | 3569 int _uriOffset; |
| 3382 int _uriEnd; | 3570 int _uriEnd; |
| 3571 List<idl.UnlinkedConst> _annotations; |
| 3383 | 3572 |
| 3384 @override | 3573 @override |
| 3385 int get uriOffset { | 3574 int get uriOffset { |
| 3386 _uriOffset ??= const fb.Uint32Reader().vTableGet(_bp, 0, 0); | 3575 _uriOffset ??= const fb.Uint32Reader().vTableGet(_bp, 0, 0); |
| 3387 return _uriOffset; | 3576 return _uriOffset; |
| 3388 } | 3577 } |
| 3389 | 3578 |
| 3390 @override | 3579 @override |
| 3391 int get uriEnd { | 3580 int get uriEnd { |
| 3392 _uriEnd ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0); | 3581 _uriEnd ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0); |
| 3393 return _uriEnd; | 3582 return _uriEnd; |
| 3394 } | 3583 } |
| 3584 |
| 3585 @override |
| 3586 List<idl.UnlinkedConst> get annotations { |
| 3587 _annotations ??= const fb.ListReader<idl.UnlinkedConst>(const _UnlinkedConst
Reader()).vTableGet(_bp, 2, const <idl.UnlinkedConst>[]); |
| 3588 return _annotations; |
| 3589 } |
| 3395 } | 3590 } |
| 3396 | 3591 |
| 3397 abstract class _UnlinkedPartMixin implements idl.UnlinkedPart { | 3592 abstract class _UnlinkedPartMixin implements idl.UnlinkedPart { |
| 3398 @override | 3593 @override |
| 3399 Map<String, Object> toMap() => { | 3594 Map<String, Object> toMap() => { |
| 3400 "uriOffset": uriOffset, | 3595 "uriOffset": uriOffset, |
| 3401 "uriEnd": uriEnd, | 3596 "uriEnd": uriEnd, |
| 3597 "annotations": annotations, |
| 3402 }; | 3598 }; |
| 3403 } | 3599 } |
| 3404 | 3600 |
| 3405 class UnlinkedPublicNameBuilder extends Object with _UnlinkedPublicNameMixin imp
lements idl.UnlinkedPublicName { | 3601 class UnlinkedPublicNameBuilder extends Object with _UnlinkedPublicNameMixin imp
lements idl.UnlinkedPublicName { |
| 3406 bool _finished = false; | 3602 bool _finished = false; |
| 3407 | 3603 |
| 3408 String _name; | 3604 String _name; |
| 3409 idl.ReferenceKind _kind; | 3605 idl.ReferenceKind _kind; |
| 3410 int _numTypeParameters; | 3606 int _numTypeParameters; |
| 3411 List<UnlinkedPublicNameBuilder> _constMembers; | 3607 List<UnlinkedPublicNameBuilder> _constMembers; |
| (...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3767 "prefixReference": prefixReference, | 3963 "prefixReference": prefixReference, |
| 3768 }; | 3964 }; |
| 3769 } | 3965 } |
| 3770 | 3966 |
| 3771 class UnlinkedTypedefBuilder extends Object with _UnlinkedTypedefMixin implement
s idl.UnlinkedTypedef { | 3967 class UnlinkedTypedefBuilder extends Object with _UnlinkedTypedefMixin implement
s idl.UnlinkedTypedef { |
| 3772 bool _finished = false; | 3968 bool _finished = false; |
| 3773 | 3969 |
| 3774 String _name; | 3970 String _name; |
| 3775 int _nameOffset; | 3971 int _nameOffset; |
| 3776 UnlinkedDocumentationCommentBuilder _documentationComment; | 3972 UnlinkedDocumentationCommentBuilder _documentationComment; |
| 3973 List<UnlinkedConstBuilder> _annotations; |
| 3777 List<UnlinkedTypeParamBuilder> _typeParameters; | 3974 List<UnlinkedTypeParamBuilder> _typeParameters; |
| 3778 EntityRefBuilder _returnType; | 3975 EntityRefBuilder _returnType; |
| 3779 List<UnlinkedParamBuilder> _parameters; | 3976 List<UnlinkedParamBuilder> _parameters; |
| 3780 | 3977 |
| 3781 @override | 3978 @override |
| 3782 String get name => _name ??= ''; | 3979 String get name => _name ??= ''; |
| 3783 | 3980 |
| 3784 /** | 3981 /** |
| 3785 * Name of the typedef. | 3982 * Name of the typedef. |
| 3786 */ | 3983 */ |
| (...skipping 20 matching lines...) Expand all Loading... |
| 3807 /** | 4004 /** |
| 3808 * Documentation comment for the typedef, or `null` if there is no | 4005 * Documentation comment for the typedef, or `null` if there is no |
| 3809 * documentation comment. | 4006 * documentation comment. |
| 3810 */ | 4007 */ |
| 3811 void set documentationComment(UnlinkedDocumentationCommentBuilder _value) { | 4008 void set documentationComment(UnlinkedDocumentationCommentBuilder _value) { |
| 3812 assert(!_finished); | 4009 assert(!_finished); |
| 3813 _documentationComment = _value; | 4010 _documentationComment = _value; |
| 3814 } | 4011 } |
| 3815 | 4012 |
| 3816 @override | 4013 @override |
| 4014 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; |
| 4015 |
| 4016 /** |
| 4017 * Annotations for this typedef. |
| 4018 */ |
| 4019 void set annotations(List<UnlinkedConstBuilder> _value) { |
| 4020 assert(!_finished); |
| 4021 _annotations = _value; |
| 4022 } |
| 4023 |
| 4024 @override |
| 3817 List<UnlinkedTypeParamBuilder> get typeParameters => _typeParameters ??= <Unli
nkedTypeParamBuilder>[]; | 4025 List<UnlinkedTypeParamBuilder> get typeParameters => _typeParameters ??= <Unli
nkedTypeParamBuilder>[]; |
| 3818 | 4026 |
| 3819 /** | 4027 /** |
| 3820 * Type parameters of the typedef, if any. | 4028 * Type parameters of the typedef, if any. |
| 3821 */ | 4029 */ |
| 3822 void set typeParameters(List<UnlinkedTypeParamBuilder> _value) { | 4030 void set typeParameters(List<UnlinkedTypeParamBuilder> _value) { |
| 3823 assert(!_finished); | 4031 assert(!_finished); |
| 3824 _typeParameters = _value; | 4032 _typeParameters = _value; |
| 3825 } | 4033 } |
| 3826 | 4034 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 3839 List<UnlinkedParamBuilder> get parameters => _parameters ??= <UnlinkedParamBui
lder>[]; | 4047 List<UnlinkedParamBuilder> get parameters => _parameters ??= <UnlinkedParamBui
lder>[]; |
| 3840 | 4048 |
| 3841 /** | 4049 /** |
| 3842 * Parameters of the executable, if any. | 4050 * Parameters of the executable, if any. |
| 3843 */ | 4051 */ |
| 3844 void set parameters(List<UnlinkedParamBuilder> _value) { | 4052 void set parameters(List<UnlinkedParamBuilder> _value) { |
| 3845 assert(!_finished); | 4053 assert(!_finished); |
| 3846 _parameters = _value; | 4054 _parameters = _value; |
| 3847 } | 4055 } |
| 3848 | 4056 |
| 3849 UnlinkedTypedefBuilder({String name, int nameOffset, UnlinkedDocumentationComm
entBuilder documentationComment, List<UnlinkedTypeParamBuilder> typeParameters,
EntityRefBuilder returnType, List<UnlinkedParamBuilder> parameters}) | 4057 UnlinkedTypedefBuilder({String name, int nameOffset, UnlinkedDocumentationComm
entBuilder documentationComment, List<UnlinkedConstBuilder> annotations, List<Un
linkedTypeParamBuilder> typeParameters, EntityRefBuilder returnType, List<Unlink
edParamBuilder> parameters}) |
| 3850 : _name = name, | 4058 : _name = name, |
| 3851 _nameOffset = nameOffset, | 4059 _nameOffset = nameOffset, |
| 3852 _documentationComment = documentationComment, | 4060 _documentationComment = documentationComment, |
| 4061 _annotations = annotations, |
| 3853 _typeParameters = typeParameters, | 4062 _typeParameters = typeParameters, |
| 3854 _returnType = returnType, | 4063 _returnType = returnType, |
| 3855 _parameters = parameters; | 4064 _parameters = parameters; |
| 3856 | 4065 |
| 3857 fb.Offset finish(fb.Builder fbBuilder) { | 4066 fb.Offset finish(fb.Builder fbBuilder) { |
| 3858 assert(!_finished); | 4067 assert(!_finished); |
| 3859 _finished = true; | 4068 _finished = true; |
| 3860 fb.Offset offset_name; | 4069 fb.Offset offset_name; |
| 3861 fb.Offset offset_documentationComment; | 4070 fb.Offset offset_documentationComment; |
| 4071 fb.Offset offset_annotations; |
| 3862 fb.Offset offset_typeParameters; | 4072 fb.Offset offset_typeParameters; |
| 3863 fb.Offset offset_returnType; | 4073 fb.Offset offset_returnType; |
| 3864 fb.Offset offset_parameters; | 4074 fb.Offset offset_parameters; |
| 3865 if (_name != null) { | 4075 if (_name != null) { |
| 3866 offset_name = fbBuilder.writeString(_name); | 4076 offset_name = fbBuilder.writeString(_name); |
| 3867 } | 4077 } |
| 3868 if (_documentationComment != null) { | 4078 if (_documentationComment != null) { |
| 3869 offset_documentationComment = _documentationComment.finish(fbBuilder); | 4079 offset_documentationComment = _documentationComment.finish(fbBuilder); |
| 3870 } | 4080 } |
| 4081 if (!(_annotations == null || _annotations.isEmpty)) { |
| 4082 offset_annotations = fbBuilder.writeList(_annotations.map((b) => b.finish(
fbBuilder)).toList()); |
| 4083 } |
| 3871 if (!(_typeParameters == null || _typeParameters.isEmpty)) { | 4084 if (!(_typeParameters == null || _typeParameters.isEmpty)) { |
| 3872 offset_typeParameters = fbBuilder.writeList(_typeParameters.map((b) => b.f
inish(fbBuilder)).toList()); | 4085 offset_typeParameters = fbBuilder.writeList(_typeParameters.map((b) => b.f
inish(fbBuilder)).toList()); |
| 3873 } | 4086 } |
| 3874 if (_returnType != null) { | 4087 if (_returnType != null) { |
| 3875 offset_returnType = _returnType.finish(fbBuilder); | 4088 offset_returnType = _returnType.finish(fbBuilder); |
| 3876 } | 4089 } |
| 3877 if (!(_parameters == null || _parameters.isEmpty)) { | 4090 if (!(_parameters == null || _parameters.isEmpty)) { |
| 3878 offset_parameters = fbBuilder.writeList(_parameters.map((b) => b.finish(fb
Builder)).toList()); | 4091 offset_parameters = fbBuilder.writeList(_parameters.map((b) => b.finish(fb
Builder)).toList()); |
| 3879 } | 4092 } |
| 3880 fbBuilder.startTable(); | 4093 fbBuilder.startTable(); |
| 3881 if (offset_name != null) { | 4094 if (offset_name != null) { |
| 3882 fbBuilder.addOffset(0, offset_name); | 4095 fbBuilder.addOffset(0, offset_name); |
| 3883 } | 4096 } |
| 3884 if (_nameOffset != null && _nameOffset != 0) { | 4097 if (_nameOffset != null && _nameOffset != 0) { |
| 3885 fbBuilder.addUint32(1, _nameOffset); | 4098 fbBuilder.addUint32(1, _nameOffset); |
| 3886 } | 4099 } |
| 3887 if (offset_documentationComment != null) { | 4100 if (offset_documentationComment != null) { |
| 3888 fbBuilder.addOffset(2, offset_documentationComment); | 4101 fbBuilder.addOffset(2, offset_documentationComment); |
| 3889 } | 4102 } |
| 4103 if (offset_annotations != null) { |
| 4104 fbBuilder.addOffset(3, offset_annotations); |
| 4105 } |
| 3890 if (offset_typeParameters != null) { | 4106 if (offset_typeParameters != null) { |
| 3891 fbBuilder.addOffset(3, offset_typeParameters); | 4107 fbBuilder.addOffset(4, offset_typeParameters); |
| 3892 } | 4108 } |
| 3893 if (offset_returnType != null) { | 4109 if (offset_returnType != null) { |
| 3894 fbBuilder.addOffset(4, offset_returnType); | 4110 fbBuilder.addOffset(5, offset_returnType); |
| 3895 } | 4111 } |
| 3896 if (offset_parameters != null) { | 4112 if (offset_parameters != null) { |
| 3897 fbBuilder.addOffset(5, offset_parameters); | 4113 fbBuilder.addOffset(6, offset_parameters); |
| 3898 } | 4114 } |
| 3899 return fbBuilder.endTable(); | 4115 return fbBuilder.endTable(); |
| 3900 } | 4116 } |
| 3901 } | 4117 } |
| 3902 | 4118 |
| 3903 class _UnlinkedTypedefReader extends fb.TableReader<_UnlinkedTypedefImpl> { | 4119 class _UnlinkedTypedefReader extends fb.TableReader<_UnlinkedTypedefImpl> { |
| 3904 const _UnlinkedTypedefReader(); | 4120 const _UnlinkedTypedefReader(); |
| 3905 | 4121 |
| 3906 @override | 4122 @override |
| 3907 _UnlinkedTypedefImpl createObject(fb.BufferPointer bp) => new _UnlinkedTypedef
Impl(bp); | 4123 _UnlinkedTypedefImpl createObject(fb.BufferPointer bp) => new _UnlinkedTypedef
Impl(bp); |
| 3908 } | 4124 } |
| 3909 | 4125 |
| 3910 class _UnlinkedTypedefImpl extends Object with _UnlinkedTypedefMixin implements
idl.UnlinkedTypedef { | 4126 class _UnlinkedTypedefImpl extends Object with _UnlinkedTypedefMixin implements
idl.UnlinkedTypedef { |
| 3911 final fb.BufferPointer _bp; | 4127 final fb.BufferPointer _bp; |
| 3912 | 4128 |
| 3913 _UnlinkedTypedefImpl(this._bp); | 4129 _UnlinkedTypedefImpl(this._bp); |
| 3914 | 4130 |
| 3915 String _name; | 4131 String _name; |
| 3916 int _nameOffset; | 4132 int _nameOffset; |
| 3917 idl.UnlinkedDocumentationComment _documentationComment; | 4133 idl.UnlinkedDocumentationComment _documentationComment; |
| 4134 List<idl.UnlinkedConst> _annotations; |
| 3918 List<idl.UnlinkedTypeParam> _typeParameters; | 4135 List<idl.UnlinkedTypeParam> _typeParameters; |
| 3919 idl.EntityRef _returnType; | 4136 idl.EntityRef _returnType; |
| 3920 List<idl.UnlinkedParam> _parameters; | 4137 List<idl.UnlinkedParam> _parameters; |
| 3921 | 4138 |
| 3922 @override | 4139 @override |
| 3923 String get name { | 4140 String get name { |
| 3924 _name ??= const fb.StringReader().vTableGet(_bp, 0, ''); | 4141 _name ??= const fb.StringReader().vTableGet(_bp, 0, ''); |
| 3925 return _name; | 4142 return _name; |
| 3926 } | 4143 } |
| 3927 | 4144 |
| 3928 @override | 4145 @override |
| 3929 int get nameOffset { | 4146 int get nameOffset { |
| 3930 _nameOffset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0); | 4147 _nameOffset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0); |
| 3931 return _nameOffset; | 4148 return _nameOffset; |
| 3932 } | 4149 } |
| 3933 | 4150 |
| 3934 @override | 4151 @override |
| 3935 idl.UnlinkedDocumentationComment get documentationComment { | 4152 idl.UnlinkedDocumentationComment get documentationComment { |
| 3936 _documentationComment ??= const _UnlinkedDocumentationCommentReader().vTable
Get(_bp, 2, null); | 4153 _documentationComment ??= const _UnlinkedDocumentationCommentReader().vTable
Get(_bp, 2, null); |
| 3937 return _documentationComment; | 4154 return _documentationComment; |
| 3938 } | 4155 } |
| 3939 | 4156 |
| 3940 @override | 4157 @override |
| 4158 List<idl.UnlinkedConst> get annotations { |
| 4159 _annotations ??= const fb.ListReader<idl.UnlinkedConst>(const _UnlinkedConst
Reader()).vTableGet(_bp, 3, const <idl.UnlinkedConst>[]); |
| 4160 return _annotations; |
| 4161 } |
| 4162 |
| 4163 @override |
| 3941 List<idl.UnlinkedTypeParam> get typeParameters { | 4164 List<idl.UnlinkedTypeParam> get typeParameters { |
| 3942 _typeParameters ??= const fb.ListReader<idl.UnlinkedTypeParam>(const _Unlink
edTypeParamReader()).vTableGet(_bp, 3, const <idl.UnlinkedTypeParam>[]); | 4165 _typeParameters ??= const fb.ListReader<idl.UnlinkedTypeParam>(const _Unlink
edTypeParamReader()).vTableGet(_bp, 4, const <idl.UnlinkedTypeParam>[]); |
| 3943 return _typeParameters; | 4166 return _typeParameters; |
| 3944 } | 4167 } |
| 3945 | 4168 |
| 3946 @override | 4169 @override |
| 3947 idl.EntityRef get returnType { | 4170 idl.EntityRef get returnType { |
| 3948 _returnType ??= const _EntityRefReader().vTableGet(_bp, 4, null); | 4171 _returnType ??= const _EntityRefReader().vTableGet(_bp, 5, null); |
| 3949 return _returnType; | 4172 return _returnType; |
| 3950 } | 4173 } |
| 3951 | 4174 |
| 3952 @override | 4175 @override |
| 3953 List<idl.UnlinkedParam> get parameters { | 4176 List<idl.UnlinkedParam> get parameters { |
| 3954 _parameters ??= const fb.ListReader<idl.UnlinkedParam>(const _UnlinkedParamR
eader()).vTableGet(_bp, 5, const <idl.UnlinkedParam>[]); | 4177 _parameters ??= const fb.ListReader<idl.UnlinkedParam>(const _UnlinkedParamR
eader()).vTableGet(_bp, 6, const <idl.UnlinkedParam>[]); |
| 3955 return _parameters; | 4178 return _parameters; |
| 3956 } | 4179 } |
| 3957 } | 4180 } |
| 3958 | 4181 |
| 3959 abstract class _UnlinkedTypedefMixin implements idl.UnlinkedTypedef { | 4182 abstract class _UnlinkedTypedefMixin implements idl.UnlinkedTypedef { |
| 3960 @override | 4183 @override |
| 3961 Map<String, Object> toMap() => { | 4184 Map<String, Object> toMap() => { |
| 3962 "name": name, | 4185 "name": name, |
| 3963 "nameOffset": nameOffset, | 4186 "nameOffset": nameOffset, |
| 3964 "documentationComment": documentationComment, | 4187 "documentationComment": documentationComment, |
| 4188 "annotations": annotations, |
| 3965 "typeParameters": typeParameters, | 4189 "typeParameters": typeParameters, |
| 3966 "returnType": returnType, | 4190 "returnType": returnType, |
| 3967 "parameters": parameters, | 4191 "parameters": parameters, |
| 3968 }; | 4192 }; |
| 3969 } | 4193 } |
| 3970 | 4194 |
| 3971 class UnlinkedTypeParamBuilder extends Object with _UnlinkedTypeParamMixin imple
ments idl.UnlinkedTypeParam { | 4195 class UnlinkedTypeParamBuilder extends Object with _UnlinkedTypeParamMixin imple
ments idl.UnlinkedTypeParam { |
| 3972 bool _finished = false; | 4196 bool _finished = false; |
| 3973 | 4197 |
| 3974 String _name; | 4198 String _name; |
| 3975 int _nameOffset; | 4199 int _nameOffset; |
| 4200 List<UnlinkedConstBuilder> _annotations; |
| 3976 EntityRefBuilder _bound; | 4201 EntityRefBuilder _bound; |
| 3977 | 4202 |
| 3978 @override | 4203 @override |
| 3979 String get name => _name ??= ''; | 4204 String get name => _name ??= ''; |
| 3980 | 4205 |
| 3981 /** | 4206 /** |
| 3982 * Name of the type parameter. | 4207 * Name of the type parameter. |
| 3983 */ | 4208 */ |
| 3984 void set name(String _value) { | 4209 void set name(String _value) { |
| 3985 assert(!_finished); | 4210 assert(!_finished); |
| 3986 _name = _value; | 4211 _name = _value; |
| 3987 } | 4212 } |
| 3988 | 4213 |
| 3989 @override | 4214 @override |
| 3990 int get nameOffset => _nameOffset ??= 0; | 4215 int get nameOffset => _nameOffset ??= 0; |
| 3991 | 4216 |
| 3992 /** | 4217 /** |
| 3993 * Offset of the type parameter name relative to the beginning of the file. | 4218 * Offset of the type parameter name relative to the beginning of the file. |
| 3994 */ | 4219 */ |
| 3995 void set nameOffset(int _value) { | 4220 void set nameOffset(int _value) { |
| 3996 assert(!_finished); | 4221 assert(!_finished); |
| 3997 assert(_value == null || _value >= 0); | 4222 assert(_value == null || _value >= 0); |
| 3998 _nameOffset = _value; | 4223 _nameOffset = _value; |
| 3999 } | 4224 } |
| 4000 | 4225 |
| 4001 @override | 4226 @override |
| 4227 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; |
| 4228 |
| 4229 /** |
| 4230 * Annotations for this type parameter. |
| 4231 */ |
| 4232 void set annotations(List<UnlinkedConstBuilder> _value) { |
| 4233 assert(!_finished); |
| 4234 _annotations = _value; |
| 4235 } |
| 4236 |
| 4237 @override |
| 4002 EntityRefBuilder get bound => _bound; | 4238 EntityRefBuilder get bound => _bound; |
| 4003 | 4239 |
| 4004 /** | 4240 /** |
| 4005 * Bound of the type parameter, if a bound is explicitly declared. Otherwise | 4241 * Bound of the type parameter, if a bound is explicitly declared. Otherwise |
| 4006 * null. | 4242 * null. |
| 4007 */ | 4243 */ |
| 4008 void set bound(EntityRefBuilder _value) { | 4244 void set bound(EntityRefBuilder _value) { |
| 4009 assert(!_finished); | 4245 assert(!_finished); |
| 4010 _bound = _value; | 4246 _bound = _value; |
| 4011 } | 4247 } |
| 4012 | 4248 |
| 4013 UnlinkedTypeParamBuilder({String name, int nameOffset, EntityRefBuilder bound}
) | 4249 UnlinkedTypeParamBuilder({String name, int nameOffset, List<UnlinkedConstBuild
er> annotations, EntityRefBuilder bound}) |
| 4014 : _name = name, | 4250 : _name = name, |
| 4015 _nameOffset = nameOffset, | 4251 _nameOffset = nameOffset, |
| 4252 _annotations = annotations, |
| 4016 _bound = bound; | 4253 _bound = bound; |
| 4017 | 4254 |
| 4018 fb.Offset finish(fb.Builder fbBuilder) { | 4255 fb.Offset finish(fb.Builder fbBuilder) { |
| 4019 assert(!_finished); | 4256 assert(!_finished); |
| 4020 _finished = true; | 4257 _finished = true; |
| 4021 fb.Offset offset_name; | 4258 fb.Offset offset_name; |
| 4259 fb.Offset offset_annotations; |
| 4022 fb.Offset offset_bound; | 4260 fb.Offset offset_bound; |
| 4023 if (_name != null) { | 4261 if (_name != null) { |
| 4024 offset_name = fbBuilder.writeString(_name); | 4262 offset_name = fbBuilder.writeString(_name); |
| 4025 } | 4263 } |
| 4264 if (!(_annotations == null || _annotations.isEmpty)) { |
| 4265 offset_annotations = fbBuilder.writeList(_annotations.map((b) => b.finish(
fbBuilder)).toList()); |
| 4266 } |
| 4026 if (_bound != null) { | 4267 if (_bound != null) { |
| 4027 offset_bound = _bound.finish(fbBuilder); | 4268 offset_bound = _bound.finish(fbBuilder); |
| 4028 } | 4269 } |
| 4029 fbBuilder.startTable(); | 4270 fbBuilder.startTable(); |
| 4030 if (offset_name != null) { | 4271 if (offset_name != null) { |
| 4031 fbBuilder.addOffset(0, offset_name); | 4272 fbBuilder.addOffset(0, offset_name); |
| 4032 } | 4273 } |
| 4033 if (_nameOffset != null && _nameOffset != 0) { | 4274 if (_nameOffset != null && _nameOffset != 0) { |
| 4034 fbBuilder.addUint32(1, _nameOffset); | 4275 fbBuilder.addUint32(1, _nameOffset); |
| 4035 } | 4276 } |
| 4277 if (offset_annotations != null) { |
| 4278 fbBuilder.addOffset(2, offset_annotations); |
| 4279 } |
| 4036 if (offset_bound != null) { | 4280 if (offset_bound != null) { |
| 4037 fbBuilder.addOffset(2, offset_bound); | 4281 fbBuilder.addOffset(3, offset_bound); |
| 4038 } | 4282 } |
| 4039 return fbBuilder.endTable(); | 4283 return fbBuilder.endTable(); |
| 4040 } | 4284 } |
| 4041 } | 4285 } |
| 4042 | 4286 |
| 4043 class _UnlinkedTypeParamReader extends fb.TableReader<_UnlinkedTypeParamImpl> { | 4287 class _UnlinkedTypeParamReader extends fb.TableReader<_UnlinkedTypeParamImpl> { |
| 4044 const _UnlinkedTypeParamReader(); | 4288 const _UnlinkedTypeParamReader(); |
| 4045 | 4289 |
| 4046 @override | 4290 @override |
| 4047 _UnlinkedTypeParamImpl createObject(fb.BufferPointer bp) => new _UnlinkedTypeP
aramImpl(bp); | 4291 _UnlinkedTypeParamImpl createObject(fb.BufferPointer bp) => new _UnlinkedTypeP
aramImpl(bp); |
| 4048 } | 4292 } |
| 4049 | 4293 |
| 4050 class _UnlinkedTypeParamImpl extends Object with _UnlinkedTypeParamMixin impleme
nts idl.UnlinkedTypeParam { | 4294 class _UnlinkedTypeParamImpl extends Object with _UnlinkedTypeParamMixin impleme
nts idl.UnlinkedTypeParam { |
| 4051 final fb.BufferPointer _bp; | 4295 final fb.BufferPointer _bp; |
| 4052 | 4296 |
| 4053 _UnlinkedTypeParamImpl(this._bp); | 4297 _UnlinkedTypeParamImpl(this._bp); |
| 4054 | 4298 |
| 4055 String _name; | 4299 String _name; |
| 4056 int _nameOffset; | 4300 int _nameOffset; |
| 4301 List<idl.UnlinkedConst> _annotations; |
| 4057 idl.EntityRef _bound; | 4302 idl.EntityRef _bound; |
| 4058 | 4303 |
| 4059 @override | 4304 @override |
| 4060 String get name { | 4305 String get name { |
| 4061 _name ??= const fb.StringReader().vTableGet(_bp, 0, ''); | 4306 _name ??= const fb.StringReader().vTableGet(_bp, 0, ''); |
| 4062 return _name; | 4307 return _name; |
| 4063 } | 4308 } |
| 4064 | 4309 |
| 4065 @override | 4310 @override |
| 4066 int get nameOffset { | 4311 int get nameOffset { |
| 4067 _nameOffset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0); | 4312 _nameOffset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0); |
| 4068 return _nameOffset; | 4313 return _nameOffset; |
| 4069 } | 4314 } |
| 4070 | 4315 |
| 4071 @override | 4316 @override |
| 4317 List<idl.UnlinkedConst> get annotations { |
| 4318 _annotations ??= const fb.ListReader<idl.UnlinkedConst>(const _UnlinkedConst
Reader()).vTableGet(_bp, 2, const <idl.UnlinkedConst>[]); |
| 4319 return _annotations; |
| 4320 } |
| 4321 |
| 4322 @override |
| 4072 idl.EntityRef get bound { | 4323 idl.EntityRef get bound { |
| 4073 _bound ??= const _EntityRefReader().vTableGet(_bp, 2, null); | 4324 _bound ??= const _EntityRefReader().vTableGet(_bp, 3, null); |
| 4074 return _bound; | 4325 return _bound; |
| 4075 } | 4326 } |
| 4076 } | 4327 } |
| 4077 | 4328 |
| 4078 abstract class _UnlinkedTypeParamMixin implements idl.UnlinkedTypeParam { | 4329 abstract class _UnlinkedTypeParamMixin implements idl.UnlinkedTypeParam { |
| 4079 @override | 4330 @override |
| 4080 Map<String, Object> toMap() => { | 4331 Map<String, Object> toMap() => { |
| 4081 "name": name, | 4332 "name": name, |
| 4082 "nameOffset": nameOffset, | 4333 "nameOffset": nameOffset, |
| 4334 "annotations": annotations, |
| 4083 "bound": bound, | 4335 "bound": bound, |
| 4084 }; | 4336 }; |
| 4085 } | 4337 } |
| 4086 | 4338 |
| 4087 class UnlinkedUnitBuilder extends Object with _UnlinkedUnitMixin implements idl.
UnlinkedUnit { | 4339 class UnlinkedUnitBuilder extends Object with _UnlinkedUnitMixin implements idl.
UnlinkedUnit { |
| 4088 bool _finished = false; | 4340 bool _finished = false; |
| 4089 | 4341 |
| 4090 String _libraryName; | 4342 String _libraryName; |
| 4091 int _libraryNameOffset; | 4343 int _libraryNameOffset; |
| 4092 int _libraryNameLength; | 4344 int _libraryNameLength; |
| 4093 UnlinkedDocumentationCommentBuilder _libraryDocumentationComment; | 4345 UnlinkedDocumentationCommentBuilder _libraryDocumentationComment; |
| 4346 List<UnlinkedConstBuilder> _libraryAnnotations; |
| 4094 UnlinkedPublicNamespaceBuilder _publicNamespace; | 4347 UnlinkedPublicNamespaceBuilder _publicNamespace; |
| 4095 List<UnlinkedReferenceBuilder> _references; | 4348 List<UnlinkedReferenceBuilder> _references; |
| 4096 List<UnlinkedClassBuilder> _classes; | 4349 List<UnlinkedClassBuilder> _classes; |
| 4097 List<UnlinkedEnumBuilder> _enums; | 4350 List<UnlinkedEnumBuilder> _enums; |
| 4098 List<UnlinkedExecutableBuilder> _executables; | 4351 List<UnlinkedExecutableBuilder> _executables; |
| 4099 List<UnlinkedExportNonPublicBuilder> _exports; | 4352 List<UnlinkedExportNonPublicBuilder> _exports; |
| 4100 List<UnlinkedImportBuilder> _imports; | 4353 List<UnlinkedImportBuilder> _imports; |
| 4101 List<UnlinkedPartBuilder> _parts; | 4354 List<UnlinkedPartBuilder> _parts; |
| 4102 List<UnlinkedTypedefBuilder> _typedefs; | 4355 List<UnlinkedTypedefBuilder> _typedefs; |
| 4103 List<UnlinkedVariableBuilder> _variables; | 4356 List<UnlinkedVariableBuilder> _variables; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4145 /** | 4398 /** |
| 4146 * Documentation comment for the library, or `null` if there is no | 4399 * Documentation comment for the library, or `null` if there is no |
| 4147 * documentation comment. | 4400 * documentation comment. |
| 4148 */ | 4401 */ |
| 4149 void set libraryDocumentationComment(UnlinkedDocumentationCommentBuilder _valu
e) { | 4402 void set libraryDocumentationComment(UnlinkedDocumentationCommentBuilder _valu
e) { |
| 4150 assert(!_finished); | 4403 assert(!_finished); |
| 4151 _libraryDocumentationComment = _value; | 4404 _libraryDocumentationComment = _value; |
| 4152 } | 4405 } |
| 4153 | 4406 |
| 4154 @override | 4407 @override |
| 4408 List<UnlinkedConstBuilder> get libraryAnnotations => _libraryAnnotations ??= <
UnlinkedConstBuilder>[]; |
| 4409 |
| 4410 /** |
| 4411 * Annotations for the library declaration, or the empty list if there is no |
| 4412 * library declaration. |
| 4413 */ |
| 4414 void set libraryAnnotations(List<UnlinkedConstBuilder> _value) { |
| 4415 assert(!_finished); |
| 4416 _libraryAnnotations = _value; |
| 4417 } |
| 4418 |
| 4419 @override |
| 4155 UnlinkedPublicNamespaceBuilder get publicNamespace => _publicNamespace; | 4420 UnlinkedPublicNamespaceBuilder get publicNamespace => _publicNamespace; |
| 4156 | 4421 |
| 4157 /** | 4422 /** |
| 4158 * Unlinked public namespace of this compilation unit. | 4423 * Unlinked public namespace of this compilation unit. |
| 4159 */ | 4424 */ |
| 4160 void set publicNamespace(UnlinkedPublicNamespaceBuilder _value) { | 4425 void set publicNamespace(UnlinkedPublicNamespaceBuilder _value) { |
| 4161 assert(!_finished); | 4426 assert(!_finished); |
| 4162 _publicNamespace = _value; | 4427 _publicNamespace = _value; |
| 4163 } | 4428 } |
| 4164 | 4429 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4259 List<UnlinkedVariableBuilder> get variables => _variables ??= <UnlinkedVariabl
eBuilder>[]; | 4524 List<UnlinkedVariableBuilder> get variables => _variables ??= <UnlinkedVariabl
eBuilder>[]; |
| 4260 | 4525 |
| 4261 /** | 4526 /** |
| 4262 * Top level variables declared in the compilation unit. | 4527 * Top level variables declared in the compilation unit. |
| 4263 */ | 4528 */ |
| 4264 void set variables(List<UnlinkedVariableBuilder> _value) { | 4529 void set variables(List<UnlinkedVariableBuilder> _value) { |
| 4265 assert(!_finished); | 4530 assert(!_finished); |
| 4266 _variables = _value; | 4531 _variables = _value; |
| 4267 } | 4532 } |
| 4268 | 4533 |
| 4269 UnlinkedUnitBuilder({String libraryName, int libraryNameOffset, int libraryNam
eLength, UnlinkedDocumentationCommentBuilder libraryDocumentationComment, Unlink
edPublicNamespaceBuilder publicNamespace, List<UnlinkedReferenceBuilder> referen
ces, List<UnlinkedClassBuilder> classes, List<UnlinkedEnumBuilder> enums, List<U
nlinkedExecutableBuilder> executables, List<UnlinkedExportNonPublicBuilder> expo
rts, List<UnlinkedImportBuilder> imports, List<UnlinkedPartBuilder> parts, List<
UnlinkedTypedefBuilder> typedefs, List<UnlinkedVariableBuilder> variables}) | 4534 UnlinkedUnitBuilder({String libraryName, int libraryNameOffset, int libraryNam
eLength, UnlinkedDocumentationCommentBuilder libraryDocumentationComment, List<U
nlinkedConstBuilder> libraryAnnotations, UnlinkedPublicNamespaceBuilder publicNa
mespace, List<UnlinkedReferenceBuilder> references, List<UnlinkedClassBuilder> c
lasses, List<UnlinkedEnumBuilder> enums, List<UnlinkedExecutableBuilder> executa
bles, List<UnlinkedExportNonPublicBuilder> exports, List<UnlinkedImportBuilder>
imports, List<UnlinkedPartBuilder> parts, List<UnlinkedTypedefBuilder> typedefs,
List<UnlinkedVariableBuilder> variables}) |
| 4270 : _libraryName = libraryName, | 4535 : _libraryName = libraryName, |
| 4271 _libraryNameOffset = libraryNameOffset, | 4536 _libraryNameOffset = libraryNameOffset, |
| 4272 _libraryNameLength = libraryNameLength, | 4537 _libraryNameLength = libraryNameLength, |
| 4273 _libraryDocumentationComment = libraryDocumentationComment, | 4538 _libraryDocumentationComment = libraryDocumentationComment, |
| 4539 _libraryAnnotations = libraryAnnotations, |
| 4274 _publicNamespace = publicNamespace, | 4540 _publicNamespace = publicNamespace, |
| 4275 _references = references, | 4541 _references = references, |
| 4276 _classes = classes, | 4542 _classes = classes, |
| 4277 _enums = enums, | 4543 _enums = enums, |
| 4278 _executables = executables, | 4544 _executables = executables, |
| 4279 _exports = exports, | 4545 _exports = exports, |
| 4280 _imports = imports, | 4546 _imports = imports, |
| 4281 _parts = parts, | 4547 _parts = parts, |
| 4282 _typedefs = typedefs, | 4548 _typedefs = typedefs, |
| 4283 _variables = variables; | 4549 _variables = variables; |
| 4284 | 4550 |
| 4285 List<int> toBuffer() { | 4551 List<int> toBuffer() { |
| 4286 fb.Builder fbBuilder = new fb.Builder(); | 4552 fb.Builder fbBuilder = new fb.Builder(); |
| 4287 return fbBuilder.finish(finish(fbBuilder)); | 4553 return fbBuilder.finish(finish(fbBuilder)); |
| 4288 } | 4554 } |
| 4289 | 4555 |
| 4290 fb.Offset finish(fb.Builder fbBuilder) { | 4556 fb.Offset finish(fb.Builder fbBuilder) { |
| 4291 assert(!_finished); | 4557 assert(!_finished); |
| 4292 _finished = true; | 4558 _finished = true; |
| 4293 fb.Offset offset_libraryName; | 4559 fb.Offset offset_libraryName; |
| 4294 fb.Offset offset_libraryDocumentationComment; | 4560 fb.Offset offset_libraryDocumentationComment; |
| 4561 fb.Offset offset_libraryAnnotations; |
| 4295 fb.Offset offset_publicNamespace; | 4562 fb.Offset offset_publicNamespace; |
| 4296 fb.Offset offset_references; | 4563 fb.Offset offset_references; |
| 4297 fb.Offset offset_classes; | 4564 fb.Offset offset_classes; |
| 4298 fb.Offset offset_enums; | 4565 fb.Offset offset_enums; |
| 4299 fb.Offset offset_executables; | 4566 fb.Offset offset_executables; |
| 4300 fb.Offset offset_exports; | 4567 fb.Offset offset_exports; |
| 4301 fb.Offset offset_imports; | 4568 fb.Offset offset_imports; |
| 4302 fb.Offset offset_parts; | 4569 fb.Offset offset_parts; |
| 4303 fb.Offset offset_typedefs; | 4570 fb.Offset offset_typedefs; |
| 4304 fb.Offset offset_variables; | 4571 fb.Offset offset_variables; |
| 4305 if (_libraryName != null) { | 4572 if (_libraryName != null) { |
| 4306 offset_libraryName = fbBuilder.writeString(_libraryName); | 4573 offset_libraryName = fbBuilder.writeString(_libraryName); |
| 4307 } | 4574 } |
| 4308 if (_libraryDocumentationComment != null) { | 4575 if (_libraryDocumentationComment != null) { |
| 4309 offset_libraryDocumentationComment = _libraryDocumentationComment.finish(f
bBuilder); | 4576 offset_libraryDocumentationComment = _libraryDocumentationComment.finish(f
bBuilder); |
| 4310 } | 4577 } |
| 4578 if (!(_libraryAnnotations == null || _libraryAnnotations.isEmpty)) { |
| 4579 offset_libraryAnnotations = fbBuilder.writeList(_libraryAnnotations.map((b
) => b.finish(fbBuilder)).toList()); |
| 4580 } |
| 4311 if (_publicNamespace != null) { | 4581 if (_publicNamespace != null) { |
| 4312 offset_publicNamespace = _publicNamespace.finish(fbBuilder); | 4582 offset_publicNamespace = _publicNamespace.finish(fbBuilder); |
| 4313 } | 4583 } |
| 4314 if (!(_references == null || _references.isEmpty)) { | 4584 if (!(_references == null || _references.isEmpty)) { |
| 4315 offset_references = fbBuilder.writeList(_references.map((b) => b.finish(fb
Builder)).toList()); | 4585 offset_references = fbBuilder.writeList(_references.map((b) => b.finish(fb
Builder)).toList()); |
| 4316 } | 4586 } |
| 4317 if (!(_classes == null || _classes.isEmpty)) { | 4587 if (!(_classes == null || _classes.isEmpty)) { |
| 4318 offset_classes = fbBuilder.writeList(_classes.map((b) => b.finish(fbBuilde
r)).toList()); | 4588 offset_classes = fbBuilder.writeList(_classes.map((b) => b.finish(fbBuilde
r)).toList()); |
| 4319 } | 4589 } |
| 4320 if (!(_enums == null || _enums.isEmpty)) { | 4590 if (!(_enums == null || _enums.isEmpty)) { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 4344 } | 4614 } |
| 4345 if (_libraryNameOffset != null && _libraryNameOffset != 0) { | 4615 if (_libraryNameOffset != null && _libraryNameOffset != 0) { |
| 4346 fbBuilder.addUint32(1, _libraryNameOffset); | 4616 fbBuilder.addUint32(1, _libraryNameOffset); |
| 4347 } | 4617 } |
| 4348 if (_libraryNameLength != null && _libraryNameLength != 0) { | 4618 if (_libraryNameLength != null && _libraryNameLength != 0) { |
| 4349 fbBuilder.addUint32(2, _libraryNameLength); | 4619 fbBuilder.addUint32(2, _libraryNameLength); |
| 4350 } | 4620 } |
| 4351 if (offset_libraryDocumentationComment != null) { | 4621 if (offset_libraryDocumentationComment != null) { |
| 4352 fbBuilder.addOffset(3, offset_libraryDocumentationComment); | 4622 fbBuilder.addOffset(3, offset_libraryDocumentationComment); |
| 4353 } | 4623 } |
| 4624 if (offset_libraryAnnotations != null) { |
| 4625 fbBuilder.addOffset(4, offset_libraryAnnotations); |
| 4626 } |
| 4354 if (offset_publicNamespace != null) { | 4627 if (offset_publicNamespace != null) { |
| 4355 fbBuilder.addOffset(4, offset_publicNamespace); | 4628 fbBuilder.addOffset(5, offset_publicNamespace); |
| 4356 } | 4629 } |
| 4357 if (offset_references != null) { | 4630 if (offset_references != null) { |
| 4358 fbBuilder.addOffset(5, offset_references); | 4631 fbBuilder.addOffset(6, offset_references); |
| 4359 } | 4632 } |
| 4360 if (offset_classes != null) { | 4633 if (offset_classes != null) { |
| 4361 fbBuilder.addOffset(6, offset_classes); | 4634 fbBuilder.addOffset(7, offset_classes); |
| 4362 } | 4635 } |
| 4363 if (offset_enums != null) { | 4636 if (offset_enums != null) { |
| 4364 fbBuilder.addOffset(7, offset_enums); | 4637 fbBuilder.addOffset(8, offset_enums); |
| 4365 } | 4638 } |
| 4366 if (offset_executables != null) { | 4639 if (offset_executables != null) { |
| 4367 fbBuilder.addOffset(8, offset_executables); | 4640 fbBuilder.addOffset(9, offset_executables); |
| 4368 } | 4641 } |
| 4369 if (offset_exports != null) { | 4642 if (offset_exports != null) { |
| 4370 fbBuilder.addOffset(9, offset_exports); | 4643 fbBuilder.addOffset(10, offset_exports); |
| 4371 } | 4644 } |
| 4372 if (offset_imports != null) { | 4645 if (offset_imports != null) { |
| 4373 fbBuilder.addOffset(10, offset_imports); | 4646 fbBuilder.addOffset(11, offset_imports); |
| 4374 } | 4647 } |
| 4375 if (offset_parts != null) { | 4648 if (offset_parts != null) { |
| 4376 fbBuilder.addOffset(11, offset_parts); | 4649 fbBuilder.addOffset(12, offset_parts); |
| 4377 } | 4650 } |
| 4378 if (offset_typedefs != null) { | 4651 if (offset_typedefs != null) { |
| 4379 fbBuilder.addOffset(12, offset_typedefs); | 4652 fbBuilder.addOffset(13, offset_typedefs); |
| 4380 } | 4653 } |
| 4381 if (offset_variables != null) { | 4654 if (offset_variables != null) { |
| 4382 fbBuilder.addOffset(13, offset_variables); | 4655 fbBuilder.addOffset(14, offset_variables); |
| 4383 } | 4656 } |
| 4384 return fbBuilder.endTable(); | 4657 return fbBuilder.endTable(); |
| 4385 } | 4658 } |
| 4386 } | 4659 } |
| 4387 | 4660 |
| 4388 idl.UnlinkedUnit readUnlinkedUnit(List<int> buffer) { | 4661 idl.UnlinkedUnit readUnlinkedUnit(List<int> buffer) { |
| 4389 fb.BufferPointer rootRef = new fb.BufferPointer.fromBytes(buffer); | 4662 fb.BufferPointer rootRef = new fb.BufferPointer.fromBytes(buffer); |
| 4390 return const _UnlinkedUnitReader().read(rootRef); | 4663 return const _UnlinkedUnitReader().read(rootRef); |
| 4391 } | 4664 } |
| 4392 | 4665 |
| 4393 class _UnlinkedUnitReader extends fb.TableReader<_UnlinkedUnitImpl> { | 4666 class _UnlinkedUnitReader extends fb.TableReader<_UnlinkedUnitImpl> { |
| 4394 const _UnlinkedUnitReader(); | 4667 const _UnlinkedUnitReader(); |
| 4395 | 4668 |
| 4396 @override | 4669 @override |
| 4397 _UnlinkedUnitImpl createObject(fb.BufferPointer bp) => new _UnlinkedUnitImpl(b
p); | 4670 _UnlinkedUnitImpl createObject(fb.BufferPointer bp) => new _UnlinkedUnitImpl(b
p); |
| 4398 } | 4671 } |
| 4399 | 4672 |
| 4400 class _UnlinkedUnitImpl extends Object with _UnlinkedUnitMixin implements idl.Un
linkedUnit { | 4673 class _UnlinkedUnitImpl extends Object with _UnlinkedUnitMixin implements idl.Un
linkedUnit { |
| 4401 final fb.BufferPointer _bp; | 4674 final fb.BufferPointer _bp; |
| 4402 | 4675 |
| 4403 _UnlinkedUnitImpl(this._bp); | 4676 _UnlinkedUnitImpl(this._bp); |
| 4404 | 4677 |
| 4405 String _libraryName; | 4678 String _libraryName; |
| 4406 int _libraryNameOffset; | 4679 int _libraryNameOffset; |
| 4407 int _libraryNameLength; | 4680 int _libraryNameLength; |
| 4408 idl.UnlinkedDocumentationComment _libraryDocumentationComment; | 4681 idl.UnlinkedDocumentationComment _libraryDocumentationComment; |
| 4682 List<idl.UnlinkedConst> _libraryAnnotations; |
| 4409 idl.UnlinkedPublicNamespace _publicNamespace; | 4683 idl.UnlinkedPublicNamespace _publicNamespace; |
| 4410 List<idl.UnlinkedReference> _references; | 4684 List<idl.UnlinkedReference> _references; |
| 4411 List<idl.UnlinkedClass> _classes; | 4685 List<idl.UnlinkedClass> _classes; |
| 4412 List<idl.UnlinkedEnum> _enums; | 4686 List<idl.UnlinkedEnum> _enums; |
| 4413 List<idl.UnlinkedExecutable> _executables; | 4687 List<idl.UnlinkedExecutable> _executables; |
| 4414 List<idl.UnlinkedExportNonPublic> _exports; | 4688 List<idl.UnlinkedExportNonPublic> _exports; |
| 4415 List<idl.UnlinkedImport> _imports; | 4689 List<idl.UnlinkedImport> _imports; |
| 4416 List<idl.UnlinkedPart> _parts; | 4690 List<idl.UnlinkedPart> _parts; |
| 4417 List<idl.UnlinkedTypedef> _typedefs; | 4691 List<idl.UnlinkedTypedef> _typedefs; |
| 4418 List<idl.UnlinkedVariable> _variables; | 4692 List<idl.UnlinkedVariable> _variables; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 4435 return _libraryNameLength; | 4709 return _libraryNameLength; |
| 4436 } | 4710 } |
| 4437 | 4711 |
| 4438 @override | 4712 @override |
| 4439 idl.UnlinkedDocumentationComment get libraryDocumentationComment { | 4713 idl.UnlinkedDocumentationComment get libraryDocumentationComment { |
| 4440 _libraryDocumentationComment ??= const _UnlinkedDocumentationCommentReader()
.vTableGet(_bp, 3, null); | 4714 _libraryDocumentationComment ??= const _UnlinkedDocumentationCommentReader()
.vTableGet(_bp, 3, null); |
| 4441 return _libraryDocumentationComment; | 4715 return _libraryDocumentationComment; |
| 4442 } | 4716 } |
| 4443 | 4717 |
| 4444 @override | 4718 @override |
| 4719 List<idl.UnlinkedConst> get libraryAnnotations { |
| 4720 _libraryAnnotations ??= const fb.ListReader<idl.UnlinkedConst>(const _Unlink
edConstReader()).vTableGet(_bp, 4, const <idl.UnlinkedConst>[]); |
| 4721 return _libraryAnnotations; |
| 4722 } |
| 4723 |
| 4724 @override |
| 4445 idl.UnlinkedPublicNamespace get publicNamespace { | 4725 idl.UnlinkedPublicNamespace get publicNamespace { |
| 4446 _publicNamespace ??= const _UnlinkedPublicNamespaceReader().vTableGet(_bp, 4
, null); | 4726 _publicNamespace ??= const _UnlinkedPublicNamespaceReader().vTableGet(_bp, 5
, null); |
| 4447 return _publicNamespace; | 4727 return _publicNamespace; |
| 4448 } | 4728 } |
| 4449 | 4729 |
| 4450 @override | 4730 @override |
| 4451 List<idl.UnlinkedReference> get references { | 4731 List<idl.UnlinkedReference> get references { |
| 4452 _references ??= const fb.ListReader<idl.UnlinkedReference>(const _UnlinkedRe
ferenceReader()).vTableGet(_bp, 5, const <idl.UnlinkedReference>[]); | 4732 _references ??= const fb.ListReader<idl.UnlinkedReference>(const _UnlinkedRe
ferenceReader()).vTableGet(_bp, 6, const <idl.UnlinkedReference>[]); |
| 4453 return _references; | 4733 return _references; |
| 4454 } | 4734 } |
| 4455 | 4735 |
| 4456 @override | 4736 @override |
| 4457 List<idl.UnlinkedClass> get classes { | 4737 List<idl.UnlinkedClass> get classes { |
| 4458 _classes ??= const fb.ListReader<idl.UnlinkedClass>(const _UnlinkedClassRead
er()).vTableGet(_bp, 6, const <idl.UnlinkedClass>[]); | 4738 _classes ??= const fb.ListReader<idl.UnlinkedClass>(const _UnlinkedClassRead
er()).vTableGet(_bp, 7, const <idl.UnlinkedClass>[]); |
| 4459 return _classes; | 4739 return _classes; |
| 4460 } | 4740 } |
| 4461 | 4741 |
| 4462 @override | 4742 @override |
| 4463 List<idl.UnlinkedEnum> get enums { | 4743 List<idl.UnlinkedEnum> get enums { |
| 4464 _enums ??= const fb.ListReader<idl.UnlinkedEnum>(const _UnlinkedEnumReader()
).vTableGet(_bp, 7, const <idl.UnlinkedEnum>[]); | 4744 _enums ??= const fb.ListReader<idl.UnlinkedEnum>(const _UnlinkedEnumReader()
).vTableGet(_bp, 8, const <idl.UnlinkedEnum>[]); |
| 4465 return _enums; | 4745 return _enums; |
| 4466 } | 4746 } |
| 4467 | 4747 |
| 4468 @override | 4748 @override |
| 4469 List<idl.UnlinkedExecutable> get executables { | 4749 List<idl.UnlinkedExecutable> get executables { |
| 4470 _executables ??= const fb.ListReader<idl.UnlinkedExecutable>(const _Unlinked
ExecutableReader()).vTableGet(_bp, 8, const <idl.UnlinkedExecutable>[]); | 4750 _executables ??= const fb.ListReader<idl.UnlinkedExecutable>(const _Unlinked
ExecutableReader()).vTableGet(_bp, 9, const <idl.UnlinkedExecutable>[]); |
| 4471 return _executables; | 4751 return _executables; |
| 4472 } | 4752 } |
| 4473 | 4753 |
| 4474 @override | 4754 @override |
| 4475 List<idl.UnlinkedExportNonPublic> get exports { | 4755 List<idl.UnlinkedExportNonPublic> get exports { |
| 4476 _exports ??= const fb.ListReader<idl.UnlinkedExportNonPublic>(const _Unlinke
dExportNonPublicReader()).vTableGet(_bp, 9, const <idl.UnlinkedExportNonPublic>[
]); | 4756 _exports ??= const fb.ListReader<idl.UnlinkedExportNonPublic>(const _Unlinke
dExportNonPublicReader()).vTableGet(_bp, 10, const <idl.UnlinkedExportNonPublic>
[]); |
| 4477 return _exports; | 4757 return _exports; |
| 4478 } | 4758 } |
| 4479 | 4759 |
| 4480 @override | 4760 @override |
| 4481 List<idl.UnlinkedImport> get imports { | 4761 List<idl.UnlinkedImport> get imports { |
| 4482 _imports ??= const fb.ListReader<idl.UnlinkedImport>(const _UnlinkedImportRe
ader()).vTableGet(_bp, 10, const <idl.UnlinkedImport>[]); | 4762 _imports ??= const fb.ListReader<idl.UnlinkedImport>(const _UnlinkedImportRe
ader()).vTableGet(_bp, 11, const <idl.UnlinkedImport>[]); |
| 4483 return _imports; | 4763 return _imports; |
| 4484 } | 4764 } |
| 4485 | 4765 |
| 4486 @override | 4766 @override |
| 4487 List<idl.UnlinkedPart> get parts { | 4767 List<idl.UnlinkedPart> get parts { |
| 4488 _parts ??= const fb.ListReader<idl.UnlinkedPart>(const _UnlinkedPartReader()
).vTableGet(_bp, 11, const <idl.UnlinkedPart>[]); | 4768 _parts ??= const fb.ListReader<idl.UnlinkedPart>(const _UnlinkedPartReader()
).vTableGet(_bp, 12, const <idl.UnlinkedPart>[]); |
| 4489 return _parts; | 4769 return _parts; |
| 4490 } | 4770 } |
| 4491 | 4771 |
| 4492 @override | 4772 @override |
| 4493 List<idl.UnlinkedTypedef> get typedefs { | 4773 List<idl.UnlinkedTypedef> get typedefs { |
| 4494 _typedefs ??= const fb.ListReader<idl.UnlinkedTypedef>(const _UnlinkedTypede
fReader()).vTableGet(_bp, 12, const <idl.UnlinkedTypedef>[]); | 4774 _typedefs ??= const fb.ListReader<idl.UnlinkedTypedef>(const _UnlinkedTypede
fReader()).vTableGet(_bp, 13, const <idl.UnlinkedTypedef>[]); |
| 4495 return _typedefs; | 4775 return _typedefs; |
| 4496 } | 4776 } |
| 4497 | 4777 |
| 4498 @override | 4778 @override |
| 4499 List<idl.UnlinkedVariable> get variables { | 4779 List<idl.UnlinkedVariable> get variables { |
| 4500 _variables ??= const fb.ListReader<idl.UnlinkedVariable>(const _UnlinkedVari
ableReader()).vTableGet(_bp, 13, const <idl.UnlinkedVariable>[]); | 4780 _variables ??= const fb.ListReader<idl.UnlinkedVariable>(const _UnlinkedVari
ableReader()).vTableGet(_bp, 14, const <idl.UnlinkedVariable>[]); |
| 4501 return _variables; | 4781 return _variables; |
| 4502 } | 4782 } |
| 4503 } | 4783 } |
| 4504 | 4784 |
| 4505 abstract class _UnlinkedUnitMixin implements idl.UnlinkedUnit { | 4785 abstract class _UnlinkedUnitMixin implements idl.UnlinkedUnit { |
| 4506 @override | 4786 @override |
| 4507 Map<String, Object> toMap() => { | 4787 Map<String, Object> toMap() => { |
| 4508 "libraryName": libraryName, | 4788 "libraryName": libraryName, |
| 4509 "libraryNameOffset": libraryNameOffset, | 4789 "libraryNameOffset": libraryNameOffset, |
| 4510 "libraryNameLength": libraryNameLength, | 4790 "libraryNameLength": libraryNameLength, |
| 4511 "libraryDocumentationComment": libraryDocumentationComment, | 4791 "libraryDocumentationComment": libraryDocumentationComment, |
| 4792 "libraryAnnotations": libraryAnnotations, |
| 4512 "publicNamespace": publicNamespace, | 4793 "publicNamespace": publicNamespace, |
| 4513 "references": references, | 4794 "references": references, |
| 4514 "classes": classes, | 4795 "classes": classes, |
| 4515 "enums": enums, | 4796 "enums": enums, |
| 4516 "executables": executables, | 4797 "executables": executables, |
| 4517 "exports": exports, | 4798 "exports": exports, |
| 4518 "imports": imports, | 4799 "imports": imports, |
| 4519 "parts": parts, | 4800 "parts": parts, |
| 4520 "typedefs": typedefs, | 4801 "typedefs": typedefs, |
| 4521 "variables": variables, | 4802 "variables": variables, |
| 4522 }; | 4803 }; |
| 4523 } | 4804 } |
| 4524 | 4805 |
| 4525 class UnlinkedVariableBuilder extends Object with _UnlinkedVariableMixin impleme
nts idl.UnlinkedVariable { | 4806 class UnlinkedVariableBuilder extends Object with _UnlinkedVariableMixin impleme
nts idl.UnlinkedVariable { |
| 4526 bool _finished = false; | 4807 bool _finished = false; |
| 4527 | 4808 |
| 4528 String _name; | 4809 String _name; |
| 4529 int _nameOffset; | 4810 int _nameOffset; |
| 4530 UnlinkedDocumentationCommentBuilder _documentationComment; | 4811 UnlinkedDocumentationCommentBuilder _documentationComment; |
| 4812 List<UnlinkedConstBuilder> _annotations; |
| 4531 EntityRefBuilder _type; | 4813 EntityRefBuilder _type; |
| 4532 UnlinkedConstBuilder _constExpr; | 4814 UnlinkedConstBuilder _constExpr; |
| 4533 bool _isStatic; | 4815 bool _isStatic; |
| 4534 bool _isFinal; | 4816 bool _isFinal; |
| 4535 bool _isConst; | 4817 bool _isConst; |
| 4536 int _propagatedTypeSlot; | 4818 int _propagatedTypeSlot; |
| 4537 int _inferredTypeSlot; | 4819 int _inferredTypeSlot; |
| 4538 | 4820 |
| 4539 @override | 4821 @override |
| 4540 String get name => _name ??= ''; | 4822 String get name => _name ??= ''; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 4565 /** | 4847 /** |
| 4566 * Documentation comment for the variable, or `null` if there is no | 4848 * Documentation comment for the variable, or `null` if there is no |
| 4567 * documentation comment. | 4849 * documentation comment. |
| 4568 */ | 4850 */ |
| 4569 void set documentationComment(UnlinkedDocumentationCommentBuilder _value) { | 4851 void set documentationComment(UnlinkedDocumentationCommentBuilder _value) { |
| 4570 assert(!_finished); | 4852 assert(!_finished); |
| 4571 _documentationComment = _value; | 4853 _documentationComment = _value; |
| 4572 } | 4854 } |
| 4573 | 4855 |
| 4574 @override | 4856 @override |
| 4857 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; |
| 4858 |
| 4859 /** |
| 4860 * Annotations for this variable. |
| 4861 */ |
| 4862 void set annotations(List<UnlinkedConstBuilder> _value) { |
| 4863 assert(!_finished); |
| 4864 _annotations = _value; |
| 4865 } |
| 4866 |
| 4867 @override |
| 4575 EntityRefBuilder get type => _type; | 4868 EntityRefBuilder get type => _type; |
| 4576 | 4869 |
| 4577 /** | 4870 /** |
| 4578 * Declared type of the variable. Absent if the type is implicit. | 4871 * Declared type of the variable. Absent if the type is implicit. |
| 4579 */ | 4872 */ |
| 4580 void set type(EntityRefBuilder _value) { | 4873 void set type(EntityRefBuilder _value) { |
| 4581 assert(!_finished); | 4874 assert(!_finished); |
| 4582 _type = _value; | 4875 _type = _value; |
| 4583 } | 4876 } |
| 4584 | 4877 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4656 * [LinkedLibrary.types] contains the inferred type for this variable. If | 4949 * [LinkedLibrary.types] contains the inferred type for this variable. If |
| 4657 * there is no matching entry in [LinkedLibrary.types], then no type was | 4950 * there is no matching entry in [LinkedLibrary.types], then no type was |
| 4658 * inferred for this variable, so its static type is `dynamic`. | 4951 * inferred for this variable, so its static type is `dynamic`. |
| 4659 */ | 4952 */ |
| 4660 void set inferredTypeSlot(int _value) { | 4953 void set inferredTypeSlot(int _value) { |
| 4661 assert(!_finished); | 4954 assert(!_finished); |
| 4662 assert(_value == null || _value >= 0); | 4955 assert(_value == null || _value >= 0); |
| 4663 _inferredTypeSlot = _value; | 4956 _inferredTypeSlot = _value; |
| 4664 } | 4957 } |
| 4665 | 4958 |
| 4666 UnlinkedVariableBuilder({String name, int nameOffset, UnlinkedDocumentationCom
mentBuilder documentationComment, EntityRefBuilder type, UnlinkedConstBuilder co
nstExpr, bool isStatic, bool isFinal, bool isConst, int propagatedTypeSlot, int
inferredTypeSlot}) | 4959 UnlinkedVariableBuilder({String name, int nameOffset, UnlinkedDocumentationCom
mentBuilder documentationComment, List<UnlinkedConstBuilder> annotations, Entity
RefBuilder type, UnlinkedConstBuilder constExpr, bool isStatic, bool isFinal, bo
ol isConst, int propagatedTypeSlot, int inferredTypeSlot}) |
| 4667 : _name = name, | 4960 : _name = name, |
| 4668 _nameOffset = nameOffset, | 4961 _nameOffset = nameOffset, |
| 4669 _documentationComment = documentationComment, | 4962 _documentationComment = documentationComment, |
| 4963 _annotations = annotations, |
| 4670 _type = type, | 4964 _type = type, |
| 4671 _constExpr = constExpr, | 4965 _constExpr = constExpr, |
| 4672 _isStatic = isStatic, | 4966 _isStatic = isStatic, |
| 4673 _isFinal = isFinal, | 4967 _isFinal = isFinal, |
| 4674 _isConst = isConst, | 4968 _isConst = isConst, |
| 4675 _propagatedTypeSlot = propagatedTypeSlot, | 4969 _propagatedTypeSlot = propagatedTypeSlot, |
| 4676 _inferredTypeSlot = inferredTypeSlot; | 4970 _inferredTypeSlot = inferredTypeSlot; |
| 4677 | 4971 |
| 4678 fb.Offset finish(fb.Builder fbBuilder) { | 4972 fb.Offset finish(fb.Builder fbBuilder) { |
| 4679 assert(!_finished); | 4973 assert(!_finished); |
| 4680 _finished = true; | 4974 _finished = true; |
| 4681 fb.Offset offset_name; | 4975 fb.Offset offset_name; |
| 4682 fb.Offset offset_documentationComment; | 4976 fb.Offset offset_documentationComment; |
| 4977 fb.Offset offset_annotations; |
| 4683 fb.Offset offset_type; | 4978 fb.Offset offset_type; |
| 4684 fb.Offset offset_constExpr; | 4979 fb.Offset offset_constExpr; |
| 4685 if (_name != null) { | 4980 if (_name != null) { |
| 4686 offset_name = fbBuilder.writeString(_name); | 4981 offset_name = fbBuilder.writeString(_name); |
| 4687 } | 4982 } |
| 4688 if (_documentationComment != null) { | 4983 if (_documentationComment != null) { |
| 4689 offset_documentationComment = _documentationComment.finish(fbBuilder); | 4984 offset_documentationComment = _documentationComment.finish(fbBuilder); |
| 4690 } | 4985 } |
| 4986 if (!(_annotations == null || _annotations.isEmpty)) { |
| 4987 offset_annotations = fbBuilder.writeList(_annotations.map((b) => b.finish(
fbBuilder)).toList()); |
| 4988 } |
| 4691 if (_type != null) { | 4989 if (_type != null) { |
| 4692 offset_type = _type.finish(fbBuilder); | 4990 offset_type = _type.finish(fbBuilder); |
| 4693 } | 4991 } |
| 4694 if (_constExpr != null) { | 4992 if (_constExpr != null) { |
| 4695 offset_constExpr = _constExpr.finish(fbBuilder); | 4993 offset_constExpr = _constExpr.finish(fbBuilder); |
| 4696 } | 4994 } |
| 4697 fbBuilder.startTable(); | 4995 fbBuilder.startTable(); |
| 4698 if (offset_name != null) { | 4996 if (offset_name != null) { |
| 4699 fbBuilder.addOffset(0, offset_name); | 4997 fbBuilder.addOffset(0, offset_name); |
| 4700 } | 4998 } |
| 4701 if (_nameOffset != null && _nameOffset != 0) { | 4999 if (_nameOffset != null && _nameOffset != 0) { |
| 4702 fbBuilder.addUint32(1, _nameOffset); | 5000 fbBuilder.addUint32(1, _nameOffset); |
| 4703 } | 5001 } |
| 4704 if (offset_documentationComment != null) { | 5002 if (offset_documentationComment != null) { |
| 4705 fbBuilder.addOffset(2, offset_documentationComment); | 5003 fbBuilder.addOffset(2, offset_documentationComment); |
| 4706 } | 5004 } |
| 5005 if (offset_annotations != null) { |
| 5006 fbBuilder.addOffset(3, offset_annotations); |
| 5007 } |
| 4707 if (offset_type != null) { | 5008 if (offset_type != null) { |
| 4708 fbBuilder.addOffset(3, offset_type); | 5009 fbBuilder.addOffset(4, offset_type); |
| 4709 } | 5010 } |
| 4710 if (offset_constExpr != null) { | 5011 if (offset_constExpr != null) { |
| 4711 fbBuilder.addOffset(4, offset_constExpr); | 5012 fbBuilder.addOffset(5, offset_constExpr); |
| 4712 } | 5013 } |
| 4713 if (_isStatic == true) { | 5014 if (_isStatic == true) { |
| 4714 fbBuilder.addBool(5, true); | 5015 fbBuilder.addBool(6, true); |
| 4715 } | 5016 } |
| 4716 if (_isFinal == true) { | 5017 if (_isFinal == true) { |
| 4717 fbBuilder.addBool(6, true); | 5018 fbBuilder.addBool(7, true); |
| 4718 } | 5019 } |
| 4719 if (_isConst == true) { | 5020 if (_isConst == true) { |
| 4720 fbBuilder.addBool(7, true); | 5021 fbBuilder.addBool(8, true); |
| 4721 } | 5022 } |
| 4722 if (_propagatedTypeSlot != null && _propagatedTypeSlot != 0) { | 5023 if (_propagatedTypeSlot != null && _propagatedTypeSlot != 0) { |
| 4723 fbBuilder.addUint32(8, _propagatedTypeSlot); | 5024 fbBuilder.addUint32(9, _propagatedTypeSlot); |
| 4724 } | 5025 } |
| 4725 if (_inferredTypeSlot != null && _inferredTypeSlot != 0) { | 5026 if (_inferredTypeSlot != null && _inferredTypeSlot != 0) { |
| 4726 fbBuilder.addUint32(9, _inferredTypeSlot); | 5027 fbBuilder.addUint32(10, _inferredTypeSlot); |
| 4727 } | 5028 } |
| 4728 return fbBuilder.endTable(); | 5029 return fbBuilder.endTable(); |
| 4729 } | 5030 } |
| 4730 } | 5031 } |
| 4731 | 5032 |
| 4732 class _UnlinkedVariableReader extends fb.TableReader<_UnlinkedVariableImpl> { | 5033 class _UnlinkedVariableReader extends fb.TableReader<_UnlinkedVariableImpl> { |
| 4733 const _UnlinkedVariableReader(); | 5034 const _UnlinkedVariableReader(); |
| 4734 | 5035 |
| 4735 @override | 5036 @override |
| 4736 _UnlinkedVariableImpl createObject(fb.BufferPointer bp) => new _UnlinkedVariab
leImpl(bp); | 5037 _UnlinkedVariableImpl createObject(fb.BufferPointer bp) => new _UnlinkedVariab
leImpl(bp); |
| 4737 } | 5038 } |
| 4738 | 5039 |
| 4739 class _UnlinkedVariableImpl extends Object with _UnlinkedVariableMixin implement
s idl.UnlinkedVariable { | 5040 class _UnlinkedVariableImpl extends Object with _UnlinkedVariableMixin implement
s idl.UnlinkedVariable { |
| 4740 final fb.BufferPointer _bp; | 5041 final fb.BufferPointer _bp; |
| 4741 | 5042 |
| 4742 _UnlinkedVariableImpl(this._bp); | 5043 _UnlinkedVariableImpl(this._bp); |
| 4743 | 5044 |
| 4744 String _name; | 5045 String _name; |
| 4745 int _nameOffset; | 5046 int _nameOffset; |
| 4746 idl.UnlinkedDocumentationComment _documentationComment; | 5047 idl.UnlinkedDocumentationComment _documentationComment; |
| 5048 List<idl.UnlinkedConst> _annotations; |
| 4747 idl.EntityRef _type; | 5049 idl.EntityRef _type; |
| 4748 idl.UnlinkedConst _constExpr; | 5050 idl.UnlinkedConst _constExpr; |
| 4749 bool _isStatic; | 5051 bool _isStatic; |
| 4750 bool _isFinal; | 5052 bool _isFinal; |
| 4751 bool _isConst; | 5053 bool _isConst; |
| 4752 int _propagatedTypeSlot; | 5054 int _propagatedTypeSlot; |
| 4753 int _inferredTypeSlot; | 5055 int _inferredTypeSlot; |
| 4754 | 5056 |
| 4755 @override | 5057 @override |
| 4756 String get name { | 5058 String get name { |
| 4757 _name ??= const fb.StringReader().vTableGet(_bp, 0, ''); | 5059 _name ??= const fb.StringReader().vTableGet(_bp, 0, ''); |
| 4758 return _name; | 5060 return _name; |
| 4759 } | 5061 } |
| 4760 | 5062 |
| 4761 @override | 5063 @override |
| 4762 int get nameOffset { | 5064 int get nameOffset { |
| 4763 _nameOffset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0); | 5065 _nameOffset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0); |
| 4764 return _nameOffset; | 5066 return _nameOffset; |
| 4765 } | 5067 } |
| 4766 | 5068 |
| 4767 @override | 5069 @override |
| 4768 idl.UnlinkedDocumentationComment get documentationComment { | 5070 idl.UnlinkedDocumentationComment get documentationComment { |
| 4769 _documentationComment ??= const _UnlinkedDocumentationCommentReader().vTable
Get(_bp, 2, null); | 5071 _documentationComment ??= const _UnlinkedDocumentationCommentReader().vTable
Get(_bp, 2, null); |
| 4770 return _documentationComment; | 5072 return _documentationComment; |
| 4771 } | 5073 } |
| 4772 | 5074 |
| 4773 @override | 5075 @override |
| 5076 List<idl.UnlinkedConst> get annotations { |
| 5077 _annotations ??= const fb.ListReader<idl.UnlinkedConst>(const _UnlinkedConst
Reader()).vTableGet(_bp, 3, const <idl.UnlinkedConst>[]); |
| 5078 return _annotations; |
| 5079 } |
| 5080 |
| 5081 @override |
| 4774 idl.EntityRef get type { | 5082 idl.EntityRef get type { |
| 4775 _type ??= const _EntityRefReader().vTableGet(_bp, 3, null); | 5083 _type ??= const _EntityRefReader().vTableGet(_bp, 4, null); |
| 4776 return _type; | 5084 return _type; |
| 4777 } | 5085 } |
| 4778 | 5086 |
| 4779 @override | 5087 @override |
| 4780 idl.UnlinkedConst get constExpr { | 5088 idl.UnlinkedConst get constExpr { |
| 4781 _constExpr ??= const _UnlinkedConstReader().vTableGet(_bp, 4, null); | 5089 _constExpr ??= const _UnlinkedConstReader().vTableGet(_bp, 5, null); |
| 4782 return _constExpr; | 5090 return _constExpr; |
| 4783 } | 5091 } |
| 4784 | 5092 |
| 4785 @override | 5093 @override |
| 4786 bool get isStatic { | 5094 bool get isStatic { |
| 4787 _isStatic ??= const fb.BoolReader().vTableGet(_bp, 5, false); | 5095 _isStatic ??= const fb.BoolReader().vTableGet(_bp, 6, false); |
| 4788 return _isStatic; | 5096 return _isStatic; |
| 4789 } | 5097 } |
| 4790 | 5098 |
| 4791 @override | 5099 @override |
| 4792 bool get isFinal { | 5100 bool get isFinal { |
| 4793 _isFinal ??= const fb.BoolReader().vTableGet(_bp, 6, false); | 5101 _isFinal ??= const fb.BoolReader().vTableGet(_bp, 7, false); |
| 4794 return _isFinal; | 5102 return _isFinal; |
| 4795 } | 5103 } |
| 4796 | 5104 |
| 4797 @override | 5105 @override |
| 4798 bool get isConst { | 5106 bool get isConst { |
| 4799 _isConst ??= const fb.BoolReader().vTableGet(_bp, 7, false); | 5107 _isConst ??= const fb.BoolReader().vTableGet(_bp, 8, false); |
| 4800 return _isConst; | 5108 return _isConst; |
| 4801 } | 5109 } |
| 4802 | 5110 |
| 4803 @override | 5111 @override |
| 4804 int get propagatedTypeSlot { | 5112 int get propagatedTypeSlot { |
| 4805 _propagatedTypeSlot ??= const fb.Uint32Reader().vTableGet(_bp, 8, 0); | 5113 _propagatedTypeSlot ??= const fb.Uint32Reader().vTableGet(_bp, 9, 0); |
| 4806 return _propagatedTypeSlot; | 5114 return _propagatedTypeSlot; |
| 4807 } | 5115 } |
| 4808 | 5116 |
| 4809 @override | 5117 @override |
| 4810 int get inferredTypeSlot { | 5118 int get inferredTypeSlot { |
| 4811 _inferredTypeSlot ??= const fb.Uint32Reader().vTableGet(_bp, 9, 0); | 5119 _inferredTypeSlot ??= const fb.Uint32Reader().vTableGet(_bp, 10, 0); |
| 4812 return _inferredTypeSlot; | 5120 return _inferredTypeSlot; |
| 4813 } | 5121 } |
| 4814 } | 5122 } |
| 4815 | 5123 |
| 4816 abstract class _UnlinkedVariableMixin implements idl.UnlinkedVariable { | 5124 abstract class _UnlinkedVariableMixin implements idl.UnlinkedVariable { |
| 4817 @override | 5125 @override |
| 4818 Map<String, Object> toMap() => { | 5126 Map<String, Object> toMap() => { |
| 4819 "name": name, | 5127 "name": name, |
| 4820 "nameOffset": nameOffset, | 5128 "nameOffset": nameOffset, |
| 4821 "documentationComment": documentationComment, | 5129 "documentationComment": documentationComment, |
| 5130 "annotations": annotations, |
| 4822 "type": type, | 5131 "type": type, |
| 4823 "constExpr": constExpr, | 5132 "constExpr": constExpr, |
| 4824 "isStatic": isStatic, | 5133 "isStatic": isStatic, |
| 4825 "isFinal": isFinal, | 5134 "isFinal": isFinal, |
| 4826 "isConst": isConst, | 5135 "isConst": isConst, |
| 4827 "propagatedTypeSlot": propagatedTypeSlot, | 5136 "propagatedTypeSlot": propagatedTypeSlot, |
| 4828 "inferredTypeSlot": inferredTypeSlot, | 5137 "inferredTypeSlot": inferredTypeSlot, |
| 4829 }; | 5138 }; |
| 4830 } | 5139 } |
| 4831 | 5140 |
| OLD | NEW |