OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 library fletchc.fletch_class_builder; | 5 library fletchc.fletch_class_builder; |
6 | 6 |
7 import 'package:compiler/src/dart_types.dart'; | 7 import 'package:compiler/src/dart_types.dart'; |
8 import 'package:compiler/src/elements/elements.dart'; | 8 import 'package:compiler/src/elements/elements.dart'; |
9 import 'package:compiler/src/universe/selector.dart'; | 9 import 'package:compiler/src/universe/selector.dart'; |
10 import 'package:persistent/persistent.dart'; | 10 import 'package:persistent/persistent.dart'; |
11 | 11 |
(...skipping 382 matching lines...) Loading... |
394 } | 394 } |
395 commands.add(new PushNewArray(afterFields.length * 2)); | 395 commands.add(new PushNewArray(afterFields.length * 2)); |
396 | 396 |
397 // Finally, ask the runtime to change the schemas! | 397 // Finally, ask the runtime to change the schemas! |
398 int fieldCountDelta = afterFields.length - klass.fields.length; | 398 int fieldCountDelta = afterFields.length - klass.fields.length; |
399 commands.add(new ChangeSchemas(numberOfClasses, fieldCountDelta)); | 399 commands.add(new ChangeSchemas(numberOfClasses, fieldCountDelta)); |
400 | 400 |
401 return true; | 401 return true; |
402 } | 402 } |
403 } | 403 } |
OLD | NEW |