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.ast; | 4 library engine.ast; |
5 | 5 |
6 import 'dart:collection'; | 6 import 'dart:collection'; |
7 import 'java_core.dart'; | 7 import 'java_core.dart'; |
8 import 'java_engine.dart'; | 8 import 'java_engine.dart'; |
9 import 'error.dart'; | 9 import 'error.dart'; |
10 import 'scanner.dart'; | 10 import 'scanner.dart'; |
(...skipping 2390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2401 * been resolved | 2401 * been resolved |
2402 */ | 2402 */ |
2403 List<AnalysisError> get errors { | 2403 List<AnalysisError> get errors { |
2404 List<AnalysisError> parserErrors = parsingErrors; | 2404 List<AnalysisError> parserErrors = parsingErrors; |
2405 List<AnalysisError> resolverErrors = resolutionErrors; | 2405 List<AnalysisError> resolverErrors = resolutionErrors; |
2406 if (resolverErrors.length == 0) { | 2406 if (resolverErrors.length == 0) { |
2407 return parserErrors; | 2407 return parserErrors; |
2408 } else if (parserErrors.length == 0) { | 2408 } else if (parserErrors.length == 0) { |
2409 return resolverErrors; | 2409 return resolverErrors; |
2410 } else { | 2410 } else { |
2411 List<AnalysisError> allErrors = new List<AnalysisError>.fixedLength(parser
Errors.length + resolverErrors.length); | 2411 List<AnalysisError> allErrors = new List<AnalysisError>(parserErrors.lengt
h + resolverErrors.length); |
2412 System.arraycopy(parserErrors, 0, allErrors, 0, parserErrors.length); | 2412 System.arraycopy(parserErrors, 0, allErrors, 0, parserErrors.length); |
2413 System.arraycopy(resolverErrors, 0, allErrors, parserErrors.length, resolv
erErrors.length); | 2413 System.arraycopy(resolverErrors, 0, allErrors, parserErrors.length, resolv
erErrors.length); |
2414 return allErrors; | 2414 return allErrors; |
2415 } | 2415 } |
2416 } | 2416 } |
2417 int get length { | 2417 int get length { |
2418 Token endToken3 = endToken; | 2418 Token endToken3 = endToken; |
2419 if (endToken3 == null) { | 2419 if (endToken3 == null) { |
2420 return 0; | 2420 return 0; |
2421 } | 2421 } |
(...skipping 2362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4784 FormalParameterList({Token leftParenthesis, List<FormalParameter> parameters,
Token leftDelimiter, Token rightDelimiter, Token rightParenthesis}) : this.full(
leftParenthesis, parameters, leftDelimiter, rightDelimiter, rightParenthesis); | 4784 FormalParameterList({Token leftParenthesis, List<FormalParameter> parameters,
Token leftDelimiter, Token rightDelimiter, Token rightParenthesis}) : this.full(
leftParenthesis, parameters, leftDelimiter, rightDelimiter, rightParenthesis); |
4785 accept(ASTVisitor visitor) => visitor.visitFormalParameterList(this); | 4785 accept(ASTVisitor visitor) => visitor.visitFormalParameterList(this); |
4786 Token get beginToken => _leftParenthesis; | 4786 Token get beginToken => _leftParenthesis; |
4787 /** | 4787 /** |
4788 * Return an array containing the elements representing the parameters in this
list. The array | 4788 * Return an array containing the elements representing the parameters in this
list. The array |
4789 * will contain {@code null}s if the parameters in this list have not been res
olved. | 4789 * will contain {@code null}s if the parameters in this list have not been res
olved. |
4790 * @return the elements representing the parameters in this list | 4790 * @return the elements representing the parameters in this list |
4791 */ | 4791 */ |
4792 List<ParameterElement> get elements { | 4792 List<ParameterElement> get elements { |
4793 int count = _parameters.length; | 4793 int count = _parameters.length; |
4794 List<ParameterElement> types = new List<ParameterElement>.fixedLength(count)
; | 4794 List<ParameterElement> types = new List<ParameterElement>(count); |
4795 for (int i = 0; i < count; i++) { | 4795 for (int i = 0; i < count; i++) { |
4796 types[i] = _parameters[i].element; | 4796 types[i] = _parameters[i].element; |
4797 } | 4797 } |
4798 return types; | 4798 return types; |
4799 } | 4799 } |
4800 Token get endToken => _rightParenthesis; | 4800 Token get endToken => _rightParenthesis; |
4801 /** | 4801 /** |
4802 * Return the left square bracket ('[') or left curly brace ('{') introducing
the optional | 4802 * Return the left square bracket ('[') or left curly brace ('{') introducing
the optional |
4803 * parameters. | 4803 * parameters. |
4804 * @return the left square bracket ('[') or left curly brace ('{') introducing
the optional | 4804 * @return the left square bracket ('[') or left curly brace ('{') introducing
the optional |
(...skipping 7674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12479 return elements[elements.length - 1].endToken; | 12479 return elements[elements.length - 1].endToken; |
12480 } | 12480 } |
12481 /** | 12481 /** |
12482 * Return the node that is the parent of each of the elements in the list. | 12482 * Return the node that is the parent of each of the elements in the list. |
12483 * @return the node that is the parent of each of the elements in the list | 12483 * @return the node that is the parent of each of the elements in the list |
12484 */ | 12484 */ |
12485 ASTNode getOwner() { | 12485 ASTNode getOwner() { |
12486 return owner; | 12486 return owner; |
12487 } | 12487 } |
12488 } | 12488 } |
OLD | NEW |