Found 1 error and 70 warnings.
90 | .transform(const LineSplitter()) |
Type check failed: const LineSplitter() (LineSplitter) is not of type StreamTransformer<String, dynamic> |
392 | m['errors'] == null |
393 | ? null |
394 | : m['errors'].map((obj) => AnalysisError.parse(obj)).toList()); |
Unsound implicit cast from dynamic to List<AnalysisError> |
414 | m['regions'] == null |
415 | ? null |
416 | : m['regions'].map((obj) => FoldingRegion.parse(obj)).toList()); |
Unsound implicit cast from dynamic to List<FoldingRegion> |
427 | m['regions'] == null |
428 | ? null |
429 | : m['regions'].map((obj) => HighlightRegion.parse(obj)).toList()); |
Unsound implicit cast from dynamic to List<HighlightRegion> |
440 | m['classes'] == null |
441 | ? null |
442 | : m['classes'].map((obj) => ImplementedClass.parse(obj)).toList(), |
Unsound implicit cast from dynamic to List<ImplementedClass> |
443 | m['members'] == null |
444 | ? null |
445 | : m['members'].map((obj) => ImplementedMember.parse(obj)).toList()); |
Unsound implicit cast from dynamic to List<ImplementedMember> |
469 | m['regions'] == null |
470 | ? null |
471 | : m['regions'].map((obj) => NavigationRegion.parse(obj)).toList(), |
Unsound implicit cast from dynamic to List<NavigationRegion> |
472 | m['targets'] == null |
473 | ? null |
474 | : m['targets'].map((obj) => NavigationTarget.parse(obj)).toList(), |
Unsound implicit cast from dynamic to List<NavigationTarget> |
488 | m['occurrences'] == null |
489 | ? null |
490 | : m['occurrences'].map((obj) => Occurrences.parse(obj)).toList()); |
Unsound implicit cast from dynamic to List<Occurrences> |
515 | m['overrides'] == null |
516 | ? null |
517 | : m['overrides'].map((obj) => Override.parse(obj)).toList()); |
Unsound implicit cast from dynamic to List<Override> |
526 | static ErrorsResult parse(Map m) => new ErrorsResult(m['errors'] == null |
527 | ? null |
528 | : m['errors'].map((obj) => AnalysisError.parse(obj)).toList()); |
Unsound implicit cast from dynamic to List<AnalysisError> |
536 | static HoverResult parse(Map m) => new HoverResult(m['hovers'] == null |
537 | ? null |
538 | : m['hovers'].map((obj) => HoverInformation.parse(obj)).toList()); |
Unsound implicit cast from dynamic to List<HoverInformation> |
546 | static ReachableSourcesResult parse(Map m) => new ReachableSourcesResult(m['sources']); |
Unsound implicit cast from dynamic to Map<String, List<String>> |
555 | m['libraries'] == null ? null : new List.from(m['libraries']), m['packageMap']); |
Unsound implicit cast from dynamic to Map<String, Map<String, List<String>>> |
566 | m['targets'] == null |
567 | ? null |
568 | : m['targets'].map((obj) => NavigationTarget.parse(obj)).toList(), |
Unsound implicit cast from dynamic to List<NavigationTarget> |
569 | m['regions'] == null |
570 | ? null |
571 | : m['regions'].map((obj) => NavigationRegion.parse(obj)).toList()); |
Unsound implicit cast from dynamic to List<NavigationRegion> |
601 | m['results'] == null |
602 | ? null |
603 | : m['results'].map((obj) => CompletionSuggestion.parse(obj)).toList(), |
Unsound implicit cast from dynamic to List<CompletionSuggestion> |
668 | m['results'] == null |
669 | ? null |
670 | : m['results'].map((obj) => SearchResult.parse(obj)).toList(), |
Unsound implicit cast from dynamic to List<SearchResult> |
721 | new TypeHierarchyResult(hierarchyItems: m['hierarchyItems'] == null |
722 | ? null |
723 | : m['hierarchyItems'].map((obj) => TypeHierarchyItem.parse(obj)).toList()); |
Unsound implicit cast from dynamic to List<TypeHierarchyItem> |
791 | m['edits'] == null ? null : m['edits'].map((obj) => SourceEdit.parse(obj)).toList(), |
Unsound implicit cast from dynamic to List<SourceEdit> |
803 | static AssistsResult parse(Map m) => new AssistsResult(m['assists'] == null |
804 | ? null |
805 | : m['assists'].map((obj) => SourceChange.parse(obj)).toList()); |
Unsound implicit cast from dynamic to List<SourceChange> |
822 | static FixesResult parse(Map m) => new FixesResult(m['fixes'] == null |
823 | ? null |
824 | : m['fixes'].map((obj) => AnalysisErrorFixes.parse(obj)).toList()); |
Unsound implicit cast from dynamic to List<AnalysisErrorFixes> |
833 | m['initialProblems'] == null |
834 | ? null |
835 | : m['initialProblems'].map((obj) => RefactoringProblem.parse(obj)).toList(), |
Unsound implicit cast from dynamic to List<RefactoringProblem> |
836 | m['optionsProblems'] == null |
837 | ? null |
838 | : m['optionsProblems'].map((obj) => RefactoringProblem.parse(obj)).toList(), |
Unsound implicit cast from dynamic to List<RefactoringProblem> |
839 | m['finalProblems'] == null |
840 | ? null |
841 | : m['finalProblems'].map((obj) => RefactoringProblem.parse(obj)).toList(), |
Unsound implicit cast from dynamic to List<RefactoringProblem> |
951 | static DiagnosticsResult parse(Map m) => new DiagnosticsResult(m['contexts'] == null |
952 | ? null |
953 | : m['contexts'].map((obj) => ContextData.parse(obj)).toList()); |
Unsound implicit cast from dynamic to List<ContextData> |
1023 | m['fixes'] == null |
1024 | ? null |
1025 | : m['fixes'].map((obj) => SourceChange.parse(obj)).toList()); |
Unsound implicit cast from dynamic to List<SourceChange> |
1105 | m['edits'] == null |
1106 | ? null |
1107 | : m['edits'].map((obj) => SourceEdit.parse(obj)).toList()); |
Unsound implicit cast from dynamic to List<SourceEdit> |
1355 | m['positions'] == null |
1356 | ? null |
1357 | : m['positions'].map((obj) => Position.parse(obj)).toList(), |
Unsound implicit cast from dynamic to List<Position> |
1359 | m['suggestions'] == null |
1360 | ? null |
1361 | : m['suggestions'].map((obj) => LinkedEditSuggestion.parse(obj)).toList()); |
Unsound implicit cast from dynamic to List<LinkedEditSuggestion> |
1476 | children: m['children'] == null |
1477 | ? null |
1478 | : m['children'].map((obj) => Outline.parse(obj)).toList()); |
Unsound implicit cast from dynamic to List<Outline> |
1495 | interfaceMembers: m['interfaceMembers'] == null |
1496 | ? null |
1497 | : m['interfaceMembers'].map((obj) => OverriddenMember.parse(obj)).toList()); |
Unsound implicit cast from dynamic to List<OverriddenMember> |
1599 | m['path'] == null ? null : m['path'].map((obj) => Element.parse(obj)).toList()); |
Unsound implicit cast from dynamic to List<Element> |
1618 | m['edits'] == null |
1619 | ? null |
1620 | : m['edits'].map((obj) => SourceFileEdit.parse(obj)).toList(), |
Unsound implicit cast from dynamic to List<SourceFileEdit> |
1621 | m['linkedEditGroups'] == null |
1622 | ? null |
1623 | : m['linkedEditGroups'].map((obj) => LinkedEditGroup.parse(obj)).toList(), |
Unsound implicit cast from dynamic to List<LinkedEditGroup> |
1666 | m['edits'] == null |
1667 | ? null |
1668 | : m['edits'].map((obj) => SourceEdit.parse(obj)).toList()); |
Unsound implicit cast from dynamic to List<SourceEdit> |
104 | _server.willSend = _willSend; |
Unsound implicit cast from Function to (String) → void |
381 | server.willSend = _willSend; |
Unsound implicit cast from Function to (String) → void |
598 | arguments.addAll(options); |
Unsound implicit cast from List<dynamic> to Iterable<String> |
36 | return _override.future; |
Unsound implicit cast from Future<dynamic> to Future<T> |
131 | f = getSuggestions(opts).then((List<Suggestion> suggestions) { |
132 | _logger.finer( |
133 | 'code completion in ${timer.elapsedMilliseconds}ms, ' |
134 | '${suggestions.length} results' |
135 | ); |
136 | return suggestions.map(suggestionToProxy).toList(); |
137 | }).catchError((error) { |
138 | _logger.warning('Error retrieving code completions: ${error}'); |
139 | return <Suggestion>[]; |
140 | }); |
Unsound implicit cast from Future<dynamic> to Future<List<JsObject>> |
175 | scopeDescriptor = options['scopeDescriptor']; |
Unsound implicit cast from dynamic to List<String> |
18 | List<String> requiredPackages = info['required-packages']; |
Unsound implicit cast from dynamic to List<String> |
148 | Map<String, dynamic> json = e.json['logRecord']; |
Unsound implicit cast from dynamic to Map<String, dynamic> |
153 | InstanceRef loggerName = InstanceRef.parse(json['loggerName']); |
Unsound implicit cast from dynamic to Map<String, dynamic> |
154 | InstanceRef message = InstanceRef.parse(json['message']); |
Unsound implicit cast from dynamic to Map<String, dynamic> |
837 | return isolate.service.getObject(isolate.id, result.id).then((result) { |
838 | if (result is Sentinel) { |
839 | return new SentinelDebugValue(result); |
840 | } else if (result is InstanceRef) { |
841 | return new ObservatoryInstanceRefValue(isolate, result); |
842 | } else if (result is Instance) { |
843 | return new ObservatoryInstanceRefValue.fromInstance(isolate, result); |
844 | } else if (result is ErrorRef) { |
845 | return new Future.error(result.message); |
846 | } else { |
847 | return new Future.error('unexpected result type: ${result}'); |
848 | } |
849 | }); |
The return type 'Future<Object>' is not a 'DebugValue', as defined by the method ''. |
854 | return new Future.error(result.message); |
The return type 'Future' is not a 'DebugValue', as defined by the method ''. |
856 | return new Future.error('unexpected result type: ${result}'); |
The return type 'Future' is not a 'DebugValue', as defined by the method ''. |
335 | return _listen('daemon.logMessage', LogMessage.parse); |
Unsound implicit cast from Stream<dynamic> to Stream<LogMessage> |
376 | return _listen('device.added', Device.parse); |
Unsound implicit cast from Stream<dynamic> to Stream<Device> |
380 | return _listen('device.removed', Device.parse); |
Unsound implicit cast from Stream<dynamic> to Stream<Device> |
384 | return _listen('device.changed', Device.parse); |
Unsound implicit cast from Stream<dynamic> to Stream<Device> |
56 | return _lastLaunch.launch(); |
The return type 'Future<Launch>' is not a 'Launch', as defined by the method ''. |
234 | if (errors == null) errors = deps[DartLinterConsumer].errors; |
Unsound implicit cast from dynamic to List<AnalysisError> |
375 | return _pathResolver?.resolve(url); |
The return type 'Future<String>' is not a 'String', as defined by the method ''. |
445 | return analysisServer.server.execution.mapUri(id, uri: url).then((MapUriResult result) { |
446 | if (result.file != null) return result.file; |
447 | }).catchError((_e) { |
448 | return null; |
449 | }); |
The return type 'Future' is not a 'String', as defined by the method ''. |
118 | _launchTimestamps = storedData; |
Unsound implicit cast from Map<dynamic, dynamic> to Map<String, int> |
179 | return data is Map ? data : <String, dynamic>{}; |
Unsound implicit cast from Object to Map<String, dynamic> |
217 | if (val is List) return val; |
Unsound implicit cast from List<dynamic> to List<String> |
137 | if (sort != null) modelObjects.sort(sort); |
Unsound implicit cast from (dynamic, dynamic) → int to (T, T) → int |
199 | _addCmd('atom-workspace', 'dartino:create-new-proj', dartino.createNewProject); |
Unsound implicit cast from ([dynamic]) → Future<dynamic> to (AtomEvent) → void |
199 | _addCmd('atom-workspace', 'dartino:create-new-proj', dartino.createNewProject); |
The argument type '([dynamic]) → Future<dynamic>' cannot be assigned to the parameter type '(AtomEvent) → void'. |
200 | _addCmd('atom-workspace', 'dartino:create-new-project', dartino.createNewProject); |
Unsound implicit cast from ([dynamic]) → Future<dynamic> to (AtomEvent) → void |
200 | _addCmd('atom-workspace', 'dartino:create-new-project', dartino.createNewProject); |
The argument type '([dynamic]) → Future<dynamic>' cannot be assigned to the parameter type '(AtomEvent) → void'. |
220 | element.generatedId = BlockSyntax.generateAnchorHash(element); |
The setter 'generatedId' is not defined for the class 'Node'. |
246 | element.generatedId = BlockSyntax.generateAnchorHash(element); |
The setter 'generatedId' is not defined for the class 'Node'. |
26 | ..addAll(this.extensionSet.blockSyntaxes); |
Unsound implicit cast from List<dynamic> to Iterable<BlockSyntax> |
29 | ..addAll(this.extensionSet.inlineSyntaxes); |
Unsound implicit cast from List<dynamic> to Iterable<InlineSyntax> |
394 | var alt = element.children.map((e) => e is! Text ? "" : e.text).join(" "); |
The getter 'text' is not defined for the class 'Node'. |
152 | children, firstEvent.span, firstEvent.style); |
Unsound implicit cast from Map<dynamic, dynamic> to Map<dynamic, YamlNode> |