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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/LibraryElementImpl.java

Issue 247053004: New analyzer snapshot. (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 side-by-side diff with in-line comments
Download patch
Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/LibraryElementImpl.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/LibraryElementImpl.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/LibraryElementImpl.java
index 59c4d77cc448a8d3c36b31f406bd2d9cad0badcd..ab5140104d67b3fdf7024458182e45ef9e746c36 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/LibraryElementImpl.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/LibraryElementImpl.java
@@ -16,7 +16,6 @@ package com.google.dart.engine.internal.element;
import com.google.common.collect.Sets;
import com.google.dart.engine.AnalysisEngine;
import com.google.dart.engine.ast.LibraryIdentifier;
-import com.google.dart.engine.ast.SimpleIdentifier;
import com.google.dart.engine.context.AnalysisContext;
import com.google.dart.engine.context.AnalysisException;
import com.google.dart.engine.element.ClassElement;
@@ -31,8 +30,6 @@ import com.google.dart.engine.element.PrefixElement;
import com.google.dart.engine.internal.type.DynamicTypeImpl;
import com.google.dart.engine.internal.type.FunctionTypeImpl;
import com.google.dart.engine.internal.type.VoidTypeImpl;
-import com.google.dart.engine.scanner.SyntheticStringToken;
-import com.google.dart.engine.scanner.TokenType;
import com.google.dart.engine.sdk.DartSdk;
import com.google.dart.engine.source.Source;
import com.google.dart.engine.type.InterfaceType;
@@ -260,8 +257,7 @@ public class LibraryElementImpl extends ElementImpl implements LibraryElement {
@Override
public FunctionElement getLoadLibraryFunction() {
if (loadLibraryFunction == null) {
- FunctionElementImpl function = new FunctionElementImpl(new SimpleIdentifier(
- new SyntheticStringToken(TokenType.IDENTIFIER, FunctionElement.LOAD_LIBRARY_NAME, -1)));
+ FunctionElementImpl function = new FunctionElementImpl(FunctionElement.LOAD_LIBRARY_NAME, -1);
function.setSynthetic(true);
function.setEnclosingElement(this);
function.setReturnType(getLoadLibraryReturnType());

Powered by Google App Engine
This is Rietveld 408576698