OLD | NEW |
1 // This code was auto-generated, is not intended to be edited, and is subject to | 1 // This code was auto-generated, is not intended to be edited, and is subject to |
2 // significant change. Please see the README file for more information. | 2 // significant change. Please see the README file for more information. |
3 | 3 |
4 library engine.error; | 4 library engine.error; |
5 | 5 |
6 import 'java_core.dart'; | 6 import 'java_core.dart'; |
7 import 'source.dart'; | 7 import 'source.dart'; |
8 | 8 |
9 /** | 9 /** |
10 * Instances of the enumeration {@code ErrorType} represent the type of an {@lin
k ErrorCode}. | 10 * Instances of the enumeration {@code ErrorType} represent the type of an {@lin
k ErrorCode}. |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 * compilation error. | 142 * compilation error. |
143 */ | 143 */ |
144 int _length = 0; | 144 int _length = 0; |
145 /** | 145 /** |
146 * Initialize a newly created analysis error for the specified source. The err
or has no location | 146 * Initialize a newly created analysis error for the specified source. The err
or has no location |
147 * information. | 147 * information. |
148 * @param source the source for which the exception occurred | 148 * @param source the source for which the exception occurred |
149 * @param errorCode the error code to be associated with this error | 149 * @param errorCode the error code to be associated with this error |
150 * @param arguments the arguments used to build the error message | 150 * @param arguments the arguments used to build the error message |
151 */ | 151 */ |
152 AnalysisError.con1(Source source, ErrorCode errorCode, List<Object> arguments)
{ | 152 AnalysisError.con1(Source source2, ErrorCode errorCode2, List<Object> argument
s) { |
153 _jtd_constructor_117_impl(source, errorCode, arguments); | 153 _jtd_constructor_122_impl(source2, errorCode2, arguments); |
154 } | 154 } |
155 _jtd_constructor_117_impl(Source source, ErrorCode errorCode, List<Object> arg
uments) { | 155 _jtd_constructor_122_impl(Source source2, ErrorCode errorCode2, List<Object> a
rguments) { |
156 this._source = source; | 156 this._source = source2; |
157 this._errorCode = errorCode; | 157 this._errorCode = errorCode2; |
158 this._message = JavaString.format(errorCode.message, arguments); | 158 this._message = JavaString.format(errorCode2.message, arguments); |
159 } | 159 } |
160 /** | 160 /** |
161 * Initialize a newly created analysis error for the specified source at the g
iven location. | 161 * Initialize a newly created analysis error for the specified source at the g
iven location. |
162 * @param source the source for which the exception occurred | 162 * @param source the source for which the exception occurred |
163 * @param offset the offset of the location of the error | 163 * @param offset the offset of the location of the error |
164 * @param length the length of the location of the error | 164 * @param length the length of the location of the error |
165 * @param errorCode the error code to be associated with this error | 165 * @param errorCode the error code to be associated with this error |
166 * @param arguments the arguments used to build the error message | 166 * @param arguments the arguments used to build the error message |
167 */ | 167 */ |
168 AnalysisError.con2(Source source, int offset, int length, ErrorCode errorCode,
List<Object> arguments) { | 168 AnalysisError.con2(Source source3, int offset2, int length11, ErrorCode errorC
ode3, List<Object> arguments) { |
169 _jtd_constructor_118_impl(source, offset, length, errorCode, arguments); | 169 _jtd_constructor_123_impl(source3, offset2, length11, errorCode3, arguments)
; |
170 } | 170 } |
171 _jtd_constructor_118_impl(Source source, int offset, int length, ErrorCode err
orCode, List<Object> arguments) { | 171 _jtd_constructor_123_impl(Source source3, int offset2, int length11, ErrorCode
errorCode3, List<Object> arguments) { |
172 this._source = source; | 172 this._source = source3; |
173 this._offset = offset; | 173 this._offset = offset2; |
174 this._length = length; | 174 this._length = length11; |
175 this._errorCode = errorCode; | 175 this._errorCode = errorCode3; |
176 this._message = JavaString.format(errorCode.message, arguments); | 176 this._message = JavaString.format(errorCode3.message, arguments); |
177 } | 177 } |
178 /** | 178 /** |
179 * Return the error code associated with the error. | 179 * Return the error code associated with the error. |
180 * @return the error code associated with the error | 180 * @return the error code associated with the error |
181 */ | 181 */ |
182 ErrorCode get errorCode => _errorCode; | 182 ErrorCode get errorCode => _errorCode; |
183 /** | 183 /** |
184 * Return the number of characters from the offset to the end of the source wh
ich encompasses the | 184 * Return the number of characters from the offset to the end of the source wh
ich encompasses the |
185 * compilation error. | 185 * compilation error. |
186 * @return the length of the error location | 186 * @return the length of the error location |
(...skipping 18 matching lines...) Expand all Loading... |
205 int get hashCode { | 205 int get hashCode { |
206 int hashCode = _offset; | 206 int hashCode = _offset; |
207 hashCode ^= (_message != null) ? _message.hashCode : 0; | 207 hashCode ^= (_message != null) ? _message.hashCode : 0; |
208 hashCode ^= (_source != null) ? _source.hashCode : 0; | 208 hashCode ^= (_source != null) ? _source.hashCode : 0; |
209 return hashCode; | 209 return hashCode; |
210 } | 210 } |
211 /** | 211 /** |
212 * Set the source in which the error occurred to the given source. | 212 * Set the source in which the error occurred to the given source. |
213 * @param source the source in which the error occurred | 213 * @param source the source in which the error occurred |
214 */ | 214 */ |
215 void set source2(Source source) { | 215 void set source(Source source4) { |
216 this._source = source; | 216 this._source = source4; |
217 } | 217 } |
218 String toString() { | 218 String toString() { |
219 StringBuffer builder = new StringBuffer(); | 219 StringBuffer builder = new StringBuffer(); |
220 builder.add((_source != null) ? _source.fullName : "<unknown source>"); | 220 builder.add((_source != null) ? _source.fullName : "<unknown source>"); |
221 builder.add("("); | 221 builder.add("("); |
222 builder.add(_offset); | 222 builder.add(_offset); |
223 builder.add(".."); | 223 builder.add(".."); |
224 builder.add(_offset + _length - 1); | 224 builder.add(_offset + _length - 1); |
225 builder.add("): "); | 225 builder.add("): "); |
226 builder.add(_message); | 226 builder.add(_message); |
227 return builder.toString(); | 227 return builder.toString(); |
228 } | 228 } |
229 } | 229 } |
OLD | NEW |