| 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 'dart:convert'; | 10 import 'dart:convert'; |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 class UnlinkedClass { | 246 class UnlinkedClass { |
| 247 String _name; | 247 String _name; |
| 248 List<UnlinkedTypeParam> _typeParameters; | 248 List<UnlinkedTypeParam> _typeParameters; |
| 249 UnlinkedTypeRef _supertype; | 249 UnlinkedTypeRef _supertype; |
| 250 List<UnlinkedTypeRef> _mixins; | 250 List<UnlinkedTypeRef> _mixins; |
| 251 List<UnlinkedTypeRef> _interfaces; | 251 List<UnlinkedTypeRef> _interfaces; |
| 252 List<UnlinkedVariable> _fields; | 252 List<UnlinkedVariable> _fields; |
| 253 List<UnlinkedExecutable> _executables; | 253 List<UnlinkedExecutable> _executables; |
| 254 bool _isAbstract; | 254 bool _isAbstract; |
| 255 bool _isMixinApplication; | 255 bool _isMixinApplication; |
| 256 bool _hasNoSupertype; |
| 256 | 257 |
| 257 UnlinkedClass.fromJson(Map json) | 258 UnlinkedClass.fromJson(Map json) |
| 258 : _name = json["name"], | 259 : _name = json["name"], |
| 259 _typeParameters = json["typeParameters"]?.map((x) => new UnlinkedTypeParam
.fromJson(x))?.toList(), | 260 _typeParameters = json["typeParameters"]?.map((x) => new UnlinkedTypeParam
.fromJson(x))?.toList(), |
| 260 _supertype = json["supertype"] == null ? null : new UnlinkedTypeRef.fromJs
on(json["supertype"]), | 261 _supertype = json["supertype"] == null ? null : new UnlinkedTypeRef.fromJs
on(json["supertype"]), |
| 261 _mixins = json["mixins"]?.map((x) => new UnlinkedTypeRef.fromJson(x))?.toL
ist(), | 262 _mixins = json["mixins"]?.map((x) => new UnlinkedTypeRef.fromJson(x))?.toL
ist(), |
| 262 _interfaces = json["interfaces"]?.map((x) => new UnlinkedTypeRef.fromJson(
x))?.toList(), | 263 _interfaces = json["interfaces"]?.map((x) => new UnlinkedTypeRef.fromJson(
x))?.toList(), |
| 263 _fields = json["fields"]?.map((x) => new UnlinkedVariable.fromJson(x))?.to
List(), | 264 _fields = json["fields"]?.map((x) => new UnlinkedVariable.fromJson(x))?.to
List(), |
| 264 _executables = json["executables"]?.map((x) => new UnlinkedExecutable.from
Json(x))?.toList(), | 265 _executables = json["executables"]?.map((x) => new UnlinkedExecutable.from
Json(x))?.toList(), |
| 265 _isAbstract = json["isAbstract"], | 266 _isAbstract = json["isAbstract"], |
| 266 _isMixinApplication = json["isMixinApplication"]; | 267 _isMixinApplication = json["isMixinApplication"], |
| 268 _hasNoSupertype = json["hasNoSupertype"]; |
| 267 | 269 |
| 268 String get name => _name ?? ''; | 270 String get name => _name ?? ''; |
| 269 List<UnlinkedTypeParam> get typeParameters => _typeParameters ?? const <Unlink
edTypeParam>[]; | 271 List<UnlinkedTypeParam> get typeParameters => _typeParameters ?? const <Unlink
edTypeParam>[]; |
| 270 UnlinkedTypeRef get supertype => _supertype; | 272 UnlinkedTypeRef get supertype => _supertype; |
| 271 List<UnlinkedTypeRef> get mixins => _mixins ?? const <UnlinkedTypeRef>[]; | 273 List<UnlinkedTypeRef> get mixins => _mixins ?? const <UnlinkedTypeRef>[]; |
| 272 List<UnlinkedTypeRef> get interfaces => _interfaces ?? const <UnlinkedTypeRef>
[]; | 274 List<UnlinkedTypeRef> get interfaces => _interfaces ?? const <UnlinkedTypeRef>
[]; |
| 273 List<UnlinkedVariable> get fields => _fields ?? const <UnlinkedVariable>[]; | 275 List<UnlinkedVariable> get fields => _fields ?? const <UnlinkedVariable>[]; |
| 274 List<UnlinkedExecutable> get executables => _executables ?? const <UnlinkedExe
cutable>[]; | 276 List<UnlinkedExecutable> get executables => _executables ?? const <UnlinkedExe
cutable>[]; |
| 275 bool get isAbstract => _isAbstract ?? false; | 277 bool get isAbstract => _isAbstract ?? false; |
| 276 bool get isMixinApplication => _isMixinApplication ?? false; | 278 bool get isMixinApplication => _isMixinApplication ?? false; |
| 279 bool get hasNoSupertype => _hasNoSupertype ?? false; |
| 277 } | 280 } |
| 278 | 281 |
| 279 class UnlinkedClassBuilder { | 282 class UnlinkedClassBuilder { |
| 280 final Map _json = {}; | 283 final Map _json = {}; |
| 281 | 284 |
| 282 bool _finished = false; | 285 bool _finished = false; |
| 283 | 286 |
| 284 UnlinkedClassBuilder(builder.BuilderContext context); | 287 UnlinkedClassBuilder(builder.BuilderContext context); |
| 285 | 288 |
| 286 void set name(String _value) { | 289 void set name(String _value) { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 } | 351 } |
| 349 | 352 |
| 350 void set isMixinApplication(bool _value) { | 353 void set isMixinApplication(bool _value) { |
| 351 assert(!_finished); | 354 assert(!_finished); |
| 352 assert(!_json.containsKey("isMixinApplication")); | 355 assert(!_json.containsKey("isMixinApplication")); |
| 353 if (_value != null) { | 356 if (_value != null) { |
| 354 _json["isMixinApplication"] = _value; | 357 _json["isMixinApplication"] = _value; |
| 355 } | 358 } |
| 356 } | 359 } |
| 357 | 360 |
| 361 void set hasNoSupertype(bool _value) { |
| 362 assert(!_finished); |
| 363 assert(!_json.containsKey("hasNoSupertype")); |
| 364 if (_value != null) { |
| 365 _json["hasNoSupertype"] = _value; |
| 366 } |
| 367 } |
| 368 |
| 358 Map finish() { | 369 Map finish() { |
| 359 assert(!_finished); | 370 assert(!_finished); |
| 360 _finished = true; | 371 _finished = true; |
| 361 return _json; | 372 return _json; |
| 362 } | 373 } |
| 363 } | 374 } |
| 364 | 375 |
| 365 UnlinkedClassBuilder encodeUnlinkedClass(builder.BuilderContext builderContext,
{String name, List<UnlinkedTypeParamBuilder> typeParameters, UnlinkedTypeRefBuil
der supertype, List<UnlinkedTypeRefBuilder> mixins, List<UnlinkedTypeRefBuilder>
interfaces, List<UnlinkedVariableBuilder> fields, List<UnlinkedExecutableBuilde
r> executables, bool isAbstract, bool isMixinApplication}) { | 376 UnlinkedClassBuilder encodeUnlinkedClass(builder.BuilderContext builderContext,
{String name, List<UnlinkedTypeParamBuilder> typeParameters, UnlinkedTypeRefBuil
der supertype, List<UnlinkedTypeRefBuilder> mixins, List<UnlinkedTypeRefBuilder>
interfaces, List<UnlinkedVariableBuilder> fields, List<UnlinkedExecutableBuilde
r> executables, bool isAbstract, bool isMixinApplication, bool hasNoSupertype})
{ |
| 366 UnlinkedClassBuilder builder = new UnlinkedClassBuilder(builderContext); | 377 UnlinkedClassBuilder builder = new UnlinkedClassBuilder(builderContext); |
| 367 builder.name = name; | 378 builder.name = name; |
| 368 builder.typeParameters = typeParameters; | 379 builder.typeParameters = typeParameters; |
| 369 builder.supertype = supertype; | 380 builder.supertype = supertype; |
| 370 builder.mixins = mixins; | 381 builder.mixins = mixins; |
| 371 builder.interfaces = interfaces; | 382 builder.interfaces = interfaces; |
| 372 builder.fields = fields; | 383 builder.fields = fields; |
| 373 builder.executables = executables; | 384 builder.executables = executables; |
| 374 builder.isAbstract = isAbstract; | 385 builder.isAbstract = isAbstract; |
| 375 builder.isMixinApplication = isMixinApplication; | 386 builder.isMixinApplication = isMixinApplication; |
| 387 builder.hasNoSupertype = hasNoSupertype; |
| 376 return builder; | 388 return builder; |
| 377 } | 389 } |
| 378 | 390 |
| 379 class UnlinkedCombinator { | 391 class UnlinkedCombinator { |
| 380 List<UnlinkedCombinatorName> _shows; | 392 List<UnlinkedCombinatorName> _shows; |
| 381 List<UnlinkedCombinatorName> _hides; | 393 List<UnlinkedCombinatorName> _hides; |
| 382 | 394 |
| 383 UnlinkedCombinator.fromJson(Map json) | 395 UnlinkedCombinator.fromJson(Map json) |
| 384 : _shows = json["shows"]?.map((x) => new UnlinkedCombinatorName.fromJson(x))
?.toList(), | 396 : _shows = json["shows"]?.map((x) => new UnlinkedCombinatorName.fromJson(x))
?.toList(), |
| 385 _hides = json["hides"]?.map((x) => new UnlinkedCombinatorName.fromJson(x))
?.toList(); | 397 _hides = json["hides"]?.map((x) => new UnlinkedCombinatorName.fromJson(x))
?.toList(); |
| (...skipping 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1464 UnlinkedVariableBuilder builder = new UnlinkedVariableBuilder(builderContext); | 1476 UnlinkedVariableBuilder builder = new UnlinkedVariableBuilder(builderContext); |
| 1465 builder.name = name; | 1477 builder.name = name; |
| 1466 builder.type = type; | 1478 builder.type = type; |
| 1467 builder.isStatic = isStatic; | 1479 builder.isStatic = isStatic; |
| 1468 builder.isFinal = isFinal; | 1480 builder.isFinal = isFinal; |
| 1469 builder.isConst = isConst; | 1481 builder.isConst = isConst; |
| 1470 builder.hasImplicitType = hasImplicitType; | 1482 builder.hasImplicitType = hasImplicitType; |
| 1471 return builder; | 1483 return builder; |
| 1472 } | 1484 } |
| 1473 | 1485 |
| OLD | NEW |