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

Side by Side Diff: runtime/observatory/lib/src/service/object.dart

Issue 1158863002: Mark script kinds as private in the service protocol. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: sync Created 5 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | runtime/observatory/tests/service/get_object_rpc_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 part of service; 5 part of service;
6 6
7 /// An RpcException represents an exceptional event that happened 7 /// An RpcException represents an exceptional event that happened
8 /// while invoking an rpc. 8 /// while invoking an rpc.
9 abstract class RpcException implements Exception { 9 abstract class RpcException implements Exception {
10 RpcException(this.message); 10 RpcException(this.message);
(...skipping 2230 matching lines...) Expand 10 before | Expand all | Expand 10 after
2241 int tokenToLine(int token) => _tokenToLine[token]; 2241 int tokenToLine(int token) => _tokenToLine[token];
2242 Map _tokenToLine = {}; 2242 Map _tokenToLine = {};
2243 2243
2244 /// This function maps a token position to a column number. 2244 /// This function maps a token position to a column number.
2245 int tokenToCol(int token) => _tokenToCol[token]; 2245 int tokenToCol(int token) => _tokenToCol[token];
2246 Map _tokenToCol = {}; 2246 Map _tokenToCol = {};
2247 2247
2248 void _update(ObservableMap map, bool mapIsRef) { 2248 void _update(ObservableMap map, bool mapIsRef) {
2249 _upgradeCollection(map, isolate); 2249 _upgradeCollection(map, isolate);
2250 uri = map['uri']; 2250 uri = map['uri'];
2251 kind = map['kind']; 2251 kind = map['_kind'];
2252 _shortUri = uri.substring(uri.lastIndexOf('/') + 1); 2252 _shortUri = uri.substring(uri.lastIndexOf('/') + 1);
2253 name = _shortUri; 2253 name = _shortUri;
2254 vmName = uri; 2254 vmName = uri;
2255 if (mapIsRef) { 2255 if (mapIsRef) {
2256 return; 2256 return;
2257 } 2257 }
2258 _loaded = true; 2258 _loaded = true;
2259 lineOffset = map['lineOffset']; 2259 lineOffset = map['lineOffset'];
2260 columnOffset = map['columnOffset']; 2260 columnOffset = map['columnOffset'];
2261 _parseTokenPosTable(map['tokenPosTable']); 2261 _parseTokenPosTable(map['tokenPosTable']);
(...skipping 892 matching lines...) Expand 10 before | Expand all | Expand 10 after
3154 var v = list[i]; 3154 var v = list[i];
3155 if ((v is ObservableMap) && _isServiceMap(v)) { 3155 if ((v is ObservableMap) && _isServiceMap(v)) {
3156 list[i] = owner.getFromMap(v); 3156 list[i] = owner.getFromMap(v);
3157 } else if (v is ObservableList) { 3157 } else if (v is ObservableList) {
3158 _upgradeObservableList(v, owner); 3158 _upgradeObservableList(v, owner);
3159 } else if (v is ObservableMap) { 3159 } else if (v is ObservableMap) {
3160 _upgradeObservableMap(v, owner); 3160 _upgradeObservableMap(v, owner);
3161 } 3161 }
3162 } 3162 }
3163 } 3163 }
OLDNEW
« no previous file with comments | « no previous file | runtime/observatory/tests/service/get_object_rpc_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698