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

Unified Diff: dart/compiler/java/com/google/dart/compiler/type/DynamicTypeImplementation.java

Issue 20722006: Removed compiler/ directory from repository (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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
Index: dart/compiler/java/com/google/dart/compiler/type/DynamicTypeImplementation.java
diff --git a/dart/compiler/java/com/google/dart/compiler/type/DynamicTypeImplementation.java b/dart/compiler/java/com/google/dart/compiler/type/DynamicTypeImplementation.java
deleted file mode 100644
index f439eef6b76150fa99e1e3951fde3d5ed61650a9..0000000000000000000000000000000000000000
--- a/dart/compiler/java/com/google/dart/compiler/type/DynamicTypeImplementation.java
+++ /dev/null
@@ -1,151 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-package com.google.dart.compiler.type;
-
-import com.google.common.collect.Lists;
-import com.google.dart.compiler.resolver.ClassElement;
-import com.google.dart.compiler.resolver.DynamicElement;
-import com.google.dart.compiler.resolver.Element;
-import com.google.dart.compiler.resolver.Elements;
-
-import java.util.Collections;
-import java.util.List;
-import java.util.Map;
-
-/**
- * Type of untyped expressions.
- */
-class DynamicTypeImplementation extends AbstractType implements DynamicType {
-
- @Override
- public DynamicTypeImplementation subst(List<Type> arguments,
- List<Type> parameters) {
- return this;
- }
-
- @Override
- public DynamicElement getElement() {
- return Elements.dynamicElement();
- }
-
- @Override
- public DynamicElement getTypeVariableElement() {
- return getElement();
- }
-
- @Override
- public String toString() {
- return "dynamic";
- }
-
- @Override
- public boolean equals(Object obj) {
- return obj instanceof DynamicType;
- }
-
- @Override
- public int hashCode() {
- return DynamicType.class.hashCode();
- }
-
- @Override
- public List<Type> getArguments() {
- return Collections.<Type>emptyList();
- }
-
- @Override
- public boolean isRaw() {
- return false;
- }
-
- @Override
- public boolean hasDynamicTypeArgs() {
- return false;
- }
-
- @Override
- public DynamicType asRawType() {
- return this;
- }
-
- @Override
- public TypeKind getKind() {
- return TypeKind.DYNAMIC;
- }
-
- @Override
- public Type getReturnType() {
- return this;
- }
-
- @Override
- public List<Type> getParameterTypes() {
- return Collections.emptyList();
- }
-
- @Override
- public Member lookupMember(String name) {
- return new Member() {
-
- @Override
- public Type getGetterType() {
- return DynamicTypeImplementation.this;
- }
-
- @Override
- public Type getSetterType() {
- return DynamicTypeImplementation.this;
- }
-
- @Override
- public Type getType() {
- return DynamicTypeImplementation.this;
- }
-
- @Override
- public InterfaceType getHolder() {
- return DynamicTypeImplementation.this;
- }
-
- @Override
- public Element getElement() {
- return Elements.dynamicElement();
- }
- };
- }
-
- @Override
- public Type getRest() {
- return null;
- }
-
- @Override
- public boolean hasRest() {
- return false;
- }
-
- @Override
- public Map<String, Type> getOptionalParameterTypes() {
- return null;
- }
-
- @Override
- public Map<String, Type> getNamedParameterTypes() {
- return null;
- }
-
- @Override
- public void registerSubClass(ClassElement subClass) {
- }
-
- @Override
- public void unregisterSubClass(ClassElement subClass) {
- }
-
- @Override
- public List<Member> lookupSubTypeMembers(String name) {
- return Lists.newArrayList();
- }
-}

Powered by Google App Engine
This is Rietveld 408576698