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

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

Issue 250823006: Translate parts of engine.services project. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 creation.getConstructorName().setName(newIdentifier); 595 creation.getConstructorName().setName(newIdentifier);
596 } 596 }
597 } 597 }
598 } 598 }
599 } 599 }
600 600
601 /** 601 /**
602 * Sets the {@link SimpleIdentifier} name and updates all references. 602 * Sets the {@link SimpleIdentifier} name and updates all references.
603 */ 603 */
604 public void renameIdentifier(SimpleIdentifier declarationIdentifier, String ne wName) { 604 public void renameIdentifier(SimpleIdentifier declarationIdentifier, String ne wName) {
605 if (declarationIdentifier.getName().equals("rangeStartEnd5")) {
606 System.out.println("zzzzzzzzz");
Brian Wilkerson 2014/04/26 17:04:52 Is this debugging code that needs to be deleted?
scheglov 2014/04/26 18:02:15 Done.
607 }
605 // move identifiers to the new signature 608 // move identifiers to the new signature
606 Object binding = nodeToBinding.get(declarationIdentifier); 609 Object binding = nodeToBinding.get(declarationIdentifier);
607 List<SimpleIdentifier> identifiers = bindingToIdentifiers.get(binding); 610 List<SimpleIdentifier> identifiers = bindingToIdentifiers.get(binding);
608 // update identifiers to the new name 611 // update identifiers to the new name
609 for (SimpleIdentifier identifier : identifiers) { 612 for (SimpleIdentifier identifier : identifiers) {
610 identifier.setToken(token(TokenType.IDENTIFIER, newName)); 613 identifier.setToken(token(TokenType.IDENTIFIER, newName));
611 } 614 }
612 } 615 }
613 616
614 public CompilationUnit translate() throws Exception { 617 public CompilationUnit translate() throws Exception {
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
1058 } 1061 }
1059 } 1062 }
1060 } 1063 }
1061 } 1064 }
1062 } 1065 }
1063 } 1066 }
1064 } 1067 }
1065 }); 1068 });
1066 } 1069 }
1067 } 1070 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698