└── dart ├── samples ├── .gitignore ├── build_dart_simple │ └── test.foo ├── third_party │ ├── dromaeo │ │ ├── .gitignore │ │ └── web │ │ │ ├── test-tail.html │ │ │ ├── test-head.html │ │ │ ├── favicon.ico │ │ │ ├── favicon.png │ │ │ └── images │ │ │ ├── bg.png │ │ │ ├── top.png │ │ │ ├── dino1.png │ │ │ ├── dino2.png │ │ │ ├── dino3.png │ │ │ ├── dino4.png │ │ │ ├── dino5.png │ │ │ ├── dino6.png │ │ │ ├── dino7.png │ │ │ ├── dino8.png │ │ │ ├── left.png │ │ │ ├── logo.png │ │ │ ├── logo2.png │ │ │ ├── logo3.png │ │ │ ├── right.png │ │ │ ├── water.png │ │ │ ├── clouds.png │ │ │ ├── clouds2.png │ │ │ └── comets.png │ └── todomvc_performance │ │ ├── .gitignore │ │ ├── js_todomvc │ │ ├── CONTRIBUTING.md │ │ ├── components │ │ │ ├── todomvc-common │ │ │ │ ├── bower.json │ │ │ │ ├── readme.md │ │ │ │ └── bg.png │ │ │ ├── flatiron-director │ │ │ │ ├── CONTRIBUTING.md │ │ │ │ ├── bower.json │ │ │ │ └── AUTHORS │ │ │ ├── polymer-selection │ │ │ │ ├── CONTRIBUTING.md │ │ │ │ ├── bower.json │ │ │ │ └── AUTHORS │ │ │ ├── polymer-selector │ │ │ │ ├── CONTRIBUTING.md │ │ │ │ ├── bower.json │ │ │ │ ├── AUTHORS │ │ │ │ └── README.md │ │ │ ├── polymer-localstorage │ │ │ │ ├── CONTRIBUTING.md │ │ │ │ ├── bower.json │ │ │ │ ├── AUTHORS │ │ │ │ └── test │ │ │ │ │ └── js │ │ │ │ │ └── polymer-localstorage.js │ │ │ ├── platform │ │ │ │ ├── README.md │ │ │ │ └── AUTHORS │ │ │ └── polymer │ │ │ │ ├── AUTHORS │ │ │ │ └── polymer.html │ │ ├── pubspec.yaml │ │ ├── AUTHORS │ │ └── bower.json │ │ ├── web │ │ ├── elements │ │ │ ├── td_model.html │ │ │ └── td_input.html │ │ ├── app │ │ │ └── bg.png │ │ └── lib-elements │ │ │ └── simple_router.html │ │ ├── README.md │ │ └── AUTHORS ├── README ├── build_dart │ ├── test.foo │ └── pubspec.yaml └── sample_extension │ └── .gitignore ├── runtime ├── tests │ └── vm │ │ ├── data │ │ ├── empty_file │ │ ├── .gitignore │ │ └── fixed_length_file │ │ └── dart │ │ └── bad_snapshot ├── tools │ └── .gitignore ├── vm │ ├── snapshot_test_in.dat │ ├── object_store_test.cc │ ├── libdart_dependency_helper.cc │ └── service │ │ └── message_router.dart ├── bin │ ├── vmservice │ │ └── .gitignore │ ├── vmserviceio_dartium.dart │ ├── net │ │ └── .gitignore │ └── builtin_sources.gypi ├── observatory │ ├── .gitignore │ ├── maintainers │ │ └── .gitignore │ ├── web │ │ └── favicon.ico │ ├── lib │ │ ├── src │ │ │ └── elements │ │ │ │ ├── img │ │ │ │ ├── dart_icon.png │ │ │ │ ├── chromium_icon.png │ │ │ │ └── isolate_icon.png │ │ │ │ ├── observatory_element.html │ │ │ │ ├── code_ref.html │ │ │ │ └── class_ref.html │ │ └── cli.dart │ └── tests │ │ └── ui │ │ └── inspector.txt ├── third_party │ └── double-conversion │ │ ├── .gitignore │ │ └── README.dart ├── CPPLINT.cfg ├── codereview.settings ├── lib │ ├── async_patch.dart │ ├── empty_source.dart │ ├── convert_sources.gypi │ ├── class_id.dart │ ├── math_sources.gypi │ ├── num.dart │ ├── developer.dart │ ├── identical_patch.dart │ ├── developer_sources.gypi │ ├── profiler_sources.gypi │ ├── stacktrace.dart │ └── collection_sources.gypi └── .gitignore ├── tests ├── co19 │ └── .gitignore ├── standalone │ ├── io │ │ ├── read_as_text.dat │ │ ├── readuntil_test.dat │ │ ├── pkcert │ │ │ ├── cert9.db │ │ │ └── key4.db │ │ ├── readline_test2.dat │ │ ├── readline_test1.dat │ │ ├── ln.sh │ │ ├── snapshot_fail_script.dart │ │ └── process_echo_util.dart │ ├── package │ │ ├── packages │ │ │ ├── shared.dart │ │ │ ├── package2.dart │ │ │ └── lib3 │ │ │ │ └── sub │ │ │ │ └── lib3.dart │ │ ├── invalid_uri_test.dart │ │ └── package1_test.dart │ └── http_launch_data │ │ ├── packages │ │ └── simple │ │ │ └── simple.dart │ │ ├── http_isolate_main.dart │ │ └── http_launch_main.dart ├── compiler │ ├── dart2js_extra │ │ ├── empty_negative_test.dart │ │ ├── 23264_test.dart │ │ ├── empty_method_test.dart │ │ ├── 3_test.dart │ │ ├── deferred │ │ │ ├── deferred_overlapping_lib3.dart │ │ │ ├── deferred_mirrors2_lib5.dart │ │ │ ├── deferred_overlapping_lib1.dart │ │ │ ├── deferred_overlapping_lib2.dart │ │ │ ├── deferred_mirrors2_lib2.dart │ │ │ ├── deferred_mirrors2_lib4.dart │ │ │ └── deferred_mirrors1_lib.dart │ │ ├── 7_test.dart │ │ ├── 12_test.dart │ │ ├── 43_test.dart │ │ ├── deferred_fail_and_retry_lib.dart │ │ ├── invalid_length_negative_test.dart │ │ ├── 33_test.dart │ │ ├── throw1_test.dart │ │ ├── panda_lib.dart │ │ ├── regress │ │ │ ├── 4740_library.dart │ │ │ ├── 4434_lib.dart │ │ │ └── 4434_test.dart │ │ ├── typed_locals_test.dart │ │ ├── foo7_test.dart │ │ ├── crash_library_metadata.dart │ │ ├── function_parameters_test.dart │ │ ├── simple_string_constant_test.dart │ │ └── literals_test.dart │ └── dart2js │ │ ├── exit_code_helper.dart │ │ ├── one_line_dart_program.dart │ │ ├── http_launch_data │ │ ├── pkcert │ │ │ ├── cert9.db │ │ │ └── key4.db │ │ ├── lib1.dart │ │ ├── packages │ │ │ └── simple │ │ │ │ └── simple.dart │ │ ├── http_launch_main.dart │ │ └── http_launch_main_package.dart │ │ ├── dart2js_batch2_run.dart │ │ ├── path with spaces │ │ ├── library space │ │ │ ├── part space │ │ │ │ └── part space.dart │ │ │ └── lib with spaces.dart │ │ └── file with spaces.dart │ │ └── source_map_deferred_validator_test_lib.dart ├── language │ ├── readuntil_test.dat │ ├── illegal_invocation_lib.dart │ ├── regress_20394_lib.dart │ ├── cyclic_import_test.dart │ ├── sub │ │ └── sub.dart │ ├── regress_20394_test.dart │ ├── missing_part_of_tag_part.dart │ ├── deferred_load_library_wrong_args_test.dart │ ├── deferred_load_library_wrong_args_lib.dart │ ├── deferred_prefix_constraints_lib.dart │ ├── deferred_prefix_constraints_lib2.dart │ ├── async_helper_lib.dart │ ├── deferred_call_empty_before_load_lib.dart │ ├── deferred_closurize_load_library_lib.dart │ ├── export_main_test.dart │ ├── first_class_types_lib1.dart │ ├── first_class_types_lib2.dart │ ├── deferred_constraints_lib2.dart │ ├── deferred_only_constant_lib.dart │ ├── empty_main.dart │ ├── failing_main.dart │ ├── deferred_inheritance_constraints_lib.dart │ ├── hidden_import_lib.dart │ ├── library_c.dart │ ├── library_f.dart │ ├── library_juxtaposition_part.dart │ ├── deferred_load_inval_code_lib.dart │ ├── export_cyclic_helper3.dart │ ├── library1_lib.lib │ ├── library5a.dart │ ├── library5b.dart │ ├── regress_19413_bar.dart │ ├── regress_19413_foo.dart │ ├── application_test.dart │ ├── export_helper2.dart │ ├── export_helper4.dart │ ├── getter_setter_in_lib2.dart │ ├── illegal_declaration_test.dart │ ├── issue1578_negative_test.dart │ ├── local_export_a_export.dart │ ├── part_part.dart │ ├── prefix24_lib2.dart │ ├── regress_22443_lib.dart │ ├── top_level_entry.dart │ ├── top_level_file3.dart │ ├── compile_time_constant_q_test.dart │ ├── ct_const4_lib.dart │ ├── deferred_shadow_load_library_lib.dart │ ├── reexport_core_helper.dart │ ├── duplicate_export_liba.dart │ ├── top_level_entry_test.dart │ ├── application_negative_test.dart │ ├── deferred_no_such_method_lib.dart │ ├── library_juxtaposition_lib.dart │ ├── top_level_prefixed_library_test.lib │ ├── cha_deopt1_lib.dart │ ├── deferred_mixin_shared.dart │ ├── enum_private_lib.dart │ ├── import_show_lib.dart │ ├── library3.dart │ ├── library_prefixes_test1.lib │ ├── no_main_test.dart │ ├── create_unresolved_type_test.dart │ ├── deferred_constant_list_lib.dart │ ├── issue_22780_test.dart │ ├── library_a.dart │ ├── library_b.dart │ ├── library_d.dart │ ├── library_prefixes_test2.lib │ ├── regress_21998_lib1.dart │ ├── export_double_same_main_test.dart │ ├── prefix_test2.dart │ ├── regress_21998_lib2.dart │ ├── string_escape2_negative_test_helper.dart │ ├── extends_test_lib.dart │ ├── lazy_static6_test.dart │ ├── prefix_new_test2.dart │ ├── private_lib │ ├── duplicate_import_libc.dart │ ├── export_ambiguous_main_negative_test.dart │ ├── regress_10996_lib.dart │ ├── regress_13462_0_test.dart │ ├── regress_21998_lib3.dart │ ├── cha_deopt2_deferred_lib.dart │ ├── getter_setter_in_lib.dart │ ├── prefix24_lib3.dart │ ├── cha_deopt3_deferred_lib.dart │ ├── export_ambiguous_main_a.dart │ ├── export_ambiguous_main_b.dart │ ├── inline_super_part.dart │ ├── library1_lib.dart │ ├── library_e.dart │ ├── script_source.dart │ ├── string_escape3_negative_test_helper.dart │ ├── top_level_file2.dart │ ├── export_main_override_test.dart │ ├── issue9664_test.dart │ ├── part_test.dart │ ├── truncdiv_uint32_test.dart │ ├── getter_setter_in_lib3.dart │ ├── unary_plus_negative_test.dart │ ├── bad_raw_string_negative_test.dart │ ├── duplicate_import_libb.dart │ ├── library4.dart │ ├── local_export_a.dart │ ├── regress_22666_test.dart │ ├── built_in_identifier_prefix_library_as.dart │ ├── built_in_identifier_prefix_library_get.dart │ ├── built_in_identifier_prefix_library_set.dart │ ├── cha_deopt2_lib.dart │ ├── cha_deopt3_lib.dart │ ├── duplicate_constructor_test.dart │ ├── duplicate_export_negative_test.dart │ ├── export1_lib.dart │ ├── issue9602_other.dart │ ├── lazy_map_test.dart │ ├── new_prefix_test.dart │ ├── private_access_lib.dart │ ├── string_escape4_negative_test.dart │ ├── built_in_identifier_prefix_library_export.dart │ ├── built_in_identifier_prefix_library_import.dart │ ├── built_in_identifier_prefix_library_part.dart │ ├── built_in_identifier_prefix_library_static.dart │ ├── duplicate_import_liba.dart │ ├── final_for_in_variable_test.dart │ ├── main_not_a_function_test.dart │ ├── script_lib.dart │ ├── built_in_identifier_prefix_library_abstract.dart │ ├── built_in_identifier_prefix_library_dynamic.dart │ ├── built_in_identifier_prefix_library_external.dart │ ├── built_in_identifier_prefix_library_factory.dart │ ├── built_in_identifier_prefix_library_library.dart │ ├── built_in_identifier_prefix_library_operator.dart │ ├── built_in_identifier_prefix_library_typedef.dart │ ├── deferred_regression_22995_lib.dart │ ├── interceptor5_test.dart │ ├── list_tracer_in_list_test.dart │ ├── built_in_identifier_prefix_library_implements.dart │ ├── field_type_check_test.dart │ ├── issue11724_test.dart │ ├── mixin_prefix_lib.dart │ ├── part2_test.dart │ ├── cha_deopt1_deferred_lib.dart │ ├── issue1363_lib.dart │ ├── private_other.lib │ ├── top_level_file1.dart │ ├── class_syntax_test.dart │ ├── export_helper1.dart │ ├── export_helper3.dart │ ├── extend_type_parameter_negative_test.dart │ ├── first_test.dart │ ├── prefix21_bad_lib.dart │ ├── prefix21_good_lib.dart │ ├── private_member1_lib_b.dart │ ├── getter_declaration_negative_test.dart │ ├── named_constructor_lib.dart │ ├── patch_test.dart │ ├── private2_lib.dart │ ├── private_member2_lib_b.dart │ ├── script2_negative_source.dart │ ├── setter_declaration2_negative_test.dart │ └── bad_named_constructor_negative_test.dart ├── html │ ├── cross_domain_iframe_script.js │ ├── Ahem.ttf │ ├── small.mp4 │ ├── small.webm │ ├── async_oneshot.dart │ ├── b_element_test.dart │ ├── callbacks_test.dart │ ├── deferred_multi_app_lib.dart │ ├── navigator_test.dart │ ├── cross_domain_iframe_script.html │ ├── dom_constructors_test.dart │ ├── dromaeo_noop │ │ └── dromaeo_smoke.dart.js │ └── window_eq_test.dart ├── isolate │ ├── spawn_uri_exported_main_lib.dart │ ├── spawn_uri_exported_main.dart │ ├── browser │ │ ├── package │ │ │ └── issue_12474_lib.dart │ │ └── issue_12474_child.dart │ ├── deferred_in_isolate2_lib.dart │ └── deferred_loaded_lib.dart ├── lib │ ├── mirrors │ │ ├── method_mirror_source_other.dart │ │ ├── deferred_mirrors_update_lib.dart │ │ ├── library_metadata2_lib2.dart │ │ ├── typedef_library.dart │ │ ├── deferred_type_other.dart │ │ ├── library_imports_a.dart │ │ ├── library_imports_b.dart │ │ ├── library_without_declaration.dart │ │ ├── library_metadata2_lib1.dart │ │ └── metadata_allowed_values_import.dart │ └── js │ │ └── null_test.js ├── try │ └── poi │ │ └── data │ │ ├── empty_main.dart │ │ └── interesting.dart ├── _chrome │ └── _chrome.status └── corelib │ └── main_test.dart ├── tools ├── dom │ ├── scripts │ │ └── __init__.py │ ├── .gitignore │ ├── src │ │ └── EventListener.dart │ ├── docs │ │ └── docs.status │ └── templates │ │ └── html │ │ └── dartium │ │ └── cpp_derived_sources.template ├── linux_dist_support │ └── debian │ │ ├── compat │ │ ├── source │ │ └── format │ │ ├── dart.install │ │ ├── dart.links │ │ └── control ├── testing │ ├── .gitignore │ ├── bin │ │ ├── linux │ │ │ ├── dart.sha1 │ │ │ ├── dart-arm.sha1 │ │ │ └── dart-mips.sha1 │ │ ├── macos │ │ │ └── dart.sha1 │ │ └── windows │ │ │ └── dart.exe.sha1 │ ├── extensions │ │ ├── chrome │ │ │ └── ConsoleCollector.crx │ │ └── firefox │ │ │ ├── ConsoleCollector.xpi │ │ │ └── ConsoleCollector │ │ │ ├── chrome.manifest │ │ │ ├── Makefile │ │ │ └── chrome │ │ │ └── content │ │ │ └── overlay.xul │ └── dart │ │ ├── vendored_pkg │ │ └── README.txt │ │ └── browser_perf_testing │ │ └── pubspec.yaml ├── apps │ └── update_homebrew │ │ ├── bin │ │ └── ssh_with_key │ │ └── pubspec.yaml ├── dart2js │ ├── angular2_testing_deps │ │ ├── CURRENT_ANGULAR_DEPS │ │ └── README │ └── sourceMapViewer │ │ ├── pubspec.yaml │ │ └── README.TXT ├── bots │ ├── __init__.py │ └── steps_clank.py ├── ddbg_service │ └── pubspec.yaml └── canary.dart ├── utils ├── tests │ └── testrunner │ │ ├── test.txt │ │ ├── testconfig │ │ ├── pubspec.yaml │ │ ├── non_browser_tests │ │ └── pubspec.yaml │ │ ├── browser_tests │ │ ├── pubspec.yaml │ │ └── web │ │ │ └── browser_test.html │ │ └── layout_tests │ │ ├── pubspec.yaml │ │ └── web │ │ └── layout_test.html ├── dartfmt │ └── .gitignore ├── dartanalyzer │ └── .gitignore ├── analysis_server │ └── .gitignore ├── apidoc │ ├── static │ │ └── mdn-logo-tiny.png │ ├── mdn │ │ └── full_run.sh │ └── .gitignore ├── pub │ └── .gitignore └── compiler │ └── .gitignore ├── site └── try │ ├── README │ ├── favicon.ico │ ├── dart-icon.png │ ├── dart-iphone5.png │ ├── dart-icon-196px.png │ ├── try-dart-screenshot.png │ ├── .gitignore │ ├── nossl.appcache │ └── src │ └── themes.dart ├── samples-dev └── swarm │ ├── data │ ├── Test0_0_0.html │ ├── Test0_0_1.html │ ├── Test0_0_2.html │ ├── Test0_0_3.html │ ├── Test0_0_4.html │ ├── Test0_0_5.html │ ├── Test0_0_6.html │ ├── Test0_0_7.html │ ├── Test0_1_0.html │ ├── Test0_1_1.html │ ├── Test0_1_2.html │ ├── Test0_1_3.html │ ├── Test0_1_4.html │ ├── Test0_1_5.html │ ├── Test0_1_6.html │ ├── Test0_1_7.html │ ├── Test0_2_0.html │ ├── Test0_2_1.html │ ├── Test0_2_2.html │ ├── Test0_2_3.html │ ├── Test0_2_4.html │ ├── Test0_2_5.html │ ├── Test0_2_6.html │ ├── Test0_2_7.html │ ├── Test0_3_0.html │ ├── Test0_3_1.html │ ├── Test0_3_2.html │ ├── Test0_3_3.html │ ├── Test0_3_4.html │ ├── Test0_3_5.html │ ├── Test0_3_6.html │ ├── Test0_3_7.html │ ├── Test1_0_0.html │ ├── Test1_0_1.html │ ├── Test1_0_2.html │ ├── Test1_0_3.html │ ├── Test1_0_4.html │ ├── Test1_0_5.html │ ├── Test1_0_6.html │ ├── Test1_0_7.html │ ├── Test1_1_0.html │ ├── Test1_1_1.html │ ├── Test1_1_2.html │ ├── Test1_1_3.html │ ├── Test1_1_4.html │ ├── Test1_1_5.html │ ├── Test1_1_6.html │ ├── Test1_1_7.html │ ├── Test1_2_0.html │ ├── Test1_2_1.html │ ├── Test1_2_2.html │ ├── Test1_2_3.html │ ├── Test1_2_4.html │ ├── Test1_2_5.html │ ├── Test1_2_6.html │ ├── Test1_2_7.html │ ├── Test1_3_0.html │ ├── Test1_3_1.html │ ├── Test1_3_2.html │ ├── Test1_3_3.html │ ├── Test1_3_4.html │ ├── Test1_3_5.html │ ├── Test1_3_6.html │ ├── Test1_3_7.html │ ├── Test2_0_0.html │ ├── Test2_0_1.html │ ├── Test2_0_2.html │ ├── Test2_0_3.html │ ├── Test2_0_4.html │ ├── Test2_0_5.html │ ├── Test2_0_6.html │ ├── Test2_0_7.html │ ├── Test2_1_0.html │ ├── Test2_1_1.html │ ├── Test2_1_2.html │ ├── Test2_1_3.html │ ├── Test2_1_4.html │ ├── Test2_1_5.html │ ├── Test2_1_6.html │ ├── Test2_1_7.html │ ├── Test2_2_0.html │ ├── Test2_2_1.html │ ├── Test2_2_2.html │ ├── Test2_2_3.html │ ├── Test2_2_4.html │ ├── Test2_2_5.html │ ├── Test2_2_6.html │ ├── Test2_2_7.html │ ├── Test2_3_0.html │ ├── Test2_3_1.html │ ├── Test2_3_2.html │ ├── Test2_3_3.html │ ├── Test2_3_4.html │ ├── Test2_3_5.html │ ├── Test2_3_6.html │ └── Test2_3_7.html │ ├── back-21.png │ ├── favicon.png │ ├── favicon128.png │ ├── refresh-21.png │ ├── settings-21.png │ ├── Dart_Logo_21.png │ ├── pigeons-jumpinjimmyjava-white90pct-q70.jpg │ ├── swarm.dart │ ├── appengine │ ├── cron.yaml │ └── queue.yaml │ ├── lefttriangle.svg │ ├── righttriangle.svg │ └── info.svg ├── client └── .gitignore ├── pkg ├── analysis_server │ ├── CHANGELOG.md │ └── AUTHORS ├── js_ast │ ├── README.md │ └── pubspec.yaml ├── docgen │ ├── test │ │ └── multi_library_code │ │ │ └── lib │ │ │ ├── sublib_dir │ │ │ ├── sub_lib_part.dart │ │ │ └── sub_lib.dart │ │ │ ├── src │ │ │ ├── src_lib_part.dart │ │ │ └── src_lib.dart │ │ │ ├── test_lib2_bar.dart │ │ │ └── test_lib2.dart │ └── lib │ │ └── src │ │ └── exports │ │ ├── libraries.dart │ │ ├── mirrors_util.dart │ │ ├── dart2js_mirrors.dart │ │ └── source_mirrors.dart ├── .gitignore ├── stub_core_library │ ├── pubspec.yaml │ └── README.md ├── browser │ └── pubspec.yaml ├── fixnum │ └── pubspec.yaml ├── typed_mock │ ├── pubspec.yaml │ └── README.md ├── typed_data │ └── pubspec.yaml ├── microlytics │ └── pubspec.yaml └── compiler │ └── lib │ └── src │ └── util │ └── util_implementation.dart ├── third_party └── .gitignore ├── sdk ├── lib │ ├── _internal │ │ └── pub │ │ │ ├── test │ │ │ └── asset │ │ │ │ └── out-of-date.snapshot │ │ │ └── bin │ │ │ └── pub.dart │ ├── core │ │ └── type.dart │ ├── mirrors │ │ └── mirrors_sources.gypi │ ├── developer │ │ └── developer_sources.gypi │ ├── profiler │ │ └── profiler_sources.gypi │ ├── typed_data │ │ └── typed_data_sources.gypi │ └── isolate │ │ └── isolate_sources.gypi └── bin │ ├── dart2js_developer │ ├── dartanalyzer_developer │ ├── docgen │ ├── docgen.bat │ ├── dart2js_developer.bat │ └── dartanalyzer_developer.bat └── codereview.settings /dart/samples/.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | -------------------------------------------------------------------------------- /dart/runtime/tests/vm/data/empty_file: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dart/tests/co19/.gitignore: -------------------------------------------------------------------------------- 1 | /src 2 | -------------------------------------------------------------------------------- /dart/tools/dom/scripts/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dart/runtime/tools/.gitignore: -------------------------------------------------------------------------------- 1 | /utils.pyc 2 | -------------------------------------------------------------------------------- /dart/samples/build_dart_simple/test.foo: -------------------------------------------------------------------------------- 1 | I'm from foo. -------------------------------------------------------------------------------- /dart/samples/third_party/dromaeo/.gitignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /dart/tests/standalone/io/read_as_text.dat: -------------------------------------------------------------------------------- 1 | λx. x 2 | -------------------------------------------------------------------------------- /dart/tools/linux_dist_support/debian/compat: -------------------------------------------------------------------------------- 1 | 7 2 | -------------------------------------------------------------------------------- /dart/utils/tests/testrunner/test.txt: -------------------------------------------------------------------------------- 1 | Hello world! 2 | -------------------------------------------------------------------------------- /dart/utils/tests/testrunner/testconfig: -------------------------------------------------------------------------------- 1 | --checked 2 | -------------------------------------------------------------------------------- /dart/runtime/vm/snapshot_test_in.dat: -------------------------------------------------------------------------------- 1 | {{DART_SOURCE}} 2 | -------------------------------------------------------------------------------- /dart/tests/compiler/dart2js_extra/empty_negative_test.dart: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dart/tools/dom/.gitignore: -------------------------------------------------------------------------------- 1 | /database 2 | /generated 3 | -------------------------------------------------------------------------------- /dart/tests/language/readuntil_test.dat: -------------------------------------------------------------------------------- 1 | Hello Dart, wassup! 2 | -------------------------------------------------------------------------------- /dart/runtime/bin/vmservice/.gitignore: -------------------------------------------------------------------------------- 1 | .buildlog 2 | pubspec.lock 3 | -------------------------------------------------------------------------------- /dart/runtime/tests/vm/data/.gitignore: -------------------------------------------------------------------------------- 1 | /fixed_length_file_out 2 | -------------------------------------------------------------------------------- /dart/samples/third_party/todomvc_performance/.gitignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /dart/tools/linux_dist_support/debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /dart/samples/README: -------------------------------------------------------------------------------- 1 | This directory contains sample Dart programs. 2 | -------------------------------------------------------------------------------- /dart/site/try/README: -------------------------------------------------------------------------------- 1 | See https://code.google.com/p/dart/wiki/TryDart. 2 | -------------------------------------------------------------------------------- /dart/tests/standalone/io/readuntil_test.dat: -------------------------------------------------------------------------------- 1 | Hello Dart 2 | wassup! 3 | -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test0_0_0.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test0_0_1.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test0_0_2.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test0_0_3.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test0_0_4.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test0_0_5.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test0_0_6.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test0_0_7.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test0_1_0.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test0_1_1.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test0_1_2.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test0_1_3.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test0_1_4.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test0_1_5.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test0_1_6.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test0_1_7.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test0_2_0.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test0_2_1.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test0_2_2.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test0_2_3.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test0_2_4.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test0_2_5.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test0_2_6.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test0_2_7.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test0_3_0.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test0_3_1.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test0_3_2.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test0_3_3.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test0_3_4.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test0_3_5.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test0_3_6.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test0_3_7.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test1_0_0.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test1_0_1.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test1_0_2.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test1_0_3.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test1_0_4.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test1_0_5.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test1_0_6.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test1_0_7.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test1_1_0.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test1_1_1.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test1_1_2.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test1_1_3.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test1_1_4.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test1_1_5.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test1_1_6.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test1_1_7.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test1_2_0.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test1_2_1.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test1_2_2.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test1_2_3.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test1_2_4.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test1_2_5.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test1_2_6.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test1_2_7.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test1_3_0.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test1_3_1.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test1_3_2.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test1_3_3.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test1_3_4.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test1_3_5.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test1_3_6.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test1_3_7.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test2_0_0.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test2_0_1.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test2_0_2.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test2_0_3.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test2_0_4.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test2_0_5.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test2_0_6.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test2_0_7.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test2_1_0.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test2_1_1.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test2_1_2.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test2_1_3.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test2_1_4.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test2_1_5.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test2_1_6.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test2_1_7.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test2_2_0.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test2_2_1.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test2_2_2.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test2_2_3.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test2_2_4.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test2_2_5.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test2_2_6.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test2_2_7.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test2_3_0.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test2_3_1.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test2_3_2.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test2_3_3.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test2_3_4.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test2_3_5.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test2_3_6.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/samples-dev/swarm/data/Test2_3_7.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /dart/tests/compiler/dart2js/exit_code_helper.dart: -------------------------------------------------------------------------------- 1 | void main() { 2 | 3 | } -------------------------------------------------------------------------------- /dart/tests/compiler/dart2js/one_line_dart_program.dart: -------------------------------------------------------------------------------- 1 | String main() => 499 -------------------------------------------------------------------------------- /dart/tests/language/illegal_invocation_lib.dart: -------------------------------------------------------------------------------- 1 | library foo; 2 | foo() { } 3 | -------------------------------------------------------------------------------- /dart/tools/testing/.gitignore: -------------------------------------------------------------------------------- 1 | /selenium-server-standalone*.jar 2 | /bin 3 | -------------------------------------------------------------------------------- /dart/tools/testing/bin/linux/dart.sha1: -------------------------------------------------------------------------------- 1 | 701c1f2bda5c7fa3cc0f044d7515237bdc2cc163 -------------------------------------------------------------------------------- /dart/tools/testing/bin/macos/dart.sha1: -------------------------------------------------------------------------------- 1 | ecefe6ba96b8da00d171e199b2801982f98cc78d -------------------------------------------------------------------------------- /dart/utils/dartfmt/.gitignore: -------------------------------------------------------------------------------- 1 | /dartfmt.Makefile 2 | /dartfmt.target.mk 3 | -------------------------------------------------------------------------------- /dart/tools/testing/bin/linux/dart-arm.sha1: -------------------------------------------------------------------------------- 1 | 5246a42926c8d5c2ac785c952b76b746270c9484 -------------------------------------------------------------------------------- /dart/tools/testing/bin/linux/dart-mips.sha1: -------------------------------------------------------------------------------- 1 | 7ab189bca5c5cf2997b9ab5770a5b418cd4fa5b1 -------------------------------------------------------------------------------- /dart/runtime/tests/vm/data/fixed_length_file: -------------------------------------------------------------------------------- 1 | This file should contain exactly 42 bytes. -------------------------------------------------------------------------------- /dart/tests/html/cross_domain_iframe_script.js: -------------------------------------------------------------------------------- 1 | window.parent.postMessage('foobar', '*'); -------------------------------------------------------------------------------- /dart/tools/linux_dist_support/debian/dart.install: -------------------------------------------------------------------------------- 1 | debian/tmp/out/dart usr/lib 2 | 3 | -------------------------------------------------------------------------------- /dart/tools/testing/bin/windows/dart.exe.sha1: -------------------------------------------------------------------------------- 1 | c1394c6a589c47f7a6a1315eb1f9885d66852d67 -------------------------------------------------------------------------------- /dart/client/.gitignore: -------------------------------------------------------------------------------- 1 | /Makefile 2 | /out 3 | /xcodebuild 4 | /dart.xcodeproj 5 | /tests 6 | -------------------------------------------------------------------------------- /dart/runtime/bin/vmserviceio_dartium.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | import 'dart:_builtin'; 3 | -------------------------------------------------------------------------------- /dart/runtime/observatory/.gitignore: -------------------------------------------------------------------------------- 1 | bootstrap_css 2 | out 3 | build 4 | .pub 5 | .idea 6 | -------------------------------------------------------------------------------- /dart/tools/apps/update_homebrew/bin/ssh_with_key: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | ssh -i $SSH_KEY_PATH $@ 3 | -------------------------------------------------------------------------------- /dart/tools/linux_dist_support/debian/dart.links: -------------------------------------------------------------------------------- 1 | usr/lib/dart/bin/dart usr/bin/dart 2 | 3 | -------------------------------------------------------------------------------- /dart/utils/dartanalyzer/.gitignore: -------------------------------------------------------------------------------- 1 | /dartanalyzer.Makefile 2 | /dartanalyzer.target.mk 3 | -------------------------------------------------------------------------------- /dart/pkg/analysis_server/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## 0.0.1 4 | 5 | - Initial version 6 | -------------------------------------------------------------------------------- /dart/runtime/third_party/double-conversion/.gitignore: -------------------------------------------------------------------------------- 1 | .sconsign.dblite 2 | run_tests 3 | *.o 4 | -------------------------------------------------------------------------------- /dart/utils/analysis_server/.gitignore: -------------------------------------------------------------------------------- 1 | /analysis_server.Makefile 2 | /analysis_server.target.mk 3 | 4 | -------------------------------------------------------------------------------- /dart/samples/build_dart/test.foo: -------------------------------------------------------------------------------- 1 | I'm from foo. 2 | I'm from foo. 3 | I'm from woot. 4 | //I'm from woot. 5 | -------------------------------------------------------------------------------- /dart/samples/third_party/dromaeo/web/test-tail.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /dart/tools/dart2js/angular2_testing_deps/CURRENT_ANGULAR_DEPS: -------------------------------------------------------------------------------- 1 | 390cfb793b2cd351d2db609d088a8fdda3df4f24 2 | -------------------------------------------------------------------------------- /dart/pkg/js_ast/README.md: -------------------------------------------------------------------------------- 1 | js_ast 2 | ====== 3 | 4 | A library for creating JavaScript ASTs from templates. 5 | -------------------------------------------------------------------------------- /dart/utils/tests/testrunner/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: non_browser_tests 2 | dependencies: 3 | unittest: any 4 | 5 | -------------------------------------------------------------------------------- /dart/pkg/docgen/test/multi_library_code/lib/sublib_dir/sub_lib_part.dart: -------------------------------------------------------------------------------- 1 | part of sub_lib; 2 | 3 | class SubLibPart {} 4 | -------------------------------------------------------------------------------- /dart/runtime/observatory/maintainers/.gitignore: -------------------------------------------------------------------------------- 1 | observatory_pub_packages 2 | packages 3 | pubspec.yaml 4 | pubspec.lock 5 | -------------------------------------------------------------------------------- /dart/pkg/docgen/test/multi_library_code/lib/src/src_lib_part.dart: -------------------------------------------------------------------------------- 1 | part of internal_lib; 2 | 3 | class InternalLibPart {} 4 | -------------------------------------------------------------------------------- /dart/samples/third_party/dromaeo/web/test-head.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 3 | 4 | -------------------------------------------------------------------------------- /dart/tests/standalone/io/readline_test2.dat: -------------------------------------------------------------------------------- 1 | # Test file with 10 lines without terminating line feed 2 | # 3 | Line 3 4 | Line 4 5 | Line 5 6 | Line 6 7 | Line 7 8 | Line 8 9 | Line 9 10 | Line 10 -------------------------------------------------------------------------------- /dart/sdk/lib/_internal/pub/test/asset/out-of-date.snapshot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/bleeding_edge-DEPRECATED-USE-SDK-INSTEAD/master/dart/sdk/lib/_internal/pub/test/asset/out-of-date.snapshot -------------------------------------------------------------------------------- /dart/tests/standalone/io/readline_test1.dat: -------------------------------------------------------------------------------- 1 | # Test file with 10 lines and terminating line feed 2 | # 3 | Line 3 4 | Line 4 5 | Line 5 6 | Line 6 7 | Line 7 8 | Line 8 9 | Line 9 10 | Line 10 11 | -------------------------------------------------------------------------------- /dart/tools/apps/update_homebrew/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: update_homebrew 2 | version: 0.1.0 3 | dependencies: 4 | args: ">=0.12.0+2 <0.13.0" 5 | googleapis: ">=0.2.1 <0.3.0" 6 | http: ">=0.11.1+1 <0.12.0" 7 | -------------------------------------------------------------------------------- /dart/tools/dart2js/sourceMapViewer/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: Display 2 | description: A sample web application 3 | dependencies: 4 | browser: any 5 | http_server: any 6 | route: any 7 | source_maps: any 8 | -------------------------------------------------------------------------------- /dart/tools/testing/extensions/chrome/ConsoleCollector.crx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/bleeding_edge-DEPRECATED-USE-SDK-INSTEAD/master/dart/tools/testing/extensions/chrome/ConsoleCollector.crx -------------------------------------------------------------------------------- /dart/tools/testing/extensions/firefox/ConsoleCollector.xpi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/bleeding_edge-DEPRECATED-USE-SDK-INSTEAD/master/dart/tools/testing/extensions/firefox/ConsoleCollector.xpi -------------------------------------------------------------------------------- /dart/runtime/observatory/lib/src/elements/img/dart_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/bleeding_edge-DEPRECATED-USE-SDK-INSTEAD/master/dart/runtime/observatory/lib/src/elements/img/dart_icon.png -------------------------------------------------------------------------------- /dart/samples/build_dart/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: buildhook2 2 | description: A demo of the buildhook build.dart script. 3 | dependencies: 4 | args: ">=0.9.0 <0.10.0" 5 | environment: 6 | sdk: ">=0.8.10+6 <2.0.0" 7 | -------------------------------------------------------------------------------- /dart/samples/third_party/todomvc_performance/web/app/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/bleeding_edge-DEPRECATED-USE-SDK-INSTEAD/master/dart/samples/third_party/todomvc_performance/web/app/bg.png -------------------------------------------------------------------------------- /dart/tests/compiler/dart2js/http_launch_data/pkcert/cert9.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/bleeding_edge-DEPRECATED-USE-SDK-INSTEAD/master/dart/tests/compiler/dart2js/http_launch_data/pkcert/cert9.db -------------------------------------------------------------------------------- /dart/tests/compiler/dart2js/http_launch_data/pkcert/key4.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/bleeding_edge-DEPRECATED-USE-SDK-INSTEAD/master/dart/tests/compiler/dart2js/http_launch_data/pkcert/key4.db -------------------------------------------------------------------------------- /dart/runtime/observatory/lib/src/elements/img/chromium_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/bleeding_edge-DEPRECATED-USE-SDK-INSTEAD/master/dart/runtime/observatory/lib/src/elements/img/chromium_icon.png -------------------------------------------------------------------------------- /dart/runtime/observatory/lib/src/elements/img/isolate_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/bleeding_edge-DEPRECATED-USE-SDK-INSTEAD/master/dart/runtime/observatory/lib/src/elements/img/isolate_icon.png -------------------------------------------------------------------------------- /dart/samples-dev/swarm/pigeons-jumpinjimmyjava-white90pct-q70.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/bleeding_edge-DEPRECATED-USE-SDK-INSTEAD/master/dart/samples-dev/swarm/pigeons-jumpinjimmyjava-white90pct-q70.jpg -------------------------------------------------------------------------------- /dart/samples/third_party/todomvc_performance/js_todomvc/components/todomvc-common/readme.md: -------------------------------------------------------------------------------- 1 | # todomvc-common 2 | 3 | > Bower component for some common utilities we use in every app 4 | 5 | 6 | ## License 7 | 8 | MIT 9 | -------------------------------------------------------------------------------- /dart/tools/dart2js/angular2_testing_deps/README: -------------------------------------------------------------------------------- 1 | This directory contains a single file, CURRENT_ANGULAR_DEPS that we 2 | use to validate that benchmarks running against angular2 repository is 3 | using the correct version. 4 | -------------------------------------------------------------------------------- /dart/tools/testing/extensions/firefox/ConsoleCollector/chrome.manifest: -------------------------------------------------------------------------------- 1 | content ConsoleCollector chrome/content/ 2 | overlay chrome://browser/content/browser.xul chrome://ConsoleCollector/content/overlay.xul 3 | -------------------------------------------------------------------------------- /dart/pkg/analysis_server/AUTHORS: -------------------------------------------------------------------------------- 1 | # Below is a list of people and organizations that have contributed 2 | # to the project. Names should be added to the list like so: 3 | # 4 | # Name/Organization 5 | 6 | Google Inc. 7 | -------------------------------------------------------------------------------- /dart/codereview.settings: -------------------------------------------------------------------------------- 1 | # This file is used by gcl to get repository specific information. 2 | CODE_REVIEW_SERVER: http://codereview.chromium.org/ 3 | VIEW_VC: https://code.google.com/p/dart/source/detail?r= 4 | CC_LIST: reviews@dartlang.org 5 | -------------------------------------------------------------------------------- /dart/tests/lib/mirrors/deferred_mirrors_update_lib.dart: -------------------------------------------------------------------------------- 1 | library lib; 2 | 3 | @MirrorsUsed(targets: "lib.C") 4 | import "dart:mirrors"; 5 | 6 | class C {} 7 | 8 | foo() { 9 | var a = new C(); 10 | print(reflectClass(C).owner); 11 | } -------------------------------------------------------------------------------- /dart/pkg/stub_core_library/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: stub_core_library 2 | description: A repo-internal package for creating core library stubs. 3 | dependencies: 4 | args: ">=0.11.0 <0.14.0" 5 | analyzer: ">=0.22.0-dev <0.23.0" 6 | path: ">=1.1.0 <2.0.0" 7 | -------------------------------------------------------------------------------- /dart/runtime/CPPLINT.cfg: -------------------------------------------------------------------------------- 1 | # Do not continue looking up the directory hierarchy 2 | # for more config files. 3 | set noparent 4 | 5 | # Do not limit function size. For example parts of 6 | # the simulator are really large. 7 | filter=-readability/fn_size 8 | -------------------------------------------------------------------------------- /dart/tests/language/regress_20394_test.dart: -------------------------------------------------------------------------------- 1 | import 'regress_20394_lib.dart'; 2 | 3 | class M {} 4 | 5 | class C extends Super with M { 6 | C() : super._private(42); /// 01: compile-time error 7 | } 8 | 9 | main() { 10 | new C(); 11 | } 12 | -------------------------------------------------------------------------------- /dart/tools/bots/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | -------------------------------------------------------------------------------- /dart/samples/third_party/todomvc_performance/js_todomvc/components/flatiron-director/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "flatiron-director", 3 | "private": true, 4 | "dependencies": { 5 | "polymer": "Polymer/polymer#0.2.1" 6 | }, 7 | "version": "0.2.1" 8 | } -------------------------------------------------------------------------------- /dart/samples/third_party/todomvc_performance/js_todomvc/components/polymer-selection/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "polymer-selection", 3 | "private": true, 4 | "dependencies": { 5 | "polymer": "Polymer/polymer#0.2.1" 6 | }, 7 | "version": "0.2.1" 8 | } -------------------------------------------------------------------------------- /dart/samples/third_party/todomvc_performance/README.md: -------------------------------------------------------------------------------- 1 | # Polymer TodoMVC Performance Test 2 | 3 | This directory is a copy of samples/third_party/todomvc with some modifications 4 | to make a performance test and added a pure JS implementation for comparison. 5 | -------------------------------------------------------------------------------- /dart/samples/third_party/todomvc_performance/js_todomvc/components/polymer-localstorage/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "polymer-localstorage", 3 | "private": true, 4 | "dependencies": { 5 | "polymer": "Polymer/polymer#0.2.1" 6 | }, 7 | "version": "0.2.1" 8 | } -------------------------------------------------------------------------------- /dart/samples/third_party/todomvc_performance/js_todomvc/components/todomvc-common/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/bleeding_edge-DEPRECATED-USE-SDK-INSTEAD/master/dart/samples/third_party/todomvc_performance/js_todomvc/components/todomvc-common/bg.png -------------------------------------------------------------------------------- /dart/runtime/observatory/tests/ui/inspector.txt: -------------------------------------------------------------------------------- 1 | 0. Run dart --observe inspector.dart 2 | 1. Visit isolate 'root' 3 | 2. Visit library manual_inspector_test 4 | 3. Expand 'variables' 5 | 4. Each should display a reasonable value, not a blank nor an 'Unknown service ref' 6 | -------------------------------------------------------------------------------- /dart/runtime/codereview.settings: -------------------------------------------------------------------------------- 1 | # This file is used by gcl to get repository specific information. 2 | CODE_REVIEW_SERVER: http://codereview.chromium.org/ 3 | VIEW_VC: https://code.google.com/p/dart/source/detail?r= 4 | CC_LIST: reviews@dartlang.org,vm-dev@dartlang.org 5 | -------------------------------------------------------------------------------- /dart/tests/language/missing_part_of_tag_part.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | -------------------------------------------------------------------------------- /dart/tests/language/deferred_load_library_wrong_args_test.dart: -------------------------------------------------------------------------------- 1 | import "deferred_load_library_wrong_args_lib.dart" deferred as lib; 2 | 3 | void main() { 4 | // Loadlibrary should be called without arguments. 5 | lib.loadLibrary( 6 | 10 /// 01: runtime error 7 | ); 8 | } -------------------------------------------------------------------------------- /dart/tools/ddbg_service/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: ddbg 2 | description: A command-line Dart debugger 3 | dependencies: 4 | logging: any 5 | observatory: 6 | path: /Users/turnidge/ws/dart-repo/dart/runtime/bin/vmservice/observatory 7 | #dev_dependencies: 8 | # unittest: any 9 | -------------------------------------------------------------------------------- /dart/samples/third_party/todomvc_performance/AUTHORS: -------------------------------------------------------------------------------- 1 | # Names should be added to this file with this pattern: 2 | # 3 | # For individuals: 4 | # Name 5 | # 6 | # For organizations: 7 | # Organization 8 | # 9 | Google Inc. <*@google.com> 10 | -------------------------------------------------------------------------------- /dart/samples/third_party/todomvc_performance/js_todomvc/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: js_todomvc 2 | description: A snapshot of https://github.com/Polymer/todomvc 3 | version: 0.00.1 4 | dependencies: 5 | browser_controller: ">=0.00.2-dev <0.0.2" 6 | environment: 7 | sdk: ">=1.2.0 <2.0.0" 8 | -------------------------------------------------------------------------------- /dart/samples/third_party/todomvc_performance/web/elements/td_input.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /dart/pkg/browser/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: browser 2 | version: 0.10.1 3 | author: "Dart Team " 4 | homepage: http://www.dartlang.org 5 | description: > 6 | The bootstrap dart.js script for Dart apps running in the browser. 7 | environment: 8 | sdk: ">=1.3.0-dev.4.1 <2.0.0" 9 | -------------------------------------------------------------------------------- /dart/runtime/observatory/lib/src/elements/observatory_element.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /dart/tests/try/poi/data/empty_main.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | void main() {} 6 | -------------------------------------------------------------------------------- /dart/tools/testing/extensions/firefox/ConsoleCollector/Makefile: -------------------------------------------------------------------------------- 1 | ../ConsoleCollector.xpi: chrome.manifest install.rdf chrome/content/console.js chrome/content/overlay.xul 2 | zip -r ../ConsoleCollector.xpi chrome.manifest install.rdf chrome/content/console.js chrome/content/overlay.xul 3 | -------------------------------------------------------------------------------- /dart/tools/testing/extensions/firefox/ConsoleCollector/chrome/content/overlay.xul: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /dart/utils/tests/testrunner/layout_tests/web/layout_test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Testdriver tests 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /dart/samples/third_party/todomvc_performance/js_todomvc/components/polymer-localstorage/AUTHORS: -------------------------------------------------------------------------------- 1 | # Names should be added to this file with this pattern: 2 | # 3 | # For individuals: 4 | # Name 5 | # 6 | # For organizations: 7 | # Organization 8 | # 9 | Google Inc. <*@google.com> 10 | -------------------------------------------------------------------------------- /dart/tests/language/deferred_load_inval_code_lib.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | foo() { 6 | return "foo from library"; 7 | } -------------------------------------------------------------------------------- /dart/tests/language/export_cyclic_helper3.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library export_cyclic_helper3; 6 | 7 | class D {} -------------------------------------------------------------------------------- /dart/tests/language/library1_lib.lib: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library Library1Lib; 6 | 7 | part "library1_lib.dart"; 8 | -------------------------------------------------------------------------------- /dart/tests/language/library5a.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | // 5 | 6 | library Library5a.dart; 7 | 8 | typedef int Fun(); 9 | -------------------------------------------------------------------------------- /dart/tests/language/library5b.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | // 5 | 6 | library Library5b.dart; 7 | 8 | typedef int Fun(x); 9 | -------------------------------------------------------------------------------- /dart/tests/language/regress_19413_bar.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | library bar; 6 | 7 | f() { 8 | print('bar.f()'); 9 | } -------------------------------------------------------------------------------- /dart/tests/language/regress_19413_foo.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | library foo; 6 | 7 | f() { 8 | print('foo.f()'); 9 | } -------------------------------------------------------------------------------- /dart/tests/standalone/package/packages/shared.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library shared; 6 | 7 | var output = ''; 8 | -------------------------------------------------------------------------------- /dart/tools/dom/src/EventListener.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | part of html; 6 | 7 | typedef EventListener(Event event); 8 | -------------------------------------------------------------------------------- /dart/pkg/typed_mock/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: typed_mock 2 | version: 0.0.4 3 | author: Dart Team 4 | description: A library for mocking classes using Mockito-like syntax 5 | homepage: http://www.dartlang.org 6 | environment: 7 | sdk: '>=1.0.0 <2.0.0' 8 | dev_dependencies: 9 | unittest: '>=0.10.0 <0.12.0' 10 | -------------------------------------------------------------------------------- /dart/tests/compiler/dart2js_extra/deferred_fail_and_retry_lib.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | foo() { 6 | return "loaded"; 7 | } -------------------------------------------------------------------------------- /dart/tests/language/application_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library ApplicationTest.dart; 6 | part 'empty_main.dart'; 7 | -------------------------------------------------------------------------------- /dart/tests/language/export_helper2.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library export_helper2; 6 | 7 | class ReExported { 8 | 9 | } -------------------------------------------------------------------------------- /dart/tests/language/export_helper4.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library export_helper4; 6 | 7 | class ReExported { 8 | 9 | } -------------------------------------------------------------------------------- /dart/tests/language/getter_setter_in_lib2.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library GetterSetterInLib2; 6 | 7 | set bar(a) { } 8 | -------------------------------------------------------------------------------- /dart/tests/language/illegal_declaration_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | [ /// 01: compile-time error 6 | 7 | main() {} 8 | -------------------------------------------------------------------------------- /dart/tests/language/issue1578_negative_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | // Regression test for issue 1578. 6 | 7 | ]~<)$ 8 | -------------------------------------------------------------------------------- /dart/tests/language/local_export_a_export.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library local_export_a_export; 6 | 7 | int A = 0; 8 | -------------------------------------------------------------------------------- /dart/tests/language/part_part.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | part of org.dartlang.test.part_test; 6 | 7 | const foo = 'foo'; 8 | -------------------------------------------------------------------------------- /dart/tests/language/prefix24_lib2.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library prefix24_lib2; 6 | 7 | bar() => "prefix24_lib2_bar"; 8 | -------------------------------------------------------------------------------- /dart/tests/language/regress_22443_lib.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library regress_22443; 6 | 7 | class LazyClass { 8 | } 9 | -------------------------------------------------------------------------------- /dart/tests/language/top_level_entry.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | part of top_level_entry_test.dart; 6 | 7 | main() { 8 | } 9 | -------------------------------------------------------------------------------- /dart/tests/language/top_level_file3.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | main() { 6 | Expect.equals(42, prefix.topLevelVar); 7 | } 8 | -------------------------------------------------------------------------------- /dart/runtime/vm/libdart_dependency_helper.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | int main(int argc, char *argv[]) { 6 | return 0; 7 | } 8 | 9 | -------------------------------------------------------------------------------- /dart/tests/compiler/dart2js/http_launch_data/packages/simple/simple.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | foo() => "hello http tester"; 6 | -------------------------------------------------------------------------------- /dart/tests/compiler/dart2js_extra/invalid_length_negative_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | main() { 6 | new List("foo"); 7 | } 8 | -------------------------------------------------------------------------------- /dart/tests/lib/mirrors/deferred_type_other.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library deferred_type_other; 6 | 7 | class DeferredType {} -------------------------------------------------------------------------------- /dart/tools/testing/dart/vendored_pkg/README.txt: -------------------------------------------------------------------------------- 1 | The files in this folder are copies of libraries in the pkg directory. We have 2 | copies here to prevent a bootstrapping issue when running the test.dart binary 3 | in case breaking changes are made to the language in future revisions, we can 4 | still test with a known stable version. 5 | -------------------------------------------------------------------------------- /dart/runtime/lib/convert_sources.gypi: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | { 6 | 'sources': [ 7 | 'convert_patch.dart', 8 | ], 9 | } 10 | -------------------------------------------------------------------------------- /dart/tests/compiler/dart2js_extra/33_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | void main() { 6 | print(3 + 4 * 10 - 8 / 2 - 19 ~/ 3); 7 | } 8 | -------------------------------------------------------------------------------- /dart/tests/language/compile_time_constant_q_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | const double x = 14.0; 6 | main() { 7 | print(x); 8 | } 9 | -------------------------------------------------------------------------------- /dart/tests/language/ct_const4_lib.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | // See CTConst4Test.dart 5 | 6 | library CTConst4Lib; 7 | 8 | const B = 1; 9 | -------------------------------------------------------------------------------- /dart/tests/language/deferred_shadow_load_library_lib.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | loadLibrary() => 42; 6 | 7 | var trueVar = true; 8 | -------------------------------------------------------------------------------- /dart/tests/language/reexport_core_helper.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library reexport_core_helper; 6 | 7 | export 'dart:core'; 8 | 9 | -------------------------------------------------------------------------------- /dart/runtime/lib/class_id.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | class ClassID { 6 | static int getID(Object value) native "ClassID_getID"; 7 | } 8 | -------------------------------------------------------------------------------- /dart/tests/compiler/dart2js_extra/throw1_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | void main() { 6 | throw "foo"; /// 01: runtime error 7 | } 8 | -------------------------------------------------------------------------------- /dart/tests/isolate/browser/package/issue_12474_lib.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | void testPackageRoot(args) { 6 | args[0].send(null); 7 | } 8 | -------------------------------------------------------------------------------- /dart/tests/language/duplicate_export_liba.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library export_liba; 6 | 7 | export 'duplicate_import_liba.dart'; 8 | -------------------------------------------------------------------------------- /dart/tests/language/top_level_entry_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library top_level_entry_test.dart; 6 | part 'top_level_entry.dart'; 7 | -------------------------------------------------------------------------------- /dart/pkg/typed_data/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: typed_data 2 | version: 1.0.1-dev 3 | author: Dart Team 4 | description: Utility functions and classes related to the 'dart:typed_data' library. 5 | homepage: http://www.dartlang.org 6 | dev_dependencies: 7 | unittest: ">=0.9.0 <0.10.0" 8 | environment: 9 | sdk: ">=1.5.0 <2.0.0" 10 | -------------------------------------------------------------------------------- /dart/sdk/bin/docgen: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 3 | # for details. All rights reserved. Use of this source code is governed by a 4 | # BSD-style license that can be found in the LICENSE file. 5 | 6 | echo "The 'docgen' name is deprecated. Prefer 'dartdocgen' instead." 7 | dartdocgen "$@" 8 | -------------------------------------------------------------------------------- /dart/tests/compiler/dart2js_extra/deferred/deferred_mirrors2_lib5.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | class Injectable { 6 | const Injectable(); 7 | } 8 | -------------------------------------------------------------------------------- /dart/tests/language/application_negative_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library application_negative_test.dart; 6 | part 'failing_main.dart'; 7 | -------------------------------------------------------------------------------- /dart/tests/language/deferred_no_such_method_lib.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | @proxy class C { 6 | noSuchMethod(Invocation invocation) => 42; 7 | } -------------------------------------------------------------------------------- /dart/tests/language/library_juxtaposition_lib.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library lib; 6 | 7 | part "library_" "juxtaposition_" "part.dart"; 8 | -------------------------------------------------------------------------------- /dart/tests/language/top_level_prefixed_library_test.lib: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library TopLevelPrefixedLibrary; 6 | part 'top_level_file2.dart'; 7 | -------------------------------------------------------------------------------- /dart/runtime/lib/math_sources.gypi: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | { 6 | 'sources': [ 7 | 'math.cc', 8 | 'math_patch.dart', 9 | ], 10 | } 11 | -------------------------------------------------------------------------------- /dart/tests/compiler/dart2js/dart2js_batch2_run.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | @notExisting 6 | var x; 7 | 8 | main() { 9 | print(x); 10 | } 11 | -------------------------------------------------------------------------------- /dart/tests/compiler/dart2js/path with spaces/library space/part space/part space.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | part of spaces; 6 | 7 | bar() => 499; 8 | -------------------------------------------------------------------------------- /dart/tests/html/callbacks_test.dart: -------------------------------------------------------------------------------- 1 | library CallbacksTest; 2 | import 'package:unittest/unittest.dart'; 3 | import 'package:unittest/html_config.dart'; 4 | import 'dart:html'; 5 | 6 | main() { 7 | useHtmlConfiguration(); 8 | test('RequestAnimationFrameCallback', () { 9 | window.requestAnimationFrame((num time) => false); 10 | }); 11 | } 12 | -------------------------------------------------------------------------------- /dart/tests/html/deferred_multi_app_lib.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | one() { 6 | return "one"; 7 | } 8 | 9 | two() { 10 | return "two"; 11 | } -------------------------------------------------------------------------------- /dart/tests/language/cha_deopt1_lib.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | library mylib; 6 | 7 | class T { 8 | 9 | m() => 42; 10 | 11 | } 12 | 13 | -------------------------------------------------------------------------------- /dart/tests/language/deferred_mixin_shared.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | library shared; 6 | 7 | class SharedMixin { 8 | foo() => "SharedMixin"; 9 | } -------------------------------------------------------------------------------- /dart/tests/language/enum_private_lib.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library enum_private_lib; 6 | 7 | enum Enum2 { 8 | _A, 9 | _B, 10 | } 11 | -------------------------------------------------------------------------------- /dart/tests/language/import_show_lib.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library import_show_lib; 6 | 7 | get theEnd => "http://www.endoftheinternet.com/"; 8 | -------------------------------------------------------------------------------- /dart/tests/language/library3.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | // 5 | 6 | library library3.dart; 7 | 8 | import "library2.dart"; // defines "foo" and "foo1". 9 | -------------------------------------------------------------------------------- /dart/tests/language/library_prefixes_test1.lib: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library LibraryPrefixesTest1.lib; 6 | 7 | part "library_prefixes_test1.dart"; 8 | -------------------------------------------------------------------------------- /dart/tests/language/no_main_test.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | /* /// 01: static type warning, runtime error 6 | main() {} 7 | */ /// 01: continued 8 | -------------------------------------------------------------------------------- /dart/tests/standalone/http_launch_data/packages/simple/simple.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library simple; 6 | 7 | String getSimpleString() => 'hello'; -------------------------------------------------------------------------------- /dart/pkg/docgen/test/multi_library_code/lib/test_lib2_bar.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | library test_lib2_bar; 6 | 7 | class Bar { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /dart/pkg/typed_mock/README.md: -------------------------------------------------------------------------------- 1 | A library for mocking classes and verifying expected interaction with mocks. 2 | 3 | It is inspired by [Mockito](https://code.google.com/p/mockito/). 4 | 5 | The existing "mock" package suffers from using method names as strings, 6 | which makes it impossible to use code-completion, static validation, 7 | search and refactoring. 8 | -------------------------------------------------------------------------------- /dart/runtime/observatory/lib/cli.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library cli; 6 | 7 | import 'dart:async'; 8 | 9 | part 'src/cli/command.dart'; 10 | -------------------------------------------------------------------------------- /dart/tests/compiler/dart2js_extra/panda_lib.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library panda_lib; 6 | 7 | class Panda { 8 | Panda() { 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /dart/tests/html/navigator_test.dart: -------------------------------------------------------------------------------- 1 | library NavigatorTest; 2 | import 'package:unittest/unittest.dart'; 3 | import 'package:unittest/html_config.dart'; 4 | import 'dart:html'; 5 | 6 | main() { 7 | useHtmlConfiguration(); 8 | 9 | test('language never returns null', () { 10 | expect(window.navigator.language, isNotNull); 11 | }); 12 | } 13 | -------------------------------------------------------------------------------- /dart/tests/language/create_unresolved_type_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | main() { 6 | new F(); /// 01: runtime error, static type warning 7 | } 8 | -------------------------------------------------------------------------------- /dart/tests/language/deferred_constant_list_lib.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | final finalConstList = const [1, 2]; 6 | var nonFinalConstList = const [3, 4]; 7 | -------------------------------------------------------------------------------- /dart/tests/language/issue_22780_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | main() { 6 | f() => "Oh, the joy of ${f()}"; print(f()); /// 01: runtime error 7 | } 8 | -------------------------------------------------------------------------------- /dart/tests/language/library_a.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | // 5 | 6 | library libraryA.dart; 7 | import "library_c.dart"; 8 | 9 | var fooA = fooC; 10 | -------------------------------------------------------------------------------- /dart/tests/language/library_b.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | // 5 | 6 | library libraryB.dart; 7 | import "library_c.dart"; 8 | 9 | var fooB = fooC; 10 | -------------------------------------------------------------------------------- /dart/tests/language/library_d.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | // 5 | 6 | library libraryD.dart; 7 | import "library_f.dart"; 8 | 9 | var fooD = fooC; 10 | -------------------------------------------------------------------------------- /dart/tests/language/library_prefixes_test2.lib: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library LibraryPrefixesTest2.lib; 6 | 7 | part "library_prefixes_test2.dart"; 8 | 9 | -------------------------------------------------------------------------------- /dart/tests/language/regress_21998_lib1.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library regress_21998_lib1; 6 | 7 | String max(String a, String b, String c) => '$a$b$c'; -------------------------------------------------------------------------------- /dart/tests/lib/mirrors/library_imports_a.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | library library_imports_a; 6 | 7 | var somethingFromA; 8 | var somethingFromBoth; 9 | -------------------------------------------------------------------------------- /dart/tests/lib/mirrors/library_imports_b.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | library library_imports_b; 6 | 7 | var somethingFromB; 8 | var somethingFromBoth; 9 | -------------------------------------------------------------------------------- /dart/tests/lib/mirrors/library_without_declaration.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | // NO LIBRARY DECLARATION 6 | 7 | class ClassInLibraryWithoutDeclaration {} -------------------------------------------------------------------------------- /dart/samples/third_party/todomvc_performance/js_todomvc/components/polymer-selector/README.md: -------------------------------------------------------------------------------- 1 | polymer-selector 2 | ================ 3 | 4 | [LICENSE](https://raw.github.com/Polymer/polymer/master/LICENSE) 5 | 6 | [PATENTS](https://raw.github.com/Polymer/polymer/master/PATENTS) 7 | 8 | [CONTRIBUTING](https://github.com/Polymer/polymer/blob/master/CONTRIBUTING.md) 9 | -------------------------------------------------------------------------------- /dart/sdk/bin/docgen.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | REM Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 3 | REM for details. All rights reserved. Use of this source code is governed by a 4 | REM BSD-style license that can be found in the LICENSE file. 5 | 6 | echo "The 'docgen.bat' name is deprecated. Prefer 'dartdocgen.bat' instead." 7 | dartdocgen %* 8 | -------------------------------------------------------------------------------- /dart/site/try/nossl.appcache: -------------------------------------------------------------------------------- 1 | CACHE MANIFEST 2 | # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 3 | # for details. All rights reserved. Use of this source code is governed by a 4 | # BSD-style license that can be found in the LICENSE file. 5 | 6 | # @@TIMESTAMP@@ 7 | 8 | FALLBACK: 9 | /leap.dart.js /nossl.js 10 | / /nossl.html 11 | -------------------------------------------------------------------------------- /dart/tests/language/export_double_same_main_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | export 'top_level_entry_test.dart'; 6 | export 'export_main_test.dart' show main; 7 | -------------------------------------------------------------------------------- /dart/tests/language/prefix_test2.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library PrefixTest2.dart; 6 | 7 | class Prefix { 8 | static const int foo = 42; 9 | } 10 | -------------------------------------------------------------------------------- /dart/tests/language/regress_21998_lib2.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library regress_21998_lib2; 6 | 7 | import 'dart:math'; 8 | 9 | lib2_max(a, b) => max(a, b); -------------------------------------------------------------------------------- /dart/tests/language/string_escape2_negative_test_helper.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | // An empty file, attempted sourced by string_escape2_negative_test.dart. 6 | -------------------------------------------------------------------------------- /dart/utils/pub/.gitignore: -------------------------------------------------------------------------------- 1 | /Makefile 2 | /out 3 | /xcodebuild 4 | /*.Makefile 5 | /*.sln 6 | /*.target.mk 7 | /*.vcproj 8 | /*.vcxproj 9 | /*.vcxproj.filters 10 | /*.vcxproj.user 11 | /*.xcodeproj 12 | /Debug 13 | /DebugARM 14 | /DebugIA32 15 | /DebugSIMARM 16 | /DebugX64 17 | /Release 18 | /ReleaseARM 19 | /ReleaseIA32 20 | /ReleaseSIMARM 21 | /ReleaseX64 22 | -------------------------------------------------------------------------------- /dart/pkg/stub_core_library/README.md: -------------------------------------------------------------------------------- 1 | This package exists to create stubs for core libraries that can't be safely 2 | imported on some platforms: `dart:io`, `dart:html`, and so on. These stubs are 3 | included in the SDK and used by pub to support cross-platform packages. 4 | 5 | This is an application package and is not intended to be uploaded to 6 | pub.dartlang.org. 7 | -------------------------------------------------------------------------------- /dart/tests/compiler/dart2js_extra/deferred/deferred_overlapping_lib1.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | import "deferred_overlapping_lib3.dart"; 6 | 7 | class C1 extends C3 {} -------------------------------------------------------------------------------- /dart/tests/compiler/dart2js_extra/deferred/deferred_overlapping_lib2.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | import "deferred_overlapping_lib3.dart"; 6 | 7 | class C2 extends C3 {} -------------------------------------------------------------------------------- /dart/tests/language/extends_test_lib.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library ExtendsTestLib; 6 | 7 | class A { 8 | var y = "class A from library"; 9 | } 10 | -------------------------------------------------------------------------------- /dart/tests/language/lazy_static6_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | library lazy_static6_test; 5 | import "package:expect/expect.dart"; 6 | part "lazy_static6_src.dart"; 7 | -------------------------------------------------------------------------------- /dart/tests/language/prefix_new_test2.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library PrefixNewTest2; 6 | 7 | class Prefix { 8 | static const int foo = 42; 9 | } 10 | -------------------------------------------------------------------------------- /dart/tests/language/private_lib: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | // Dart test for testing access to private fields. 5 | 6 | library PrivateLib; 7 | 8 | part "private_lib.dart"; 9 | -------------------------------------------------------------------------------- /dart/utils/compiler/.gitignore: -------------------------------------------------------------------------------- 1 | /Makefile 2 | /out 3 | /xcodebuild 4 | /*.Makefile 5 | /*.sln 6 | /*.target.mk 7 | /*.vcproj 8 | /*.vcxproj 9 | /*.vcxproj.filters 10 | /*.vcxproj.user 11 | /*.xcodeproj 12 | /Debug 13 | /DebugARM 14 | /DebugIA32 15 | /DebugSIMARM 16 | /DebugX64 17 | /Release 18 | /ReleaseARM 19 | /ReleaseIA32 20 | /ReleaseSIMARM 21 | /ReleaseX64 22 | -------------------------------------------------------------------------------- /dart/sdk/lib/core/type.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | part of dart.core; 6 | 7 | /** 8 | * Runtime representation of a type. 9 | */ 10 | abstract class Type {} 11 | -------------------------------------------------------------------------------- /dart/tests/compiler/dart2js/http_launch_data/http_launch_main.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | 6 | import 'lib1.dart'; 7 | 8 | main() { 9 | print(foo()); 10 | } 11 | -------------------------------------------------------------------------------- /dart/tests/compiler/dart2js_extra/deferred/deferred_mirrors2_lib2.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | library lib2; 6 | import 'deferred_mirrors2_lazy.dart' deferred as admin; 7 | -------------------------------------------------------------------------------- /dart/tests/compiler/dart2js_extra/regress/4740_library.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library _4740_library; 6 | 7 | class Foo { 8 | Foo._internal(); 9 | } 10 | -------------------------------------------------------------------------------- /dart/tests/compiler/dart2js_extra/typed_locals_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | void main() { 6 | String s = 3; 7 | int i = 'hestfisk'; 8 | void v; 9 | } 10 | -------------------------------------------------------------------------------- /dart/tests/language/duplicate_import_libc.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library libc; 6 | 7 | var field; 8 | 9 | void method() {} 10 | 11 | class Class {} 12 | -------------------------------------------------------------------------------- /dart/tests/language/export_ambiguous_main_negative_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | export 'export_ambiguous_main_a.dart'; 6 | export 'export_ambiguous_main_b.dart'; 7 | -------------------------------------------------------------------------------- /dart/tests/language/regress_10996_lib.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library regress_10996_lib; 6 | 7 | var a = 3; 8 | var b = 4; 9 | var c = 5; 10 | var d = 6; 11 | -------------------------------------------------------------------------------- /dart/tests/language/regress_13462_0_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | import 'dart:mirrors'; 6 | 7 | main() { 8 | print(MirrorSystem.getName(#foo)); 9 | } 10 | -------------------------------------------------------------------------------- /dart/tests/language/regress_21998_lib3.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library regress_21998_lib3; 6 | 7 | import 'dart:math' as math; 8 | 9 | lib3_max(a, b) => math.max(a, b); -------------------------------------------------------------------------------- /dart/tests/lib/mirrors/library_metadata2_lib1.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | @MyConst() 6 | library lib1; 7 | 8 | class MyConst { 9 | const MyConst(); 10 | } 11 | -------------------------------------------------------------------------------- /dart/tools/linux_dist_support/debian/control: -------------------------------------------------------------------------------- 1 | Source: dart 2 | Maintainer: Soren Gjesse 3 | Section: misc 4 | Priority: optional 5 | Standards-Version: 3.9.2 6 | Build-Depends: debhelper (>= 9), 7 | python, 8 | 9 | Package: dart 10 | Architecture: amd64 i386 armhf armel 11 | Depends: ${shlibs:Depends}, ${misc:Depends} 12 | Description: Dart SDK 13 | -------------------------------------------------------------------------------- /dart/pkg/docgen/lib/src/exports/libraries.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | library docgen.exports.libraries; 6 | 7 | export '../../../../../sdk/lib/_internal/libraries.dart'; 8 | -------------------------------------------------------------------------------- /dart/runtime/lib/num.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | abstract class _Num implements num { 6 | 7 | /* patch */ String toString() native "Num_toString"; 8 | 9 | } 10 | -------------------------------------------------------------------------------- /dart/samples-dev/swarm/swarm.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library swarm; 6 | 7 | import 'swarmlib.dart'; 8 | 9 | void main() { 10 | new Swarm().run(); 11 | } 12 | -------------------------------------------------------------------------------- /dart/samples/third_party/todomvc_performance/js_todomvc/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "todomvc-template", 3 | "version": "0.0.0", 4 | "dependencies": { 5 | "todomvc-common": "~0.1.4", 6 | "polymer-selector": "Polymer/polymer-selector", 7 | "flatiron-director": "Polymer/flatiron-director", 8 | "polymer-localstorage": "Polymer/polymer-localstorage" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /dart/tests/compiler/dart2js_extra/foo7_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | void main() { 6 | print(foo()); 7 | } 8 | 9 | int foo() { 10 | return 3 + 4; 11 | } 12 | -------------------------------------------------------------------------------- /dart/tests/compiler/dart2js_extra/regress/4434_lib.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library lib_a; 6 | 7 | class A { 8 | x(A a) => a._x; 9 | get _x => null; 10 | } 11 | -------------------------------------------------------------------------------- /dart/tests/html/cross_domain_iframe_script.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | cross_domain_iframe_script 7 | 8 | 9 | 10 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /dart/tests/language/cha_deopt2_deferred_lib.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | import "cha_deopt2_lib.dart"; 6 | 7 | class U extends T { } 8 | 9 | make_u() => new U(); 10 | -------------------------------------------------------------------------------- /dart/tests/language/getter_setter_in_lib.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library GetterSetterInLib; 6 | 7 | get foo => 42; 8 | set foo(a) {} 9 | 10 | get bar => 77; 11 | -------------------------------------------------------------------------------- /dart/tests/language/prefix24_lib3.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library prefix24_lib3; 6 | 7 | class X { 8 | static bar() => "static method bar of class X"; 9 | } 10 | -------------------------------------------------------------------------------- /dart/tests/standalone/package/packages/package2.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library package2; 6 | 7 | class X { 8 | const X(); 9 | } 10 | const X x = const X(); 11 | -------------------------------------------------------------------------------- /dart/tools/canary.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | // Script which exits with code 42. 6 | 7 | import 'dart:io'; 8 | 9 | void main() { 10 | exitCode = 42; 11 | } 12 | -------------------------------------------------------------------------------- /dart/utils/apidoc/.gitignore: -------------------------------------------------------------------------------- 1 | /Makefile 2 | /out 3 | /runtime 4 | /xcodebuild 5 | /*.Makefile 6 | /*.sln 7 | /*.target.mk 8 | /*.vcproj 9 | /*.vcxproj 10 | /*.vcxproj.filters 11 | /*.vcxproj.user 12 | /*.xcodeproj 13 | /Debug 14 | /DebugARM 15 | /DebugIA32 16 | /DebugSIMARM 17 | /DebugX64 18 | /Release 19 | /ReleaseARM 20 | /ReleaseIA32 21 | /ReleaseSIMARM 22 | /ReleaseX64 23 | -------------------------------------------------------------------------------- /dart/pkg/docgen/lib/src/exports/mirrors_util.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | library docgen.exports.mirrors_util; 6 | 7 | export 'package:compiler/src/mirrors/mirrors_util.dart'; 8 | -------------------------------------------------------------------------------- /dart/runtime/.gitignore: -------------------------------------------------------------------------------- 1 | /Makefile 2 | /out 3 | /pkg 4 | /runtime 5 | /xcodebuild 6 | /*.Makefile 7 | /*.sln 8 | /*.target.mk 9 | /*.vcproj 10 | /*.vcxproj 11 | /*.vcxproj.filters 12 | /*.vcxproj.user 13 | /*.xcodeproj 14 | /Debug 15 | /DebugARM 16 | /DebugIA32 17 | /DebugSIMARM 18 | /DebugX64 19 | /Release 20 | /ReleaseARM 21 | /ReleaseIA32 22 | /ReleaseSIMARM 23 | /ReleaseX64 24 | -------------------------------------------------------------------------------- /dart/tests/isolate/deferred_in_isolate2_lib.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | // Used by deferred_in_isolate2_test. 6 | library deferred_in_isolate2_lib; 7 | 8 | String f() => "hi"; 9 | -------------------------------------------------------------------------------- /dart/tests/language/cha_deopt3_deferred_lib.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | import "cha_deopt3_lib.dart"; 6 | 7 | class U implements T { } 8 | 9 | make_u() => new U(); 10 | -------------------------------------------------------------------------------- /dart/tests/language/export_ambiguous_main_a.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library export_ambiguous_main_a; 6 | 7 | main() { 8 | print('export_ambiguous_main_a'); 9 | } 10 | -------------------------------------------------------------------------------- /dart/tests/language/export_ambiguous_main_b.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library export_ambiguous_main_b; 6 | 7 | main() { 8 | print('export_ambiguous_main_b'); 9 | } 10 | -------------------------------------------------------------------------------- /dart/tests/language/inline_super_part.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | part of inline_super_test; 6 | 7 | class Player extends LivingActor { 8 | Player () : super(); 9 | } 10 | -------------------------------------------------------------------------------- /dart/tests/language/library1_lib.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | part of Library1Lib; 6 | 7 | class A { 8 | A() {} 9 | String foo() { return "foo-rty two"; } 10 | } 11 | -------------------------------------------------------------------------------- /dart/tests/language/library_e.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | // 5 | 6 | library libraryE.dart; 7 | import "library_c.dart"; 8 | import "library_f.dart"; 9 | 10 | var fooE = 0; 11 | -------------------------------------------------------------------------------- /dart/tests/language/script_source.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | // A perfectly legal dart source file for use with script and library tests. 6 | 7 | const int script_source = 1; 8 | -------------------------------------------------------------------------------- /dart/tests/language/string_escape3_negative_test_helper.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | // An empty library, imported by string_escape3_negative_test.dart. 6 | 7 | library empty; 8 | -------------------------------------------------------------------------------- /dart/tests/language/top_level_file2.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | part of TopLevelMultipleFilesTest.dart; 6 | 7 | const topLevelVar = 42; 8 | 9 | topLevelMethod() => 87; 10 | -------------------------------------------------------------------------------- /dart/tools/testing/dart/browser_perf_testing/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: browser_perf_testing 2 | version: 0.0.1 3 | author: Dart Team 4 | description: Framework for running performance benchmarks in the browser with our testing framework. 5 | homepage: http://www.dartlang.org 6 | dependencies: 7 | path: any 8 | args: any 9 | dev_dependencies: 10 | environment: 11 | -------------------------------------------------------------------------------- /dart/pkg/docgen/lib/src/exports/dart2js_mirrors.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | library docgen.exports.dart2js_mirrors; 6 | 7 | export 'package:compiler/src/mirrors/dart2js_mirrors.dart'; 8 | -------------------------------------------------------------------------------- /dart/runtime/third_party/double-conversion/README.dart: -------------------------------------------------------------------------------- 1 | URL: http://code.google.com/p/double-conversion/ 2 | Version: double-conversion 1.1.5 3 | License: BSD 4 | License File: LICENSE 5 | 6 | Description: 7 | This is the double->string and string->double library that has been developed 8 | for v8. 9 | 10 | Local Modifications: 11 | Removed the test directory and the build files. 12 | -------------------------------------------------------------------------------- /dart/tests/compiler/dart2js_extra/crash_library_metadata.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | @Constant() 6 | library foo; 7 | 8 | class Constant { 9 | const Constant(); 10 | } 11 | -------------------------------------------------------------------------------- /dart/tests/language/export_main_override_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | export 'top_level_entry_test.dart'; 6 | 7 | main() { 8 | print('export_main_override'); 9 | } 10 | -------------------------------------------------------------------------------- /dart/tests/language/issue9664_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | // Regression test for http://dartbug.com/9664 6 | 7 | main() { 8 | while (true ? true : true) break; 9 | } 10 | -------------------------------------------------------------------------------- /dart/tests/language/part_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library org.dartlang.test.part_test; 6 | 7 | part "part_part.dart"; 8 | 9 | main() { 10 | print(foo); 11 | } 12 | -------------------------------------------------------------------------------- /dart/tests/language/truncdiv_uint32_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | var a = [0xFFFFFFFF]; 6 | 7 | main() { 8 | if (a[0] ~/ 1 != 0xFFFFFFFF) throw 'Test failed'; 9 | } 10 | -------------------------------------------------------------------------------- /dart/tests/standalone/io/process_echo_util.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | import "dart:io"; 6 | 7 | void main(List arguments) { 8 | arguments.forEach(print); 9 | } 10 | -------------------------------------------------------------------------------- /dart/tools/bots/steps_clank.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python 2 | # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 3 | # for details. All rights reserved. Use of this source code is governed by a 4 | # BSD-style license that can be found in the LICENSE file. 5 | 6 | import sys 7 | 8 | def main(): 9 | sys.exit(0) 10 | 11 | if __name__ == '__main__': 12 | main() 13 | -------------------------------------------------------------------------------- /dart/tools/dart2js/sourceMapViewer/README.TXT: -------------------------------------------------------------------------------- 1 | This program serves a visualization of a JavaScript source map file generated 2 | by dart2js or pub. 3 | 4 | Run 'pub build' to build the application. 5 | 6 | Usage: dart --package-root=packages/ bin/source_map_viewer.dart . 7 | 8 | The default system browser is started and pointed to the viewer if available. 9 | 10 | -------------------------------------------------------------------------------- /dart/tools/dom/docs/docs.status: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | # docs.dart is a tool that only runs on the VM 6 | [ $compiler == dart2js || $runtime == drt || $runtime == dartium ] 7 | *: Skip 8 | -------------------------------------------------------------------------------- /dart/pkg/microlytics/pubspec.yaml: -------------------------------------------------------------------------------- 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 3 | # BSD-style license that can be found in the LICENSE file. 4 | 5 | name: microlytics 6 | description: A minimal implementation of the Analytics API in pure Dart 7 | dev_dependencies: 8 | unittest: any 9 | -------------------------------------------------------------------------------- /dart/runtime/observatory/lib/src/elements/code_ref.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /dart/runtime/vm/service/message_router.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | part of vmservice; 6 | 7 | abstract class MessageRouter { 8 | Future route(Message message); 9 | } 10 | -------------------------------------------------------------------------------- /dart/samples-dev/swarm/appengine/cron.yaml: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | cron: 6 | - description: check for new data on registered feeds 7 | url: /update/allFeeds 8 | schedule: every 20 minutes 9 | -------------------------------------------------------------------------------- /dart/samples/third_party/todomvc_performance/web/lib-elements/simple_router.html: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /dart/tests/isolate/deferred_loaded_lib.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | class FromChildIsolate { 6 | String toString() => 'from child isolate'; 7 | int get fld => 10; 8 | } 9 | 10 | -------------------------------------------------------------------------------- /dart/tests/language/getter_setter_in_lib3.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library GetterSetterInLib3; 6 | 7 | var _f = 33; 8 | 9 | set bar(a) { _f = a; } 10 | 11 | get bar => _f; 12 | -------------------------------------------------------------------------------- /dart/tests/language/unary_plus_negative_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | // There is no unary plus operator in Dart. 6 | 7 | main() { 8 | var a = 1; 9 | var b = +a; 10 | } 11 | -------------------------------------------------------------------------------- /dart/pkg/docgen/test/multi_library_code/lib/test_lib2.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | library test_lib2; 6 | 7 | export 'test_lib2_foo.dart'; 8 | 9 | String fooFunc(bool fooFuncParam(int x)) => 'hi'; -------------------------------------------------------------------------------- /dart/runtime/lib/developer.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | patch bool debugger({bool when: true, String msg}) native "Developer_debugger"; 6 | 7 | patch inspect(object) native "Developer_inspect"; 8 | -------------------------------------------------------------------------------- /dart/tests/compiler/dart2js/http_launch_data/http_launch_main_package.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | 6 | import 'package:simple/simple.dart'; 7 | 8 | main() { 9 | print(foo()); 10 | } 11 | -------------------------------------------------------------------------------- /dart/tests/language/bad_raw_string_negative_test.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | main() { 6 | // Raw String may not contain newline (may not be multi-line). 7 | print(r' 8 | '); 9 | } 10 | -------------------------------------------------------------------------------- /dart/tests/language/duplicate_import_libb.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library libb; 6 | 7 | var field; 8 | 9 | void method() {} 10 | 11 | class Class {} 12 | 13 | class methodOrClass {} -------------------------------------------------------------------------------- /dart/tests/language/library4.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | // 5 | 6 | library library4.dart; 7 | 8 | import "library2.dart"; // defines "foo" and "foo1". 9 | var foo; 10 | var foo1 = 0; 11 | -------------------------------------------------------------------------------- /dart/tests/language/local_export_a.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library local_export_a; 6 | 7 | export 'local_export_a_export.dart'; 8 | 9 | class A { 10 | method() => 42; 11 | } 12 | -------------------------------------------------------------------------------- /dart/tests/language/regress_22666_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | import 'dart:collection'; 6 | 7 | class A extends Object with LinkedListEntry { } 8 | 9 | main() => new A(); 10 | -------------------------------------------------------------------------------- /dart/tests/try/poi/data/interesting.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | library interesting; 6 | 7 | class Foo { 8 | fisk() { 9 | } 10 | hest() { 11 | } 12 | } 13 | 14 | main() {} 15 | -------------------------------------------------------------------------------- /dart/runtime/observatory/lib/src/elements/class_ref.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /dart/sdk/bin/dart2js_developer.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | REM Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3 | REM for details. All rights reserved. Use of this source code is governed by a 4 | REM BSD-style license that can be found in the LICENSE file. 5 | 6 | setlocal 7 | set DART2JS_DEVELOPER_MODE=1 8 | call "%~dp0dart2js.bat" %* 9 | endlocal 10 | exit /b %errorlevel% 11 | -------------------------------------------------------------------------------- /dart/site/try/src/themes.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library trydart.themes; 6 | 7 | import 'decoration.dart'; 8 | 9 | part 'theme_default.dart'; 10 | 11 | part 'extracted_themes.dart'; 12 | -------------------------------------------------------------------------------- /dart/tests/compiler/dart2js/path with spaces/library space/lib with spaces.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | library spaces; 6 | 7 | part "part space/part space.dart"; 8 | 9 | foo() => bar(); 10 | -------------------------------------------------------------------------------- /dart/tests/compiler/dart2js_extra/function_parameters_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | void main() { 6 | print(foo(3) + foo(4)); 7 | } 8 | 9 | int foo(int a) { 10 | return a; 11 | } 12 | -------------------------------------------------------------------------------- /dart/tests/language/built_in_identifier_prefix_library_as.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library as; 6 | 7 | class A { 8 | } 9 | 10 | class B { 11 | } 12 | 13 | class C { 14 | } 15 | -------------------------------------------------------------------------------- /dart/tests/language/built_in_identifier_prefix_library_get.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library get; 6 | 7 | class A { 8 | } 9 | 10 | class B { 11 | } 12 | 13 | class C { 14 | } 15 | -------------------------------------------------------------------------------- /dart/tests/language/built_in_identifier_prefix_library_set.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library set; 6 | 7 | class A { 8 | } 9 | 10 | class B { 11 | } 12 | 13 | class C { 14 | } 15 | -------------------------------------------------------------------------------- /dart/tests/language/cha_deopt2_lib.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | library mylib; 6 | 7 | class A { } 8 | class B { } 9 | class C { } 10 | class D { } 11 | class E { } 12 | class T { } 13 | 14 | -------------------------------------------------------------------------------- /dart/tests/language/cha_deopt3_lib.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | library mylib; 6 | 7 | class A { } 8 | class B { } 9 | class C { } 10 | class D { } 11 | class E { } 12 | class T { } 13 | 14 | -------------------------------------------------------------------------------- /dart/tests/language/duplicate_constructor_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | class Foo { 6 | Foo(); 7 | Foo(); /// 01: compile-time error 8 | } 9 | 10 | main() { 11 | new Foo(); 12 | } 13 | -------------------------------------------------------------------------------- /dart/tests/language/duplicate_export_negative_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library duplicate_export_negative_test; 6 | 7 | import 'duplicate_import_libd.dart'; 8 | 9 | void main() { 10 | } -------------------------------------------------------------------------------- /dart/tests/language/export1_lib.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library export1_lib; 6 | 7 | export "dart:math" show LN10, LN2, E; 8 | 9 | var E = "E"; // Hides constant E from math lib. 10 | -------------------------------------------------------------------------------- /dart/tests/language/issue9602_other.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | // Regression test case for http://dartbug.com/9602 6 | library issue9602_other; 7 | 8 | class M { 9 | var _field; 10 | } 11 | -------------------------------------------------------------------------------- /dart/tests/language/lazy_map_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | import "package:expect/expect.dart"; 6 | 7 | var data = { 'a': 'a' }; 8 | main() { 9 | Expect.equals('a', data['a']); 10 | } 11 | -------------------------------------------------------------------------------- /dart/tests/language/new_prefix_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | import 'dart:core' as prefix; 6 | 7 | main() { 8 | return new prefix(); /// 01: static type warning, runtime error 9 | } 10 | -------------------------------------------------------------------------------- /dart/tests/language/private_access_lib.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library private; 6 | 7 | _function() {} 8 | 9 | class _Class {} 10 | 11 | class Class { 12 | Class._constructor(); 13 | } -------------------------------------------------------------------------------- /dart/tests/language/string_escape4_negative_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | // Test that newlines cannot be escaped in strings. 6 | 7 | main() { 8 | print('Hello, World!\ 9 | '); 10 | } 11 | -------------------------------------------------------------------------------- /dart/tests/standalone/package/packages/lib3/sub/lib3.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library lib3; 6 | 7 | import 'package:shared.dart'; 8 | 9 | void lib3() { 10 | output += '|lib3'; 11 | } 12 | -------------------------------------------------------------------------------- /dart/runtime/bin/builtin_sources.gypi: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | # This file contains all dart sources for the dart:_builtin library. 6 | { 7 | 'sources': [ 8 | 'builtin.dart', 9 | ], 10 | } 11 | -------------------------------------------------------------------------------- /dart/samples-dev/swarm/lefttriangle.svg: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 7 | 8 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /dart/samples-dev/swarm/righttriangle.svg: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 7 | 8 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /dart/tests/compiler/dart2js_extra/deferred/deferred_mirrors2_lib4.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | import 'deferred_mirrors2_lib5.dart' show Injectable; 6 | 7 | @Injectable() 8 | class A { 9 | } 10 | -------------------------------------------------------------------------------- /dart/tests/html/dom_constructors_test.dart: -------------------------------------------------------------------------------- 1 | library DOMConstructorsTest; 2 | import 'package:unittest/unittest.dart'; 3 | import 'package:unittest/html_config.dart'; 4 | import 'dart:html'; 5 | 6 | main() { 7 | useHtmlConfiguration(); 8 | test('FileReader', () { 9 | FileReader fileReader = new FileReader(); 10 | expect(fileReader.readyState, equals(FileReader.EMPTY)); 11 | }); 12 | } 13 | -------------------------------------------------------------------------------- /dart/tests/html/dromaeo_noop/dromaeo_smoke.dart.js: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | window.onload = function(){ 6 | startTest("dom-nothing"); 7 | test( "no-op", function(){}); 8 | endTest(); 9 | }; 10 | -------------------------------------------------------------------------------- /dart/tests/html/window_eq_test.dart: -------------------------------------------------------------------------------- 1 | library WindowEqualityTest; 2 | import 'package:unittest/unittest.dart'; 3 | import 'package:unittest/html_config.dart'; 4 | import 'dart:html'; 5 | 6 | main() { 7 | useHtmlConfiguration(); 8 | var obfuscated = null; 9 | 10 | test('notNull', () { 11 | expect(window, isNotNull); 12 | expect(window, isNot(equals(obfuscated))); 13 | }); 14 | } 15 | -------------------------------------------------------------------------------- /dart/tests/language/built_in_identifier_prefix_library_export.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library export; 6 | 7 | class A { 8 | } 9 | 10 | class B { 11 | } 12 | 13 | class C { 14 | } 15 | -------------------------------------------------------------------------------- /dart/tests/language/built_in_identifier_prefix_library_import.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library import; 6 | 7 | class A { 8 | } 9 | 10 | class B { 11 | } 12 | 13 | class C { 14 | } 15 | -------------------------------------------------------------------------------- /dart/tests/language/built_in_identifier_prefix_library_part.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library part; 6 | 7 | class A { 8 | } 9 | 10 | class B { 11 | } 12 | 13 | class C { 14 | } 15 | -------------------------------------------------------------------------------- /dart/tests/language/built_in_identifier_prefix_library_static.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library static; 6 | 7 | class A { 8 | } 9 | 10 | class B { 11 | } 12 | 13 | class C { 14 | } 15 | -------------------------------------------------------------------------------- /dart/tests/language/duplicate_import_liba.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library liba; 6 | 7 | var field; 8 | 9 | void method() {} 10 | 11 | class Class {} 12 | 13 | void methodOrClass() {} 14 | -------------------------------------------------------------------------------- /dart/tests/language/final_for_in_variable_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | main() { 6 | for (final i in [1, 2, 3]) { 7 | i = 4; /// 01: static type warning, runtime error 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /dart/tests/language/main_not_a_function_test.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | /* /// 01: static type warning, runtime error 6 | main() {} 7 | */ /// 01: continued 8 | 9 | var main; /// 01: continued 10 | -------------------------------------------------------------------------------- /dart/tests/language/script_lib.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | // A perfectly legal dart library for use with script and library tests. 6 | 7 | library ScriptLib; 8 | 9 | const int script_lib = 1; 10 | -------------------------------------------------------------------------------- /dart/tests/lib/mirrors/metadata_allowed_values_import.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | class Imported { 6 | const Imported(); 7 | const Imported.named(); 8 | static const CONSTANT = 0; 9 | } 10 | -------------------------------------------------------------------------------- /dart/tools/dom/templates/html/dartium/cpp_derived_sources.template: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | // WARNING: Do not edit - generated code. 6 | 7 | #define NO_IMPLICIT_ATOMICSTRING 8 | 9 | $!INCLUDES 10 | -------------------------------------------------------------------------------- /dart/pkg/docgen/lib/src/exports/source_mirrors.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | library docgen.exports.source_mirrors; 6 | 7 | export 'package:compiler/src/mirrors/source_mirrors.dart' 8 | hide SourceLocation; 9 | -------------------------------------------------------------------------------- /dart/samples/third_party/todomvc_performance/js_todomvc/components/polymer-localstorage/test/js/polymer-localstorage.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2013 The Polymer Authors. All rights reserved. 3 | * Use of this source code is governed by a BSD-style 4 | * license that can be found in the LICENSE file. 5 | */ 6 | 7 | htmlSuite('polymer-localstorage', function() { 8 | htmlTest('html/polymer-localstorage.html'); 9 | }); -------------------------------------------------------------------------------- /dart/sdk/lib/_internal/pub/bin/pub.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | import '../lib/src/command_runner.dart'; 6 | 7 | void main(List arguments) { 8 | new PubCommandRunner().run(arguments); 9 | } 10 | -------------------------------------------------------------------------------- /dart/tests/_chrome/_chrome.status: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | [ $runtime == vm ] 6 | # Not supported on the VM 7 | *: Skip 8 | 9 | [ $compiler == none] 10 | # Not supported on Dartium right now 11 | *: Skip 12 | -------------------------------------------------------------------------------- /dart/tests/corelib/main_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library main_test; 6 | import "package:expect/expect.dart"; 7 | 8 | main(List args) { 9 | Expect.equals(0, args.length); 10 | } 11 | -------------------------------------------------------------------------------- /dart/tests/language/built_in_identifier_prefix_library_abstract.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library abstract; 6 | 7 | class A { 8 | } 9 | 10 | class B { 11 | } 12 | 13 | class C { 14 | } 15 | -------------------------------------------------------------------------------- /dart/tests/language/built_in_identifier_prefix_library_dynamic.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library dynamic; 6 | 7 | class A { 8 | } 9 | 10 | class B { 11 | } 12 | 13 | class C { 14 | } 15 | -------------------------------------------------------------------------------- /dart/tests/language/built_in_identifier_prefix_library_external.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library external; 6 | 7 | class A { 8 | } 9 | 10 | class B { 11 | } 12 | 13 | class C { 14 | } 15 | -------------------------------------------------------------------------------- /dart/tests/language/built_in_identifier_prefix_library_factory.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library factory; 6 | 7 | class A { 8 | } 9 | 10 | class B { 11 | } 12 | 13 | class C { 14 | } 15 | -------------------------------------------------------------------------------- /dart/tests/language/built_in_identifier_prefix_library_library.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library library; 6 | 7 | class A { 8 | } 9 | 10 | class B { 11 | } 12 | 13 | class C { 14 | } 15 | -------------------------------------------------------------------------------- /dart/tests/language/built_in_identifier_prefix_library_operator.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library operator; 6 | 7 | class A { 8 | } 9 | 10 | class B { 11 | } 12 | 13 | class C { 14 | } 15 | -------------------------------------------------------------------------------- /dart/tests/language/built_in_identifier_prefix_library_typedef.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library typedef; 6 | 7 | class A { 8 | } 9 | 10 | class B { 11 | } 12 | 13 | class C { 14 | } 15 | -------------------------------------------------------------------------------- /dart/tests/language/deferred_regression_22995_lib.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | import 'deferred_regression_22995_test.dart'; 6 | 7 | foofoo() { 8 | new A(); 9 | new B(); 10 | new C(); 11 | } 12 | -------------------------------------------------------------------------------- /dart/tests/language/interceptor5_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | import "package:expect/expect.dart"; 6 | 7 | get X => [() => 123]; 8 | 9 | main() { 10 | Expect.equals(123, X.last()); 11 | } 12 | -------------------------------------------------------------------------------- /dart/tests/language/list_tracer_in_list_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | main() { 6 | var a = [[]]; 7 | a[0].add(42); 8 | if (a[0].length != 1) { 9 | throw 'Test failed'; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /dart/tests/standalone/package/invalid_uri_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library invalid_uri_test; 6 | 7 | import 'package://lib1.dart'; // Should not contain "//". 8 | 9 | void main() { 10 | } 11 | -------------------------------------------------------------------------------- /dart/runtime/lib/identical_patch.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | patch bool identical(Object a, Object b) native "Identical_comparison"; 6 | 7 | patch int identityHashCode(Object object) => object._identityHashCode; 8 | -------------------------------------------------------------------------------- /dart/samples/third_party/todomvc_performance/js_todomvc/components/polymer/polymer.html: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /dart/sdk/bin/dartanalyzer_developer.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | REM Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 3 | REM for details. All rights reserved. Use of this source code is governed by a 4 | REM BSD-style license that can be found in the LICENSE file. 5 | 6 | setlocal 7 | set DARTANALYZER_DEVELOPER_MODE=1 8 | call "%~dp0dartanalyzer.bat" %* 9 | endlocal 10 | exit /b %errorlevel% 11 | -------------------------------------------------------------------------------- /dart/tests/compiler/dart2js/path with spaces/file with spaces.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | import 'library space/lib with spaces.dart'; 6 | 7 | main() { 8 | if (foo() != 499) throw "bad value"; 9 | } 10 | -------------------------------------------------------------------------------- /dart/tests/language/built_in_identifier_prefix_library_implements.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library implements; 6 | 7 | class A { 8 | } 9 | 10 | class B { 11 | } 12 | 13 | class C { 14 | } 15 | -------------------------------------------------------------------------------- /dart/tests/language/field_type_check_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | class A { 6 | int e; 7 | } 8 | 9 | int main() { 10 | new A().e = "String"; /// 01: static type warning, dynamic type error 11 | } 12 | -------------------------------------------------------------------------------- /dart/tests/language/issue11724_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | import "package:expect/expect.dart"; 6 | 7 | void main() { 8 | Expect.throws(() => method([]), (e) => e is NoSuchMethodError); 9 | } 10 | -------------------------------------------------------------------------------- /dart/tests/language/mixin_prefix_lib.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library mixin_prefix_lib; 6 | 7 | import "dart:convert"; 8 | 9 | class MixinClass { 10 | String bar() => JSON.encode({'a':1}); 11 | } 12 | -------------------------------------------------------------------------------- /dart/tests/language/part2_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library org.dartlang.test.part2_test; 6 | 7 | part "part_part.dart"; // This is a static warning. 8 | 9 | main() { 10 | print(foo); 11 | } 12 | -------------------------------------------------------------------------------- /dart/pkg/compiler/lib/src/util/util_implementation.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library util_implementation; 6 | 7 | import 'util.dart'; 8 | import 'dart:collection'; 9 | 10 | part 'link_implementation.dart'; 11 | -------------------------------------------------------------------------------- /dart/runtime/lib/developer_sources.gypi: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | # Sources visible via dart:developer library. 6 | 7 | { 8 | 'sources': [ 9 | 'developer.cc', 10 | 'developer.dart', 11 | ], 12 | } 13 | 14 | -------------------------------------------------------------------------------- /dart/runtime/lib/profiler_sources.gypi: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | # Sources visible via dart:profiler library. 6 | 7 | { 8 | 'sources': [ 9 | 'profiler.cc', 10 | 'profiler.dart', 11 | ], 12 | } 13 | 14 | -------------------------------------------------------------------------------- /dart/runtime/lib/stacktrace.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | // VM internal StackTrace implementation. 6 | class _StackTrace implements StackTrace { 7 | // toString() is overridden on the C++ side. 8 | } 9 | 10 | -------------------------------------------------------------------------------- /dart/samples-dev/swarm/appengine/queue.yaml: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | queue: 6 | - name: priority-queue 7 | rate: 50/s 8 | bucket_size: 50 9 | 10 | - name: background 11 | rate: 5/s 12 | bucket_size: 20 13 | -------------------------------------------------------------------------------- /dart/sdk/lib/mirrors/mirrors_sources.gypi: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | { 6 | 'sources': [ 7 | 'mirrors.dart', 8 | # The above file needs to be first if additional parts are added to the lib. 9 | ], 10 | } 11 | -------------------------------------------------------------------------------- /dart/tests/isolate/browser/issue_12474_child.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | import 'dart:isolate'; 6 | import 'package:issue_12474_lib.dart'; 7 | 8 | void main([args, port]) { 9 | testPackageRoot(args); 10 | } 11 | -------------------------------------------------------------------------------- /dart/tests/language/cha_deopt1_deferred_lib.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | import "cha_deopt1_lib.dart"; 6 | 7 | class U extends T { 8 | 9 | m() => "good horse"; 10 | 11 | } 12 | 13 | make_u() => new U(); 14 | -------------------------------------------------------------------------------- /dart/tests/language/issue1363_lib.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library Issue1363; 6 | 7 | class C { } 8 | 9 | class Cup { 10 | var foo; 11 | Cup(this.foo); 12 | 13 | T getContents() => foo; 14 | } 15 | -------------------------------------------------------------------------------- /dart/tests/language/private_other.lib: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | // Dart test for testing access to private fields. 6 | 7 | library PrivateOther; 8 | 9 | import "private_test.dart"; 10 | part "private3.dart"; 11 | -------------------------------------------------------------------------------- /dart/tests/language/top_level_file1.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | part of TopLevelMultipleFilesTest.dart; 6 | 7 | main() { 8 | Expect.equals(topLevelVar, 42); 9 | Expect.equals(topLevelMethod(), 87); 10 | } 11 | -------------------------------------------------------------------------------- /dart/tests/standalone/package/package1_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | // PackageRoot=none 6 | 7 | library package1_test; 8 | import 'package:package1.dart' as p1; 9 | 10 | main() { 11 | p1.main(); 12 | } 13 | -------------------------------------------------------------------------------- /dart/samples-dev/swarm/info.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | i 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /dart/sdk/lib/developer/developer_sources.gypi: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | { 6 | 'sources': [ 7 | 'developer.dart', 8 | # The above file needs to be first if additional parts are added to the lib. 9 | ], 10 | } 11 | -------------------------------------------------------------------------------- /dart/sdk/lib/profiler/profiler_sources.gypi: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | { 6 | 'sources': [ 7 | 'profiler.dart', 8 | # The above file needs to be first if additional parts are added to the lib. 9 | ], 10 | } 11 | -------------------------------------------------------------------------------- /dart/tests/compiler/dart2js/source_map_deferred_validator_test_lib.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | class HelloClass { 6 | void printHello() { 7 | () { 8 | print('Hello World!'); 9 | }(); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /dart/tests/language/class_syntax_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | main() { 6 | new ClassSyntaxTest(); 7 | } 8 | 9 | class ClassSyntaxTest { 10 | /* /// 01: compile-time error 11 | } 12 | */ /// 01: continued 13 | -------------------------------------------------------------------------------- /dart/tests/language/export_helper1.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library export_helper1; 6 | 7 | import 'export_helper2.dart'; 8 | export 'export_helper2.dart'; 9 | 10 | class Exported extends ReExported { 11 | 12 | } -------------------------------------------------------------------------------- /dart/tests/language/export_helper3.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library export_helper3; 6 | 7 | import 'export_helper4.dart'; 8 | export 'export_helper4.dart'; 9 | 10 | class Exported extends ReExported { 11 | 12 | } -------------------------------------------------------------------------------- /dart/tests/language/extend_type_parameter_negative_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | // Extending a type parameter is not allowed. 6 | 7 | class A extends T { } 8 | 9 | main() { 10 | A a = new A(); 11 | } 12 | -------------------------------------------------------------------------------- /dart/tests/language/first_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | // First dart test program. 5 | 6 | class FirstTest { 7 | static testMain() { return 42; } 8 | } 9 | 10 | 11 | main() { 12 | FirstTest.testMain(); 13 | } 14 | -------------------------------------------------------------------------------- /dart/tests/language/prefix21_bad_lib.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library Prefix21Bad; 6 | 7 | int badFunction(int x) { 8 | return x<<1; 9 | } 10 | 11 | Function get getValue { 12 | return badFunction; 13 | } 14 | -------------------------------------------------------------------------------- /dart/tests/language/prefix21_good_lib.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library Prefix21Good; 6 | 7 | int goodFunction(int x) { 8 | return x; 9 | } 10 | 11 | Function get getValue { 12 | return goodFunction; 13 | } 14 | -------------------------------------------------------------------------------- /dart/tests/language/private_member1_lib_b.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library PrivateMemberLibB; 6 | 7 | import 'private_member1_negative_test.dart'; 8 | 9 | class B extends A { 10 | bool _instanceField; 11 | } 12 | -------------------------------------------------------------------------------- /dart/sdk/lib/typed_data/typed_data_sources.gypi: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | { 6 | 'sources': [ 7 | 'typed_data.dart', 8 | # The above file needs to be first if additional parts are added to the lib. 9 | ], 10 | } 11 | -------------------------------------------------------------------------------- /dart/tests/compiler/dart2js_extra/simple_string_constant_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | import "package:expect/expect.dart"; 6 | 7 | const String m = "\u{21}"; 8 | 9 | main() { 10 | Expect.equals('!', m); 11 | } 12 | -------------------------------------------------------------------------------- /dart/tests/language/getter_declaration_negative_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | // 5 | // Test that a getter has no arguments 6 | get m(var extraParam) { 7 | return null; 8 | } 9 | 10 | main() { 11 | m; 12 | } 13 | 14 | -------------------------------------------------------------------------------- /dart/tests/language/named_constructor_lib.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library named_constructor_lib; 6 | 7 | class Class { 8 | final int value; 9 | Class() : value = 2; 10 | Class.named() : value = 3; 11 | } 12 | -------------------------------------------------------------------------------- /dart/tests/language/patch_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | import "package:expect/expect.dart"; 6 | 7 | patch() { 8 | return 12; 9 | } 10 | 11 | main() { 12 | var x = patch(); 13 | Expect.equals(12, x); 14 | } 15 | -------------------------------------------------------------------------------- /dart/tests/language/private2_lib.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | // Dart test for testing access to private fields across class hierarchies. 5 | 6 | part of Private2Lib; 7 | 8 | class B extends A { 9 | B() : super(); 10 | } 11 | -------------------------------------------------------------------------------- /dart/tests/language/private_member2_lib_b.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library PrivateMemberLibB; 6 | 7 | import 'private_member2_negative_test.dart'; 8 | 9 | class B extends A { 10 | static bool _staticField; 11 | } 12 | -------------------------------------------------------------------------------- /dart/tests/language/script2_negative_source.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | // Imported library has source file with library tags. 6 | 7 | library Script2NegativeSource; 8 | 9 | const int script_2_negative_source = 1; 10 | -------------------------------------------------------------------------------- /dart/tests/language/setter_declaration2_negative_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | // 5 | // Test that a setter has a single argument 6 | 7 | // too few arguments 8 | set m() { } 9 | 10 | main() { 11 | m = 1; 12 | } 13 | 14 | -------------------------------------------------------------------------------- /dart/tests/lib/js/null_test.js: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | // This code is not inlined in the test to support testing in CSP mode. 6 | function isUndefined(o) { return o === undefined; } 7 | function isNull(o) { return o === null; } 8 | -------------------------------------------------------------------------------- /dart/tests/standalone/http_launch_data/http_isolate_main.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | import 'dart:isolate'; 6 | 7 | main(List args, SendPort replyTo) { 8 | var data = args[0]; 9 | replyTo.send(data); 10 | } 11 | -------------------------------------------------------------------------------- /dart/tests/standalone/http_launch_data/http_launch_main.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | 6 | library http_launch_main; 7 | 8 | import 'package:simple/simple.dart'; 9 | 10 | main() { 11 | print(getSimpleString()); 12 | } 13 | -------------------------------------------------------------------------------- /dart/runtime/lib/collection_sources.gypi: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | { 6 | 'sources': [ 7 | 'collection_patch.dart', 8 | 'compact_hash.dart', 9 | 'linked_hash_map.cc', 10 | 'linked_hash_map.dart', 11 | ], 12 | } 13 | -------------------------------------------------------------------------------- /dart/sdk/lib/isolate/isolate_sources.gypi: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | { 6 | 'sources': [ 7 | 'isolate.dart', 8 | # The above file needs to be first as it lists the parts below. 9 | 'capability.dart', 10 | ], 11 | } 12 | -------------------------------------------------------------------------------- /dart/tests/compiler/dart2js_extra/deferred/deferred_mirrors1_lib.dart: -------------------------------------------------------------------------------- 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 3 | // BSD-style license that can be found in the LICENSE file. 4 | 5 | import 'dart:typed_data'; 6 | import 'dart:mirrors'; 7 | 8 | foo() { 9 | var m = reflect(499); 10 | return m.reflectee; 11 | } 12 | -------------------------------------------------------------------------------- /dart/tests/compiler/dart2js_extra/literals_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | void main() { 6 | print(3 + 4 + 5); 7 | print(3.0 + 4.0 + 5.0); 8 | print("fisk" " " "hest"); 9 | print(true); 10 | print(false); 11 | } 12 | -------------------------------------------------------------------------------- /dart/tests/compiler/dart2js_extra/regress/4434_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | library lib_b; 6 | 7 | import '4434_lib.dart'; 8 | 9 | class B extends A { } 10 | 11 | main() { 12 | B b = new B(); 13 | b.x(b); 14 | } 15 | -------------------------------------------------------------------------------- /dart/tests/language/bad_named_constructor_negative_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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. 4 | 5 | class BadNamedConstructorNegativeTest { 6 | A.foo() {} 7 | } 8 | 9 | main() { 10 | BadNamedConstructorNegativeTest.testMain(); 11 | } 12 | --------------------------------------------------------------------------------