Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1579)

Unified Diff: pkg/analysis_server/lib/src/server/driver.dart

Issue 1855643002: More strong mode changes to analysis_server (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Backout changes to options file Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/lib/src/server/driver.dart
diff --git a/pkg/analysis_server/lib/src/server/driver.dart b/pkg/analysis_server/lib/src/server/driver.dart
index 73867fe81d364a26cf9bec76315dc75da65191f0..f04824fd4de4436f7e3636db92e8b8028b87e506 100644
--- a/pkg/analysis_server/lib/src/server/driver.dart
+++ b/pkg/analysis_server/lib/src/server/driver.dart
@@ -467,7 +467,7 @@ class Driver implements ServerStarter {
*/
dynamic _captureExceptions(InstrumentationService service, dynamic callback(),
{void print(String line)}) {
- Function errorFunction = (Zone self, ZoneDelegate parent, Zone zone,
+ var errorFunction = (Zone self, ZoneDelegate parent, Zone zone,
dynamic exception, StackTrace stackTrace) {
service.logPriorityException(exception, stackTrace);
AnalysisServer analysisServer = socketServer.analysisServer;
@@ -475,11 +475,11 @@ class Driver implements ServerStarter {
'Captured exception', exception, stackTrace);
throw exception;
};
- Function printFunction = print == null
+ var printFunction = print == null
? null
: (Zone self, ZoneDelegate parent, Zone zone, String line) {
- // Note: we don't pass the line on to stdout, because that is reserved
- // for communication to the client.
+ // Note: we don't pass the line on to stdout, because that is
+ // reserved for communication to the client.
print(line);
};
ZoneSpecification zoneSpecification = new ZoneSpecification(
« no previous file with comments | « pkg/analysis_server/lib/src/collections.dart ('k') | pkg/analysis_server/lib/src/services/refactoring/extract_method.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698