| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013, the Dart project authors. | 2 * Copyright (c) 2013, 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 * The type representing the type 'bottom'. | 47 * The type representing the type 'bottom'. |
| 48 */ | 48 */ |
| 49 private Type bottomType; | 49 private Type bottomType; |
| 50 | 50 |
| 51 /** | 51 /** |
| 52 * The type representing the built-in type 'double'. | 52 * The type representing the built-in type 'double'. |
| 53 */ | 53 */ |
| 54 private InterfaceType doubleType; | 54 private InterfaceType doubleType; |
| 55 | 55 |
| 56 /** | 56 /** |
| 57 * The type representing the built-in type 'deprecated'. |
| 58 */ |
| 59 private InterfaceType deprecatedType; |
| 60 |
| 61 /** |
| 57 * The type representing the built-in type 'dynamic'. | 62 * The type representing the built-in type 'dynamic'. |
| 58 */ | 63 */ |
| 59 private Type dynamicType; | 64 private Type dynamicType; |
| 60 | 65 |
| 61 /** | 66 /** |
| 62 * The type representing the built-in type 'Function'. | 67 * The type representing the built-in type 'Function'. |
| 63 */ | 68 */ |
| 64 private InterfaceType functionType; | 69 private InterfaceType functionType; |
| 65 | 70 |
| 66 /** | 71 /** |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 146 |
| 142 @Override | 147 @Override |
| 143 public Type getBottomType() { | 148 public Type getBottomType() { |
| 144 if (bottomType == null) { | 149 if (bottomType == null) { |
| 145 bottomType = BottomTypeImpl.getInstance(); | 150 bottomType = BottomTypeImpl.getInstance(); |
| 146 } | 151 } |
| 147 return bottomType; | 152 return bottomType; |
| 148 } | 153 } |
| 149 | 154 |
| 150 @Override | 155 @Override |
| 156 public InterfaceType getDeprecatedType() { |
| 157 if (deprecatedType == null) { |
| 158 ClassElementImpl deprecatedElement = classElement("Deprecated"); |
| 159 deprecatedElement.setConstructors(new ConstructorElement[] {constructorEle
ment( |
| 160 deprecatedElement, |
| 161 null, |
| 162 true, |
| 163 getStringType())}); |
| 164 deprecatedType = deprecatedElement.getType(); |
| 165 } |
| 166 return deprecatedType; |
| 167 } |
| 168 |
| 169 @Override |
| 151 public InterfaceType getDoubleType() { | 170 public InterfaceType getDoubleType() { |
| 152 if (doubleType == null) { | 171 if (doubleType == null) { |
| 153 initializeNumericTypes(); | 172 initializeNumericTypes(); |
| 154 } | 173 } |
| 155 return doubleType; | 174 return doubleType; |
| 156 } | 175 } |
| 157 | 176 |
| 158 @Override | 177 @Override |
| 159 public Type getDynamicType() { | 178 public Type getDynamicType() { |
| 160 if (dynamicType == null) { | 179 if (dynamicType == null) { |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 for (MethodElement method : classElement.getMethods()) { | 429 for (MethodElement method : classElement.getMethods()) { |
| 411 FunctionTypeImpl functionType = (FunctionTypeImpl) method.getType(); | 430 FunctionTypeImpl functionType = (FunctionTypeImpl) method.getType(); |
| 412 functionType.setTypeArguments(typeArguments); | 431 functionType.setTypeArguments(typeArguments); |
| 413 } | 432 } |
| 414 for (ConstructorElement constructor : classElement.getConstructors()) { | 433 for (ConstructorElement constructor : classElement.getConstructors()) { |
| 415 FunctionTypeImpl functionType = (FunctionTypeImpl) constructor.getType(); | 434 FunctionTypeImpl functionType = (FunctionTypeImpl) constructor.getType(); |
| 416 functionType.setTypeArguments(typeArguments); | 435 functionType.setTypeArguments(typeArguments); |
| 417 } | 436 } |
| 418 } | 437 } |
| 419 } | 438 } |
| OLD | NEW |