Chromium Code Reviews| Index: pkg/analysis_server/lib/src/index/split_store.dart |
| diff --git a/pkg/analysis_server/lib/src/index/split_store.dart b/pkg/analysis_server/lib/src/index/split_store.dart |
| index 8c31ca914dcb2aa5194388284b7a363f6cf34d8c..b73c84bcbf218c67e42e276ff8d463be8aef208b 100644 |
| --- a/pkg/analysis_server/lib/src/index/split_store.dart |
| +++ b/pkg/analysis_server/lib/src/index/split_store.dart |
| @@ -107,7 +107,7 @@ class ElementCodec { |
| int componentId = path[i]; |
| String component = _stringCodec.decode(componentId); |
| if (i < length - 1 && path[i + 1] < 0) { |
| - component += "@${(-path[i + 1])}"; |
| + component += '@${(-path[i + 1])}'; |
| i++; |
| } |
| components.add(component); |
| @@ -221,7 +221,7 @@ class FileNodeManager implements NodeManager { |
| _DataInputStream stream = new _DataInputStream(bytes); |
| return _readNode(stream); |
| }).catchError((e, stackTrace) { |
| - _logger.logError2("Exception during reading index file ${name}", |
| + _logger.logError2('Exception during reading index file ${name}', |
| new CaughtException(e, stackTrace)); |
| }); |
| } |
| @@ -246,7 +246,7 @@ class FileNodeManager implements NodeManager { |
| var bytes = stream.getBytes(); |
| return _fileManager.write(name, bytes); |
| }).catchError((e, stackTrace) { |
| - _logger.logError2("Exception during reading index file ${name}", |
| + _logger.logError2('Exception during reading index file ${name}', |
| new CaughtException(e, stackTrace)); |
| }); |
| } |
| @@ -284,7 +284,7 @@ class FileNodeManager implements NodeManager { |
| int version = stream.readInt(); |
| if (version != _VERSION) { |
| throw new StateError( |
| - "Version ${_VERSION} expected, but ${version} found."); |
| + 'Version ${_VERSION} expected, but ${version} found.'); |
| } |
| } |
| // context |
| @@ -661,7 +661,7 @@ class SplitIndexStore implements IndexStore { |
| ContextCodec _contextCodec; |
| /** |
| - * Information about "universe" elements. We need to keep them together to avoid loading of all |
| + * Information about 'universe' elements. We need to keep them together to avoid loading of all |
|
Paul Berry
2014/06/20 18:01:51
Did you really mean to make this change?
scheglov
2014/06/20 18:21:15
No, I didn't.
Fixed.
|
| * index nodes. |
| * |
| * Order of keys: contextId, nodeId, Relationship. |
| @@ -724,7 +724,7 @@ class SplitIndexStore implements IndexStore { |
| @override |
| String get statistics => |
| - "[${_nodeManager.locationCount} locations, ${_sources.length} sources, ${_nameToNodeNames.length} names]"; |
| + '[${_nodeManager.locationCount} locations, ${_sources.length} sources, ${_nameToNodeNames.length} names]'; |
| @override |
| bool aboutToIndexDart(AnalysisContext context, |
| @@ -785,7 +785,7 @@ class SplitIndexStore implements IndexStore { |
| String unitName = unit.fullName; |
| int libraryNameIndex = _stringCodec.encode(libraryName); |
| int unitNameIndex = _stringCodec.encode(unitName); |
| - _currentNodeName = "${libraryNameIndex}_${unitNameIndex}.index"; |
| + _currentNodeName = '${libraryNameIndex}_${unitNameIndex}.index'; |
| _currentNodeNameId = _stringCodec.encode(_currentNodeName); |
| _currentNode = _nodeManager.newNode(context); |
| _currentContextId = _contextCodec.encode(context); |
| @@ -812,7 +812,7 @@ class SplitIndexStore implements IndexStore { |
| // prepare node |
| String sourceName = source.fullName; |
| int sourceNameIndex = _stringCodec.encode(sourceName); |
| - _currentNodeName = "${sourceNameIndex}.index"; |
| + _currentNodeName = '${sourceNameIndex}.index'; |
| _currentNodeNameId = _stringCodec.encode(_currentNodeName); |
| _currentNode = _nodeManager.newNode(context); |
| return true; |
| @@ -1061,7 +1061,7 @@ class SplitIndexStore implements IndexStore { |
| String unitName = unit.fullName; |
| int libraryNameIndex = _stringCodec.encode(libraryName); |
| int unitNameIndex = _stringCodec.encode(unitName); |
| - String nodeName = "${libraryNameIndex}_${unitNameIndex}.index"; |
| + String nodeName = '${libraryNameIndex}_${unitNameIndex}.index'; |
| _nodeManager.removeNode(nodeName); |
| // remove source |
| _sources.remove(library); |