| OLD | NEW |
| 1 // // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // // for details. All rights reserved. Use of this source code is governed by a | 2 // // for details. All rights reserved. Use of this source code is governed by a |
| 3 // // BSD-style license that can be found in the LICENSE file. | 3 // // BSD-style license that can be found in the LICENSE file. |
| 4 // // This code was auto-generated, is not intended to be edited, and is subject
to | 4 // // This code was auto-generated, is not intended to be edited, and is subject
to |
| 5 // // significant change. Please see the README file for more information. | 5 // // significant change. Please see the README file for more information. |
| 6 // abstract class AbstractScannerTest extends JUnitTestCase { | 6 // abstract class AbstractScannerTest extends JUnitTestCase { |
| 7 // void test_tokenize_attribute() { | 7 // void test_tokenize_attribute() { |
| 8 // _tokenize("<html bob=\"one two\">", <Object> [LT, "html", "bob", EQ, "\"o
ne two\"", GT]); | 8 // _tokenize("<html bob=\"one two\">", <Object> [LT, "html", "bob", EQ, "\"o
ne two\"", GT]); |
| 9 // } | 9 // } |
| 10 // void test_tokenize_comment() { | 10 // void test_tokenize_comment() { |
| (...skipping 8613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8624 // List<LabelElement> labels = method.labels; | 8624 // List<LabelElement> labels = method.labels; |
| 8625 // EngineTestCase.assertLength(1, labels); | 8625 // EngineTestCase.assertLength(1, labels); |
| 8626 // LabelElement label = labels[0]; | 8626 // LabelElement label = labels[0]; |
| 8627 // JUnitTestCase.assertNotNull(label); | 8627 // JUnitTestCase.assertNotNull(label); |
| 8628 // JUnitTestCase.assertEquals(labelName, label.name); | 8628 // JUnitTestCase.assertEquals(labelName, label.name); |
| 8629 // } | 8629 // } |
| 8630 // void test_visitNamedFormalParameter() { | 8630 // void test_visitNamedFormalParameter() { |
| 8631 // ElementHolder holder = new ElementHolder(); | 8631 // ElementHolder holder = new ElementHolder(); |
| 8632 // ElementBuilder builder = new ElementBuilder(holder); | 8632 // ElementBuilder builder = new ElementBuilder(holder); |
| 8633 // String parameterName = "p"; | 8633 // String parameterName = "p"; |
| 8634 // DefaultFormalParameter formalParameter = AstFactory.namedFormalParameter(
AstFactory.simpleFormalParameter3(parameterName), AstFactory.identifier3("b")); | 8634 // DefaultFormalParameter formalParameter = AstFactory.namedFormalParameter(
AstFactory.simpleFormalParameter3(parameterName), AstFactory.identifier3("42")); |
| 8635 // _useParameterInMethod(formalParameter, 100, 110); | 8635 // _useParameterInMethod(formalParameter, 100, 110); |
| 8636 // formalParameter.accept(builder); | 8636 // formalParameter.accept(builder); |
| 8637 // List<ParameterElement> parameters = holder.parameters; | 8637 // List<ParameterElement> parameters = holder.parameters; |
| 8638 // EngineTestCase.assertLength(1, parameters); | 8638 // EngineTestCase.assertLength(1, parameters); |
| 8639 // ParameterElement parameter = parameters[0]; | 8639 // ParameterElement parameter = parameters[0]; |
| 8640 // JUnitTestCase.assertNotNull(parameter); | 8640 // JUnitTestCase.assertNotNull(parameter); |
| 8641 // JUnitTestCase.assertEquals(parameterName, parameter.name); | 8641 // JUnitTestCase.assertEquals(parameterName, parameter.name); |
| 8642 // JUnitTestCase.assertFalse(parameter.isConst); | 8642 // JUnitTestCase.assertFalse(parameter.isConst); |
| 8643 // JUnitTestCase.assertFalse(parameter.isFinal); | 8643 // JUnitTestCase.assertFalse(parameter.isFinal); |
| 8644 // JUnitTestCase.assertFalse(parameter.isSynthetic); | 8644 // JUnitTestCase.assertFalse(parameter.isSynthetic); |
| 8645 // JUnitTestCase.assertEquals(ParameterKind.NAMED, parameter.parameterKind); | 8645 // JUnitTestCase.assertEquals(ParameterKind.NAMED, parameter.parameterKind); |
| 8646 // JUnitTestCase.assertEquals(SourceRangeFactory.rangeStartEnd(100, 110), pa
rameter.visibleRange); | 8646 // JUnitTestCase.assertEquals(SourceRangeFactory.rangeStartEnd(100, 110), pa
rameter.visibleRange); |
| 8647 // JUnitTestCase.assertEquals("42", parameter.defaultValueCode); |
| 8647 // FunctionElement initializer = parameter.initializer; | 8648 // FunctionElement initializer = parameter.initializer; |
| 8648 // JUnitTestCase.assertNotNull(initializer); | 8649 // JUnitTestCase.assertNotNull(initializer); |
| 8649 // JUnitTestCase.assertTrue(initializer.isSynthetic); | 8650 // JUnitTestCase.assertTrue(initializer.isSynthetic); |
| 8650 // } | 8651 // } |
| 8651 // void test_visitSimpleFormalParameter() { | 8652 // void test_visitSimpleFormalParameter() { |
| 8652 // ElementHolder holder = new ElementHolder(); | 8653 // ElementHolder holder = new ElementHolder(); |
| 8653 // ElementBuilder builder = new ElementBuilder(holder); | 8654 // ElementBuilder builder = new ElementBuilder(holder); |
| 8654 // String parameterName = "p"; | 8655 // String parameterName = "p"; |
| 8655 // SimpleFormalParameter formalParameter = AstFactory.simpleFormalParameter3
(parameterName); | 8656 // SimpleFormalParameter formalParameter = AstFactory.simpleFormalParameter3
(parameterName); |
| 8656 // _useParameterInMethod(formalParameter, 100, 110); | 8657 // _useParameterInMethod(formalParameter, 100, 110); |
| (...skipping 5284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13941 // final List<String> _keyValuePairs; | 13942 // final List<String> _keyValuePairs; |
| 13942 // XmlValidator_Attributes(this._keyValuePairs); | 13943 // XmlValidator_Attributes(this._keyValuePairs); |
| 13943 // } | 13944 // } |
| 13944 // class XmlValidator_Tag { | 13945 // class XmlValidator_Tag { |
| 13945 // final String _tag; | 13946 // final String _tag; |
| 13946 // final XmlValidator_Attributes _attributes; | 13947 // final XmlValidator_Attributes _attributes; |
| 13947 // final String _content; | 13948 // final String _content; |
| 13948 // final List<XmlValidator_Tag> _children; | 13949 // final List<XmlValidator_Tag> _children; |
| 13949 // XmlValidator_Tag(this._tag, this._attributes, this._content, this._children
); | 13950 // XmlValidator_Tag(this._tag, this._attributes, this._content, this._children
); |
| 13950 // } | 13951 // } |
| OLD | NEW |