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

Unified Diff: pkg/compiler/lib/src/typechecker.dart

Issue 2132383002: Renamed isParameter to isRegularParameter. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Review response Created 4 years, 5 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
« no previous file with comments | « pkg/compiler/lib/src/ssa/builder.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/typechecker.dart
diff --git a/pkg/compiler/lib/src/typechecker.dart b/pkg/compiler/lib/src/typechecker.dart
index 69137ab1fe80fdf67cc45060b05385a93e3a9f9c..aeedfa6c53fc6da0e97a3e78eb324618913820b7 100644
--- a/pkg/compiler/lib/src/typechecker.dart
+++ b/pkg/compiler/lib/src/typechecker.dart
@@ -683,7 +683,7 @@ class TypeCheckerVisitor extends Visitor<DartType> {
assert(invariant(
node,
element.isVariable ||
- element.isParameter ||
+ element.isRegularParameter ||
element.isField ||
(element.isInitializingFormal &&
compiler.options.enableInitializingFormalAccess),
@@ -772,7 +772,7 @@ class TypeCheckerVisitor extends Visitor<DartType> {
}
if (receiverElement != null &&
(receiverElement.isVariable ||
- receiverElement.isParameter ||
+ receiverElement.isRegularParameter ||
(receiverElement.isInitializingFormal &&
compiler.options.enableInitializingFormalAccess))) {
Link<TypePromotion> typePromotions = typePromotionsMap[receiverElement];
@@ -1070,7 +1070,7 @@ class TypeCheckerVisitor extends Visitor<DartType> {
// foo() where foo is a method in the same class.
return createResolvedAccess(node, name, element);
} else if (element.isVariable ||
- element.isParameter ||
+ element.isRegularParameter ||
element.isField ||
element.isInitializingFormal) {
// foo() where foo is a field in the same class.
@@ -1091,7 +1091,7 @@ class TypeCheckerVisitor extends Visitor<DartType> {
ElementAccess createPromotedAccess(Element element) {
if (element.isVariable ||
- element.isParameter ||
+ element.isRegularParameter ||
(element.isInitializingFormal &&
compiler.options.enableInitializingFormalAccess)) {
TypePromotion typePromotion = getKnownTypePromotion(element);
@@ -1230,7 +1230,7 @@ class TypeCheckerVisitor extends Visitor<DartType> {
if (variable != null &&
(variable.isVariable ||
- variable.isParameter ||
+ variable.isRegularParameter ||
(variable.isInitializingFormal &&
compiler.options.enableInitializingFormalAccess))) {
DartType knownType = getKnownType(variable);
« no previous file with comments | « pkg/compiler/lib/src/ssa/builder.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698