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

Side by Side Diff: pkg/analyzer/lib/src/generated/resolver.dart

Issue 1567243002: Fix computation of documentationComment for class type aliases. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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 | pkg/analyzer/test/generated/non_error_resolver_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 library analyzer.src.generated.resolver; 5 library analyzer.src.generated.resolver;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/dart/element/element.dart'; 9 import 'package:analyzer/dart/element/element.dart';
10 import 'package:analyzer/dart/element/type.dart'; 10 import 'package:analyzer/dart/element/type.dart';
(...skipping 2737 matching lines...) Expand 10 before | Expand all | Expand 10 after
2748 SimpleIdentifier className = node.name; 2748 SimpleIdentifier className = node.name;
2749 ClassElementImpl element = new ClassElementImpl.forNode(className); 2749 ClassElementImpl element = new ClassElementImpl.forNode(className);
2750 element.abstract = node.abstractKeyword != null; 2750 element.abstract = node.abstractKeyword != null;
2751 element.mixinApplication = true; 2751 element.mixinApplication = true;
2752 List<TypeParameterElement> typeParameters = holder.typeParameters; 2752 List<TypeParameterElement> typeParameters = holder.typeParameters;
2753 element.typeParameters = typeParameters; 2753 element.typeParameters = typeParameters;
2754 List<DartType> typeArguments = _createTypeParameterTypes(typeParameters); 2754 List<DartType> typeArguments = _createTypeParameterTypes(typeParameters);
2755 InterfaceTypeImpl interfaceType = new InterfaceTypeImpl(element); 2755 InterfaceTypeImpl interfaceType = new InterfaceTypeImpl(element);
2756 interfaceType.typeArguments = typeArguments; 2756 interfaceType.typeArguments = typeArguments;
2757 element.type = interfaceType; 2757 element.type = interfaceType;
2758 _setDoc(element, node);
2758 _currentHolder.addType(element); 2759 _currentHolder.addType(element);
2759 className.staticElement = element; 2760 className.staticElement = element;
2760 holder.validate(); 2761 holder.validate();
2761 return null; 2762 return null;
2762 } 2763 }
2763 2764
2764 @override 2765 @override
2765 Object visitConstructorDeclaration(ConstructorDeclaration node) { 2766 Object visitConstructorDeclaration(ConstructorDeclaration node) {
2766 _isValidMixin = false; 2767 _isValidMixin = false;
2767 ElementHolder holder = new ElementHolder(); 2768 ElementHolder holder = new ElementHolder();
(...skipping 10760 matching lines...) Expand 10 before | Expand all | Expand 10 after
13528 nonFields.add(node); 13529 nonFields.add(node);
13529 return null; 13530 return null;
13530 } 13531 }
13531 13532
13532 @override 13533 @override
13533 Object visitNode(AstNode node) => node.accept(TypeResolverVisitor_this); 13534 Object visitNode(AstNode node) => node.accept(TypeResolverVisitor_this);
13534 13535
13535 @override 13536 @override
13536 Object visitWithClause(WithClause node) => null; 13537 Object visitWithClause(WithClause node) => null;
13537 } 13538 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/non_error_resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698