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 |
11 * or implied. See the License for the specific language governing permissions a
nd limitations under | 11 * or implied. See the License for the specific language governing permissions a
nd limitations under |
12 * the License. | 12 * the License. |
13 */ | 13 */ |
14 package com.google.dart.engine.internal.resolver; | 14 package com.google.dart.engine.internal.resolver; |
15 | 15 |
16 import com.google.dart.engine.type.InterfaceType; | 16 import com.google.dart.engine.type.InterfaceType; |
17 import com.google.dart.engine.type.Type; | 17 import com.google.dart.engine.type.Type; |
18 | 18 |
19 /** | 19 /** |
20 * The interface {@code TypeProvider} defines the behavior of objects that provi
de access to types | 20 * The interface {@code TypeProvider} defines the behavior of objects that provi
de access to types |
21 * defined by the language. | 21 * defined by the language. |
22 * | 22 * |
23 * @coverage dart.engine.resolver | 23 * @coverage dart.engine.resolver |
24 */ | 24 */ |
25 public interface TypeProvider { | 25 public interface TypeProvider { |
26 /** | 26 /** |
27 * Return the type representing the built-in type 'Null'. | |
28 * | |
29 * @return the type representing the built-in type 'null' | |
30 */ | |
31 public InterfaceType getNullType(); | |
32 | |
33 /** | |
34 * Return the type representing the built-in type 'bool'. | 27 * Return the type representing the built-in type 'bool'. |
35 * | 28 * |
36 * @return the type representing the built-in type 'bool' | 29 * @return the type representing the built-in type 'bool' |
37 */ | 30 */ |
38 public InterfaceType getBoolType(); | 31 public InterfaceType getBoolType(); |
39 | 32 |
40 /** | 33 /** |
41 * Return the type representing the type 'bottom'. | 34 * Return the type representing the type 'bottom'. |
42 * | 35 * |
43 * @return the type representing the type 'bottom' | 36 * @return the type representing the type 'bottom' |
44 */ | 37 */ |
45 public Type getBottomType(); | 38 public Type getBottomType(); |
46 | 39 |
47 /** | 40 /** |
| 41 * Return the type representing the built-in type 'Deprecated'. |
| 42 * |
| 43 * @return the type representing the built-in type 'Deprecated' |
| 44 */ |
| 45 public InterfaceType getDeprecatedType(); |
| 46 |
| 47 /** |
48 * Return the type representing the built-in type 'double'. | 48 * Return the type representing the built-in type 'double'. |
49 * | 49 * |
50 * @return the type representing the built-in type 'double' | 50 * @return the type representing the built-in type 'double' |
51 */ | 51 */ |
52 public InterfaceType getDoubleType(); | 52 public InterfaceType getDoubleType(); |
53 | 53 |
54 /** | 54 /** |
55 * Return the type representing the built-in type 'dynamic'. | 55 * Return the type representing the built-in type 'dynamic'. |
56 * | 56 * |
57 * @return the type representing the built-in type 'dynamic' | 57 * @return the type representing the built-in type 'dynamic' |
58 */ | 58 */ |
59 public Type getDynamicType(); | 59 public Type getDynamicType(); |
60 | 60 |
61 /** | 61 /** |
62 * Return the type representing the built-in type 'Function'. | 62 * Return the type representing the built-in type 'Function'. |
63 * | 63 * |
64 * @return the type representing the built-in type 'Function' | 64 * @return the type representing the built-in type 'Function' |
65 */ | 65 */ |
66 public InterfaceType getFunctionType(); | 66 public InterfaceType getFunctionType(); |
67 | 67 |
68 /** | 68 /** |
69 * Return the type representing the built-in type 'int'. | 69 * Return the type representing the built-in type 'int'. |
70 * | 70 * |
71 * @return the type representing the built-in type 'int' | 71 * @return the type representing the built-in type 'int' |
72 */ | 72 */ |
73 public InterfaceType getIntType(); | 73 public InterfaceType getIntType(); |
74 | 74 |
75 /** | 75 /** |
76 * Return the type representing the built-in type 'List'. | 76 * Return the type representing the built-in type 'List'. |
77 * | 77 * |
78 * @return the type representing the built-in type 'List' | 78 * @return the type representing the built-in type 'List' |
79 */ | 79 */ |
80 public InterfaceType getListType(); | 80 public InterfaceType getListType(); |
81 | 81 |
82 /** | 82 /** |
83 * Return the type representing the built-in type 'Map'. | 83 * Return the type representing the built-in type 'Map'. |
84 * | 84 * |
85 * @return the type representing the built-in type 'Map' | 85 * @return the type representing the built-in type 'Map' |
86 */ | 86 */ |
87 public InterfaceType getMapType(); | 87 public InterfaceType getMapType(); |
88 | 88 |
89 /** | 89 /** |
| 90 * Return the type representing the built-in type 'Null'. |
| 91 * |
| 92 * @return the type representing the built-in type 'null' |
| 93 */ |
| 94 public InterfaceType getNullType(); |
| 95 |
| 96 /** |
90 * Return the type representing the built-in type 'num'. | 97 * Return the type representing the built-in type 'num'. |
91 * | 98 * |
92 * @return the type representing the built-in type 'num' | 99 * @return the type representing the built-in type 'num' |
93 */ | 100 */ |
94 public InterfaceType getNumType(); | 101 public InterfaceType getNumType(); |
95 | 102 |
96 /** | 103 /** |
97 * Return the type representing the built-in type 'Object'. | 104 * Return the type representing the built-in type 'Object'. |
98 * | 105 * |
99 * @return the type representing the built-in type 'Object' | 106 * @return the type representing the built-in type 'Object' |
100 */ | 107 */ |
101 public InterfaceType getObjectType(); | 108 public InterfaceType getObjectType(); |
102 | 109 |
103 /** | 110 /** |
104 * Return the type representing the built-in type 'StackTrace'. | 111 * Return the type representing the built-in type 'StackTrace'. |
105 * | 112 * |
106 * @return the type representing the built-in type 'StackTrace' | 113 * @return the type representing the built-in type 'StackTrace' |
107 */ | 114 */ |
108 public InterfaceType getStackTraceType(); | 115 public InterfaceType getStackTraceType(); |
109 | 116 |
110 /** | 117 /** |
111 * Return the type representing the built-in type 'String'. | 118 * Return the type representing the built-in type 'String'. |
112 * | 119 * |
113 * @return the type representing the built-in type 'String' | 120 * @return the type representing the built-in type 'String' |
114 */ | 121 */ |
115 public InterfaceType getStringType(); | 122 public InterfaceType getStringType(); |
116 | 123 |
117 /** | 124 /** |
118 * Return the type representing the built-in type 'Symbol'. | 125 * Return the type representing the built-in type 'Symbol'. |
119 * | 126 * |
120 * @return the type representing the built-in type 'Symbol' | 127 * @return the type representing the built-in type 'Symbol' |
121 */ | 128 */ |
122 public InterfaceType getSymbolType(); | 129 public InterfaceType getSymbolType(); |
123 | 130 |
124 /** | 131 /** |
125 * Return the type representing the built-in type 'Type'. | 132 * Return the type representing the built-in type 'Type'. |
126 * | 133 * |
127 * @return the type representing the built-in type 'Type' | 134 * @return the type representing the built-in type 'Type' |
128 */ | 135 */ |
129 public InterfaceType getTypeType(); | 136 public InterfaceType getTypeType(); |
130 } | 137 } |
OLD | NEW |