| OLD | NEW | 
|    1 // Copyright (c) 2015, the Dartino 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 import 'dart:async' show |    5 import 'dart:async' show | 
|    6     Completer, |    6     Completer, | 
|    7     Future, |    7     Future, | 
|    8     Stream, |    8     Stream, | 
|    9     StreamController, |    9     StreamController, | 
|   10     Zone; |   10     Zone; | 
|   11  |   11  | 
|   12 import 'dart:convert' show |   12 import 'dart:convert' show | 
|   13     UTF8; |   13     UTF8; | 
|   14  |   14  | 
|   15 import 'package:expect/expect.dart' show |   15 import 'package:expect/expect.dart' show | 
|   16     Expect; |   16     Expect; | 
|   17  |   17  | 
|   18 import 'package:fletchc/src/diagnostic.dart'; |   18 import 'package:dartino_compiler/src/diagnostic.dart'; | 
|   19  |   19  | 
|   20 import 'package:fletchc/src/messages.dart'; |   20 import 'package:dartino_compiler/src/messages.dart'; | 
|   21  |   21  | 
|   22 import 'package:fletchc/src/message_examples.dart'; |   22 import 'package:dartino_compiler/src/message_examples.dart'; | 
|   23  |   23  | 
|   24 import 'package:fletchc/src/hub/sentence_parser.dart' show |   24 import 'package:dartino_compiler/src/hub/sentence_parser.dart' show | 
|   25     NamedTarget, |   25     NamedTarget, | 
|   26     Sentence, |   26     Sentence, | 
|   27     parseSentence; |   27     parseSentence; | 
|   28  |   28  | 
|   29 import 'package:fletchc/src/verbs/actions.dart' show |   29 import 'package:dartino_compiler/src/verbs/actions.dart' show | 
|   30     Action; |   30     Action; | 
|   31  |   31  | 
|   32 import 'package:fletchc/src/hub/hub_main.dart' show |   32 import 'package:dartino_compiler/src/hub/hub_main.dart' show | 
|   33     ClientLogger, |   33     ClientLogger, | 
|   34     ClientConnection, |   34     ClientConnection, | 
|   35     IsolatePool, |   35     IsolatePool, | 
|   36     handleVerb; |   36     handleVerb; | 
|   37  |   37  | 
|   38 import 'package:fletchc/src/worker/worker_main.dart' show |   38 import 'package:dartino_compiler/src/worker/worker_main.dart' show | 
|   39     workerMain; |   39     workerMain; | 
|   40  |   40  | 
|   41 import 'package:fletchc/src/hub/session_manager.dart' show |   41 import 'package:dartino_compiler/src/hub/session_manager.dart' show | 
|   42     endAllSessions; |   42     endAllSessions; | 
|   43  |   43  | 
|   44 import 'package:fletchc/src/hub/client_commands.dart' show |   44 import 'package:dartino_compiler/src/hub/client_commands.dart' show | 
|   45     ClientCommand, |   45     ClientCommand, | 
|   46     ClientCommandCode; |   46     ClientCommandCode; | 
|   47  |   47  | 
|   48 import 'package:fletchc/src/verbs/infrastructure.dart' show |   48 import 'package:dartino_compiler/src/verbs/infrastructure.dart' show | 
|   49     AnalyzedSentence, |   49     AnalyzedSentence, | 
|   50     Options, |   50     Options, | 
|   51     analyzeSentence; |   51     analyzeSentence; | 
|   52  |   52  | 
|   53 import 'package:fletchc/src/worker/developer.dart' show |   53 import 'package:dartino_compiler/src/worker/developer.dart' show | 
|   54     parseSettings; |   54     parseSettings; | 
|   55  |   55  | 
|   56 final IsolatePool pool = new IsolatePool(workerMain); |   56 final IsolatePool pool = new IsolatePool(workerMain); | 
|   57  |   57  | 
|   58 Future<Null> main() async { |   58 Future<Null> main() async { | 
|   59   for (DiagnosticKind kind in DiagnosticKind.values) { |   59   for (DiagnosticKind kind in DiagnosticKind.values) { | 
|   60     Expect.isNotNull(getMessage(kind), "$kind"); |   60     Expect.isNotNull(getMessage(kind), "$kind"); | 
|   61  |   61  | 
|   62     List<Example> examples = getExamples(kind); |   62     List<Example> examples = getExamples(kind); | 
|   63     Expect.isNotNull(examples, "$kind"); |   63     Expect.isNotNull(examples, "$kind"); | 
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  255   handleClientCommand(_) => throw "not supported"; |  255   handleClientCommand(_) => throw "not supported"; | 
|  256   handleClientCommandError(e, s) => throw "not supported"; |  256   handleClientCommandError(e, s) => throw "not supported"; | 
|  257   handleClientCommandsDone() => throw "not supported"; |  257   handleClientCommandsDone() => throw "not supported"; | 
|  258   start() => throw "not supported"; |  258   start() => throw "not supported"; | 
|  259   get arguments => throw "not supported"; |  259   get arguments => throw "not supported"; | 
|  260   get argumentsCompleter => throw "not supported"; |  260   get argumentsCompleter => throw "not supported"; | 
|  261   set argumentsCompleter(_) => throw "not supported"; |  261   set argumentsCompleter(_) => throw "not supported"; | 
|  262   get commandSender => throw "not supported"; |  262   get commandSender => throw "not supported"; | 
|  263   set commandSender(_) => throw "not supported"; |  263   set commandSender(_) => throw "not supported"; | 
|  264   set completer(_) => throw "not supported"; |  264   set completer(_) => throw "not supported"; | 
|  265   get fletchVm => throw "not supported"; |  265   get dartinoVm => throw "not supported"; | 
|  266   set fletchVm(_) => throw "not supported"; |  266   set dartinoVm(_) => throw "not supported"; | 
|  267   get requiresWorker => throw "not supported"; |  267   get requiresWorker => throw "not supported"; | 
|  268   get socket => throw "not supported"; |  268   get socket => throw "not supported"; | 
|  269   get subscription => throw "not supported"; |  269   get subscription => throw "not supported"; | 
|  270   set subscription(_) => throw "not supported"; |  270   set subscription(_) => throw "not supported"; | 
|  271 } |  271 } | 
|  272  |  272  | 
|  273 class MockClientLogger implements ClientLogger { |  273 class MockClientLogger implements ClientLogger { | 
|  274   static int clientsAllocated = 0; |  274   static int clientsAllocated = 0; | 
|  275  |  275  | 
|  276   final int id = clientsAllocated++; |  276   final int id = clientsAllocated++; | 
| (...skipping 10 matching lines...) Expand all  Loading... | 
|  287   } |  287   } | 
|  288  |  288  | 
|  289   void error(error, StackTrace stackTrace) { |  289   void error(error, StackTrace stackTrace) { | 
|  290     throw error; |  290     throw error; | 
|  291   } |  291   } | 
|  292  |  292  | 
|  293   get arguments => throw "not supported"; |  293   get arguments => throw "not supported"; | 
|  294   set arguments(_) => throw "not supported"; |  294   set arguments(_) => throw "not supported"; | 
|  295   get notes => throw "not supported"; |  295   get notes => throw "not supported"; | 
|  296 } |  296 } | 
| OLD | NEW |