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

Side by Side Diff: editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/Context.java

Issue 23461019: New analyzer_experimental snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012, the Dart project authors. 2 * Copyright (c) 2012, the Dart project authors.
3 * 3 *
4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u se this file except 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u se this file except
5 * in compliance with the License. You may obtain a copy of the License at 5 * in compliance with the License. You may obtain a copy of the License at
6 * 6 *
7 * http://www.eclipse.org/legal/epl-v10.html 7 * http://www.eclipse.org/legal/epl-v10.html
8 * 8 *
9 * Unless required by applicable law or agreed to in writing, software distribut ed under the License 9 * Unless required by applicable law or agreed to in writing, software distribut ed under the License
10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K IND, either express 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K IND, either express
(...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after
1028 while (true) { 1028 while (true) {
1029 name = "con" + index++; 1029 name = "con" + index++;
1030 if (!memberNamesInClass.contains(name)) { 1030 if (!memberNamesInClass.contains(name)) {
1031 break; 1031 break;
1032 } 1032 }
1033 } 1033 }
1034 } 1034 }
1035 } 1035 }
1036 memberNamesInClass.add(name); 1036 memberNamesInClass.add(name);
1037 // apply name 1037 // apply name
1038 if ("<empty>".equals(name)) {
1039 name = null;
1040 }
1038 renameConstructor(node, name); 1041 renameConstructor(node, name);
1039 // continue 1042 // continue
1040 return super.visitConstructorDeclaration(node); 1043 return super.visitConstructorDeclaration(node);
1041 } 1044 }
1042 }); 1045 });
1043 } 1046 }
1044 1047
1045 private void replaceInnerClassReferences(CompilationUnit unit) { 1048 private void replaceInnerClassReferences(CompilationUnit unit) {
1046 for (SimpleIdentifier identifier : innerClassNames) { 1049 for (SimpleIdentifier identifier : innerClassNames) {
1047 renameIdentifier(identifier, identifier.getName()); 1050 renameIdentifier(identifier, identifier.getName());
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
1113 } 1116 }
1114 } 1117 }
1115 } 1118 }
1116 } 1119 }
1117 } 1120 }
1118 } 1121 }
1119 } 1122 }
1120 }); 1123 });
1121 } 1124 }
1122 } 1125 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698