├── samples ├── .gitignore ├── build_dart_simple │ └── test.foo ├── README ├── build_dart │ ├── test.foo │ └── pubspec.yaml └── sample_extension │ └── .gitignore ├── runtime ├── tests │ └── vm │ │ ├── data │ │ ├── empty_file │ │ ├── .gitignore │ │ └── fixed_length_file │ │ └── dart │ │ ├── bad_snapshot │ │ └── hello_fuchsia_test.dart ├── tools │ └── .gitignore ├── vm │ ├── snapshot_test_in.dat │ ├── object_store_test.cc │ └── libdart_dependency_helper.cc ├── bin │ ├── dart_entries.txt │ ├── vmservice │ │ └── .gitignore │ ├── vmserviceio_dartium.dart │ └── dart_product_entries.txt ├── third_party │ ├── d3 │ │ └── README.dart │ ├── double-conversion │ │ └── .gitignore │ └── binary_size │ │ └── README.dart ├── observatory │ ├── .gitignore │ ├── maintainers │ │ └── .gitignore │ ├── web │ │ ├── favicon.ico │ │ └── third_party │ │ │ └── README.md │ ├── lib │ │ ├── src │ │ │ ├── elements │ │ │ │ ├── img │ │ │ │ │ ├── dart_icon.png │ │ │ │ │ ├── isolate_icon.png │ │ │ │ │ └── chromium_icon.png │ │ │ │ └── service_ref.html │ │ │ └── models │ │ │ │ └── objects │ │ │ │ ├── target.dart │ │ │ │ ├── extension_data.dart │ │ │ │ └── timeline_event.dart │ │ ├── elements.html │ │ └── cli.dart │ └── tests │ │ └── ui │ │ └── inspector.txt ├── CPPLINT.cfg ├── codereview.settings ├── lib │ ├── empty_source.dart │ ├── convert_sources.gypi │ └── math_sources.gypi └── .gitignore ├── tests ├── co19 │ └── .gitignore ├── standalone │ ├── io │ │ ├── read_as_text.dat │ │ ├── readuntil_test.dat │ │ ├── certificates │ │ │ ├── client1.p12 │ │ │ ├── server_key.p12 │ │ │ ├── client1_key.p12 │ │ │ ├── server_chain.p12 │ │ │ ├── trusted_certs.p12 │ │ │ └── client_authority.p12 │ │ ├── readline_test2.dat │ │ ├── readline_test1.dat │ │ ├── ln.sh │ │ └── snapshot_fail_script.dart │ ├── deferred │ │ ├── exists.dart │ │ ├── transitive_error.dart │ │ └── alpha.dart │ ├── package │ │ ├── scenarios │ │ │ ├── empty_packages_file │ │ │ │ └── .packages │ │ │ ├── both_dir_and_file │ │ │ │ ├── .packages │ │ │ │ ├── foo │ │ │ │ │ └── foo.dart │ │ │ │ └── packages │ │ │ │ │ └── foo │ │ │ │ │ └── foo.dart │ │ │ ├── packages_file_only │ │ │ │ ├── .packages │ │ │ │ └── foo │ │ │ │ │ └── foo.dart │ │ │ ├── packages_file_in_parent │ │ │ │ ├── .packages │ │ │ │ └── foo │ │ │ │ │ └── foo.dart │ │ │ ├── packages_option_only │ │ │ │ └── sub │ │ │ │ │ ├── .packages │ │ │ │ │ └── foo │ │ │ │ │ └── foo.dart │ │ │ ├── invalid │ │ │ │ ├── invalid_package_name.packages │ │ │ │ ├── same_package_twice.packages │ │ │ │ ├── invalid_utf8.packages │ │ │ │ └── foo │ │ │ │ │ └── foo.dart │ │ │ ├── packages_file_strange_formatting │ │ │ │ ├── empty_package_dir.packages │ │ │ │ ├── mixed_line_ends.packages │ │ │ │ ├── empty_lines.packages │ │ │ │ ├── bar │ │ │ │ │ └── bar.dart │ │ │ │ ├── baz │ │ │ │ │ └── baz.dart │ │ │ │ └── foo │ │ │ │ │ └── foo.dart │ │ │ └── packages_dir_only │ │ │ │ └── packages │ │ │ │ └── foo │ │ │ │ └── foo.dart │ │ └── packages │ │ │ ├── shared.dart │ │ │ └── package2.dart │ ├── http_launch_data │ │ └── packages │ │ │ └── simple │ │ │ └── simple.dart │ ├── no_profiler_test.dart │ ├── fields_may_be_reset_test.dart │ ├── link_natives_lazily_test.dart │ ├── no_lazy_dispatchers_test.dart │ ├── no_support_debugger_test.dart │ ├── no_support_service_test.dart │ ├── no_support_timeline_test.dart │ ├── no_support_il_printer_test.dart │ ├── no_support_ast_printer_test.dart │ └── no_support_disassembler_test.dart ├── compiler │ ├── dart2js_extra │ │ ├── empty_negative_test.dart │ │ ├── deferred_inheritance_lib2.dart │ │ ├── deferred_inheritance_lib1.dart │ │ ├── 23264_test.dart │ │ ├── 23486_helper.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_custom_loader_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 │ │ ├── deferred_split_lib1.dart │ │ ├── regress │ │ │ ├── 4740_library.dart │ │ │ └── 4434_lib.dart │ │ ├── typed_locals_test.dart │ │ └── foo7_test.dart │ └── dart2js │ │ ├── data │ │ ├── exit_code_helper.dart │ │ ├── one_line_dart_program.dart │ │ └── dart2js_batch2_run.dart │ │ ├── quarantined │ │ └── http_launch_data │ │ │ ├── pkcert │ │ │ ├── cert9.db │ │ │ └── key4.db │ │ │ ├── lib1.dart │ │ │ └── packages │ │ │ └── simple │ │ │ └── simple.dart │ │ ├── kernel │ │ └── empty_test.dart │ │ └── path with spaces │ │ └── library space │ │ └── part space │ │ └── part space.dart ├── language │ ├── readuntil_test.dat │ ├── illegal_invocation_lib.dart │ ├── generic_methods_test.options │ ├── generic_sends_test.options │ ├── generic_functions_test.options │ ├── generic_methods_new_test.options │ ├── generic_local_functions_test.options │ ├── generic_methods_function_type_test.options │ ├── generic_methods_type_expression_test.options │ ├── 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 │ ├── empty_library.dart │ ├── config_import_lib1a.dart │ ├── config_import_lib1b.dart │ ├── config_import_lib1c.dart │ ├── config_import_lib2a.dart │ ├── config_import_lib2b.dart │ ├── config_import_lib2c.dart │ ├── config_import_lib3a.dart │ ├── config_import_lib3b.dart │ ├── config_import_lib3c.dart │ ├── config_import_lib4a.dart │ ├── config_import_lib4b.dart │ ├── config_import_lib4c.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 │ ├── accessor_conflict_getter.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 │ ├── accessor_conflict_setter.dart │ ├── compile_time_constant_q_test.dart │ ├── ct_const4_lib.dart │ ├── deferred_shadow_load_library_lib.dart │ ├── reexport_core_helper.dart │ ├── regress_25609_lib2.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 │ ├── deferred_type_dependency_lib2.dart │ ├── deferred_type_dependency_lib3.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 │ ├── accessor_conflict_export2_helper.dart │ ├── accessor_conflict_export_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 │ ├── export_not_shadowed_by_prefix_helper.dart │ ├── export_not_shadowed_by_prefix_helper2.dart │ ├── regress_10996_lib.dart │ ├── regress_13462_0_test.dart │ ├── regress_21998_lib3.dart │ ├── regress_25620_test.dart │ ├── cha_deopt2_deferred_lib.dart │ ├── getter_setter_in_lib.dart │ ├── multiline_newline_cr.dart │ ├── prefix24_lib3.dart │ ├── private_super_constructor_lib.dart │ ├── cha_deopt3_deferred_lib.dart │ ├── export_ambiguous_main_a.dart │ └── export_ambiguous_main_b.dart ├── isolate │ ├── scenarios │ │ ├── short_package │ │ │ ├── flu_package │ │ │ │ ├── flu.text │ │ │ │ └── flu.dart │ │ │ └── .packages │ │ ├── automatic_resolution_root │ │ │ └── packages │ │ │ │ └── empty_file │ │ ├── automatic_resolution_spec │ │ │ └── .packages │ │ ├── bad_resolve_package │ │ │ └── .packages │ │ ├── package_relative_root │ │ │ └── packages │ │ │ │ ├── bar │ │ │ │ ├── bar.dart │ │ │ │ └── spawned_packages │ │ │ │ │ ├── bar │ │ │ │ │ └── bar.dart │ │ │ │ │ └── foo │ │ │ │ │ └── foo.dart │ │ │ │ └── foo │ │ │ │ └── foo.dart │ │ └── package_relative_spec │ │ │ ├── bar1_package │ │ │ ├── bar.dart │ │ │ └── package.config │ │ │ ├── bar2_package │ │ │ └── bar.dart │ │ │ ├── foo_package │ │ │ └── foo.dart │ │ │ └── .packages │ ├── spawn_uri_exported_main_lib.dart │ ├── spawn_uri_exported_main.dart │ ├── exit_at_spawnuri_iso.dart │ ├── browser │ │ └── package │ │ │ └── issue_12474_lib.dart │ ├── deferred_in_isolate2_lib.dart │ └── error_at_spawnuri_iso.dart ├── html │ ├── cross_domain_iframe_script.js │ ├── Ahem.ttf │ ├── small.mp4 │ ├── small.webm │ ├── js_type_test_js.js │ ├── async_oneshot.dart │ ├── b_element_test.dart │ ├── callbacks_test.dart │ ├── deferred_multi_app_lib.dart │ ├── navigator_test.dart │ └── cross_domain_iframe_script.html ├── dill │ ├── unsorted │ │ ├── let_test.dart │ │ ├── string_buffer_test.dart │ │ ├── symbol_literal_test.dart │ │ ├── string_concatenation_test.dart │ │ ├── nullable_operator_test.dart │ │ ├── this_test.dart │ │ └── expect.dart │ └── dill.status └── lib │ └── mirrors │ ├── deferred_mirrors_update_lib.dart │ ├── method_mirror_source_other.dart │ ├── empty.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 ├── tools ├── dom │ ├── scripts │ │ └── __init__.py │ ├── .gitignore │ ├── new_scripts │ │ └── dependency.py │ └── src │ │ └── EventListener.dart ├── linux_dist_support │ └── debian │ │ ├── compat │ │ ├── source │ │ └── format │ │ ├── dart.install │ │ ├── dart.links │ │ └── control ├── testing │ ├── .gitignore │ ├── extensions │ │ ├── chrome │ │ │ └── ConsoleCollector.crx │ │ └── firefox │ │ │ ├── ConsoleCollector.xpi │ │ │ └── ConsoleCollector │ │ │ ├── chrome.manifest │ │ │ ├── Makefile │ │ │ └── chrome │ │ │ └── content │ │ │ └── overlay.xul │ └── dart │ │ └── vendored_pkg │ │ └── README.txt ├── sdks │ ├── linux │ │ └── dart-sdk.tar.gz.sha1 │ ├── mac │ │ └── dart-sdk.tar.gz.sha1 │ ├── win │ │ └── dart-sdk.tar.gz.sha1 │ └── .gitignore ├── .gitignore ├── apps │ └── update_homebrew │ │ ├── bin │ │ └── ssh_with_key │ │ └── pubspec.yaml ├── dart2js │ ├── angular2_testing_deps │ │ ├── CURRENT_ANGULAR_DEPS │ │ └── README │ └── sourceMapViewer │ │ └── pubspec.yaml ├── bots │ └── __init__.py └── canary.dart ├── pkg ├── analyzer_cli │ ├── test │ │ └── data │ │ │ ├── empty_options.yaml │ │ │ ├── file_with_error.dart │ │ │ ├── no_lints_project │ │ │ ├── .analysis_options │ │ │ ├── analysis_options.yaml │ │ │ └── test_file.dart │ │ │ ├── library_and_parts │ │ │ ├── part1.dart │ │ │ ├── part2.dart │ │ │ └── lib.dart │ │ │ ├── test_options.yaml │ │ │ ├── file_with_hint.dart │ │ │ ├── file_with_todo.dart │ │ │ ├── file_with_warning.dart │ │ │ ├── package_prefix │ │ │ ├── packagelist │ │ │ └── pkg │ │ │ │ ├── bar │ │ │ │ └── bar.dart │ │ │ │ └── foo │ │ │ │ └── foo.dart │ │ │ ├── package_with_sdk_extension │ │ │ └── lib │ │ │ │ ├── _sdkext │ │ │ │ └── foo.dart │ │ │ ├── linter_project │ │ │ ├── .analysis_options │ │ │ ├── analysis_options.yaml │ │ │ └── test_file.dart │ │ │ ├── embedder_client │ │ │ └── _packages │ │ │ ├── packages_file │ │ │ └── _packages │ │ │ ├── bad_plugin_options.yaml │ │ │ ├── package_with_embedder_yaml │ │ │ └── lib │ │ │ │ ├── _embedder.yaml │ │ │ │ └── grizzly.dart │ │ │ ├── plugin_options.yaml │ │ │ ├── options_tests_project │ │ │ ├── .analysis_options │ │ │ └── analysis_options.yaml │ │ │ ├── angular_options.yaml │ │ │ └── test_file.dart │ ├── .analysis_options │ ├── .gitignore │ └── CHANGELOG.md ├── dev_compiler │ ├── tool │ │ ├── input_sdk │ │ │ └── version │ │ ├── patch_sdk.sh │ │ ├── presubmit.sh │ │ └── override_analyzer_dependency.sh │ ├── test │ │ ├── codegen_expected │ │ │ └── js_test.js │ │ ├── codegen │ │ │ ├── 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 │ │ │ │ ├── empty_library.dart │ │ │ │ ├── deferred_call_empty_before_load_lib.dart │ │ │ │ ├── deferred_load_library_wrong_args_lib.dart │ │ │ │ ├── deferred_prefix_constraints_lib.dart │ │ │ │ ├── deferred_prefix_constraints_lib2.dart │ │ │ │ ├── async_helper_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_inheritance_constraints_lib.dart │ │ │ │ ├── deferred_only_constant_lib.dart │ │ │ │ ├── empty_main.dart │ │ │ │ ├── failing_main.dart │ │ │ │ ├── library_juxtaposition_part.dart │ │ │ │ ├── export_cyclic_helper3.dart │ │ │ │ ├── hidden_import_lib.dart │ │ │ │ ├── library1_lib.lib │ │ │ │ ├── library_c.dart │ │ │ │ ├── library_f.dart │ │ │ │ ├── deferred_load_inval_code_lib.dart │ │ │ │ ├── export_helper2.dart │ │ │ │ ├── export_helper4.dart │ │ │ │ ├── library5a.dart │ │ │ │ ├── library5b.dart │ │ │ │ ├── local_export_a_export.dart │ │ │ │ ├── regress_19413_bar.dart │ │ │ │ ├── regress_19413_foo.dart │ │ │ │ ├── application_test.dart │ │ │ │ ├── getter_setter_in_lib2.dart │ │ │ │ ├── illegal_declaration_test.dart │ │ │ │ ├── issue1578_negative_test.dart │ │ │ │ ├── part_part.dart │ │ │ │ ├── prefix24_lib2.dart │ │ │ │ ├── regress_22443_lib.dart │ │ │ │ ├── top_level_entry.dart │ │ │ │ ├── top_level_file3.dart │ │ │ │ ├── deferred_shadow_load_library_lib.dart │ │ │ │ ├── compile_time_constant_q_test.dart │ │ │ │ ├── ct_const4_lib.dart │ │ │ │ ├── reexport_core_helper.dart │ │ │ │ ├── duplicate_export_liba.dart │ │ │ │ ├── top_level_entry_test.dart │ │ │ │ ├── application_negative_test.dart │ │ │ │ ├── deferred_mixin_shared.dart │ │ │ │ ├── deferred_no_such_method_lib.dart │ │ │ │ ├── export_order_helper1.dart │ │ │ │ ├── library_juxtaposition_lib.dart │ │ │ │ ├── no_main_test.dart │ │ │ │ ├── top_level_prefixed_library_test.lib │ │ │ │ ├── cha_deopt1_lib.dart │ │ │ │ ├── enum_private_lib.dart │ │ │ │ ├── import_show_lib.dart │ │ │ │ ├── library3.dart │ │ │ │ ├── library_prefixes_test1.lib │ │ │ │ ├── create_unresolved_type_test.dart │ │ │ │ ├── deferred_constant_list_lib.dart │ │ │ │ ├── deferred_type_dependency_lib2.dart │ │ │ │ ├── deferred_type_dependency_lib3.dart │ │ │ │ ├── issue_22780_test.dart │ │ │ │ ├── library_a.dart │ │ │ │ ├── library_b.dart │ │ │ │ ├── library_d.dart │ │ │ │ ├── library_prefixes_test2.lib │ │ │ │ └── regress_21998_lib1.dart │ │ │ ├── lib │ │ │ │ ├── html │ │ │ │ │ ├── resource_data.txt │ │ │ │ │ ├── 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 │ │ │ │ └── mirrors │ │ │ │ │ ├── deferred_mirrors_update_lib.dart │ │ │ │ │ ├── method_mirror_source_other.dart │ │ │ │ │ ├── empty.dart │ │ │ │ │ ├── library_metadata2_lib2.dart │ │ │ │ │ ├── typedef_library.dart │ │ │ │ │ ├── deferred_type_other.dart │ │ │ │ │ ├── library_without_declaration.dart │ │ │ │ │ ├── library_imports_a.dart │ │ │ │ │ └── library_imports_b.dart │ │ │ ├── sunflower │ │ │ │ └── math.png │ │ │ ├── script.dart │ │ │ └── varargs.dart │ │ └── test.sh │ ├── lib │ │ └── runtime │ │ │ └── dart_sdk.sum │ ├── doc │ │ └── definition │ │ │ └── strong-dart.pdf │ ├── codereview.settings │ ├── .analysis_options │ └── web │ │ └── index.html ├── meta │ └── .analysis_options ├── analysis_server │ ├── CHANGELOG.md │ ├── .analysis_options │ └── AUTHORS ├── js_ast │ ├── README.md │ └── pubspec.yaml ├── js │ ├── example │ │ └── README.md │ ├── AUTHORS │ ├── CHANGELOG.md │ ├── pubspec.yaml │ └── lib │ │ └── js_util.dart ├── dart_messages │ └── pubspec.yaml ├── lookup_map │ ├── CHANGELOG.md │ └── AUTHORS ├── .gitignore ├── analyzer │ └── .analysis_options ├── browser │ └── pubspec.yaml └── typed_mock │ └── pubspec.yaml ├── 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 ├── dartdoc │ └── .gitignore ├── dartfmt │ └── .gitignore ├── dartanalyzer │ └── .gitignore ├── analysis_server │ └── .gitignore ├── pub │ └── .gitignore └── compiler │ └── .gitignore ├── third_party ├── drt_resources │ ├── .gitignore │ ├── AHEM____.TTF.sha1 │ └── README.md ├── 7zip.tar.gz.sha1 ├── d8 │ ├── linux │ │ ├── d8.sha1 │ │ └── d8-arm.sha1 │ ├── macos │ │ └── d8.sha1 │ ├── .gitignore │ └── windows │ │ └── d8.exe.sha1 ├── clang.tar.gz.sha1 ├── gsutil.tar.gz.sha1 ├── pkg │ ├── unittest.tar.gz.sha1 │ └── petitparser.tar.gz.sha1 ├── firefox_jsshell │ ├── linux │ │ └── jsshell.tar.gz.sha1 │ ├── mac │ │ └── jsshell.tar.gz.sha1 │ └── win │ │ └── jsshell.tar.gz.sha1 └── boringssl │ └── .gitignore ├── 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 │ ├── Dart_Logo_21.png │ ├── settings-21.png │ ├── pigeons-jumpinjimmyjava-white90pct-q70.jpg │ └── swarm.dart ├── client └── .gitignore ├── sdk ├── lib │ ├── _internal │ │ ├── js_runtime │ │ │ └── pubspec.yaml │ │ └── sdk_library_metadata │ │ │ └── pubspec.yaml │ └── core │ │ └── type.dart └── bin │ ├── dart2js_developer │ └── dartanalyzer_developer └── codereview.settings /samples/.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | -------------------------------------------------------------------------------- /runtime/tests/vm/data/empty_file: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/co19/.gitignore: -------------------------------------------------------------------------------- 1 | /src 2 | -------------------------------------------------------------------------------- /tools/dom/scripts/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /runtime/tools/.gitignore: -------------------------------------------------------------------------------- 1 | /utils.pyc 2 | -------------------------------------------------------------------------------- /pkg/analyzer_cli/test/data/empty_options.yaml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /samples/build_dart_simple/test.foo: -------------------------------------------------------------------------------- 1 | I'm from foo. -------------------------------------------------------------------------------- /tests/standalone/io/read_as_text.dat: -------------------------------------------------------------------------------- 1 | λx. x 2 | -------------------------------------------------------------------------------- /tools/linux_dist_support/debian/compat: -------------------------------------------------------------------------------- 1 | 7 2 | -------------------------------------------------------------------------------- /utils/tests/testrunner/test.txt: -------------------------------------------------------------------------------- 1 | Hello world! 2 | -------------------------------------------------------------------------------- /utils/tests/testrunner/testconfig: -------------------------------------------------------------------------------- 1 | --checked 2 | -------------------------------------------------------------------------------- /runtime/vm/snapshot_test_in.dat: -------------------------------------------------------------------------------- 1 | {{DART_SOURCE}} 2 | -------------------------------------------------------------------------------- /tests/compiler/dart2js_extra/empty_negative_test.dart: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/standalone/deferred/exists.dart: -------------------------------------------------------------------------------- 1 | var x = 99; 2 | -------------------------------------------------------------------------------- /third_party/drt_resources/.gitignore: -------------------------------------------------------------------------------- 1 | AHEM____.TTF 2 | -------------------------------------------------------------------------------- /tools/dom/.gitignore: -------------------------------------------------------------------------------- 1 | /database 2 | /generated 3 | -------------------------------------------------------------------------------- /pkg/dev_compiler/tool/input_sdk/version: -------------------------------------------------------------------------------- 1 | 1.9.0-dev.4.0 2 | -------------------------------------------------------------------------------- /runtime/bin/dart_entries.txt: -------------------------------------------------------------------------------- 1 | dart:vmservice_io,::,main 2 | -------------------------------------------------------------------------------- /tests/language/readuntil_test.dat: -------------------------------------------------------------------------------- 1 | Hello Dart, wassup! 2 | -------------------------------------------------------------------------------- /runtime/bin/vmservice/.gitignore: -------------------------------------------------------------------------------- 1 | .buildlog 2 | pubspec.lock 3 | -------------------------------------------------------------------------------- /runtime/tests/vm/data/.gitignore: -------------------------------------------------------------------------------- 1 | /fixed_length_file_out 2 | -------------------------------------------------------------------------------- /tests/isolate/scenarios/short_package/flu_package/flu.text: -------------------------------------------------------------------------------- 1 | Bar -------------------------------------------------------------------------------- /tools/linux_dist_support/debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /pkg/analyzer_cli/test/data/file_with_error.dart: -------------------------------------------------------------------------------- 1 | 2 | error 3 | 4 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen_expected/js_test.js: -------------------------------------------------------------------------------- 1 | //FAILED TO COMPILE -------------------------------------------------------------------------------- /pkg/meta/.analysis_options: -------------------------------------------------------------------------------- 1 | analyzer: 2 | strong-mode: true 3 | -------------------------------------------------------------------------------- /samples/README: -------------------------------------------------------------------------------- 1 | This directory contains sample Dart programs. 2 | -------------------------------------------------------------------------------- /tests/isolate/scenarios/short_package/.packages: -------------------------------------------------------------------------------- 1 | flu:flu_package/ 2 | -------------------------------------------------------------------------------- /tests/standalone/io/readuntil_test.dat: -------------------------------------------------------------------------------- 1 | Hello Dart 2 | wassup! 3 | -------------------------------------------------------------------------------- /tests/standalone/package/scenarios/empty_packages_file/.packages: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /third_party/7zip.tar.gz.sha1: -------------------------------------------------------------------------------- 1 | 22fe352b3c39c4281a599cf8576abef80ec44cc9 -------------------------------------------------------------------------------- /third_party/d8/linux/d8.sha1: -------------------------------------------------------------------------------- 1 | 3ce7314d80c9591de6681bbc68f9702406ad3ece -------------------------------------------------------------------------------- /third_party/d8/macos/d8.sha1: -------------------------------------------------------------------------------- 1 | 9fd5757eac16ebfe1ec9b45778c5394dab0c36cc -------------------------------------------------------------------------------- /pkg/analyzer_cli/test/data/no_lints_project/.analysis_options: -------------------------------------------------------------------------------- 1 | # empty 2 | -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test0_0_0.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test0_0_1.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test0_0_2.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test0_0_3.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test0_0_4.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test0_0_5.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test0_0_6.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test0_0_7.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test0_1_0.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test0_1_1.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test0_1_2.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test0_1_3.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test0_1_4.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test0_1_5.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test0_1_6.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test0_1_7.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test0_2_0.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test0_2_1.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test0_2_2.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test0_2_3.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test0_2_4.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test0_2_5.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test0_2_6.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test0_2_7.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test0_3_0.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test0_3_1.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test0_3_2.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test0_3_3.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test0_3_4.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test0_3_5.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test0_3_6.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test0_3_7.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test1_0_0.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test1_0_1.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test1_0_2.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test1_0_3.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test1_0_4.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test1_0_5.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test1_0_6.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test1_0_7.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test1_1_0.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test1_1_1.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test1_1_2.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test1_1_3.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test1_1_4.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test1_1_5.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test1_1_6.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test1_1_7.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test1_2_0.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test1_2_1.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test1_2_2.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test1_2_3.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test1_2_4.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test1_2_5.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test1_2_6.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test1_2_7.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test1_3_0.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test1_3_1.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test1_3_2.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test1_3_3.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test1_3_4.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test1_3_5.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test1_3_6.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test1_3_7.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test2_0_0.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test2_0_1.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test2_0_2.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test2_0_3.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test2_0_4.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test2_0_5.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test2_0_6.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test2_0_7.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test2_1_0.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test2_1_1.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test2_1_2.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test2_1_3.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test2_1_4.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test2_1_5.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test2_1_6.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test2_1_7.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test2_2_0.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test2_2_1.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test2_2_2.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test2_2_3.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test2_2_4.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test2_2_5.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test2_2_6.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test2_2_7.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test2_3_0.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test2_3_1.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test2_3_2.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test2_3_3.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test2_3_4.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test2_3_5.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test2_3_6.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /samples-dev/swarm/data/Test2_3_7.html: -------------------------------------------------------------------------------- 1 | Lorem ipsum something or other... -------------------------------------------------------------------------------- /tests/compiler/dart2js/data/exit_code_helper.dart: -------------------------------------------------------------------------------- 1 | void main() { 2 | 3 | } -------------------------------------------------------------------------------- /tests/isolate/scenarios/automatic_resolution_root/packages/empty_file: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/language/illegal_invocation_lib.dart: -------------------------------------------------------------------------------- 1 | library foo; 2 | foo() { } 3 | -------------------------------------------------------------------------------- /tests/standalone/deferred/transitive_error.dart: -------------------------------------------------------------------------------- 1 | import 'alpha.dart'; 2 | -------------------------------------------------------------------------------- /tests/standalone/package/scenarios/both_dir_and_file/.packages: -------------------------------------------------------------------------------- 1 | foo:foo/ -------------------------------------------------------------------------------- /tests/standalone/package/scenarios/packages_file_only/.packages: -------------------------------------------------------------------------------- 1 | foo:foo/ -------------------------------------------------------------------------------- /third_party/clang.tar.gz.sha1: -------------------------------------------------------------------------------- 1 | 9eec86b20d62ad8d5bc6af617e91f01ae4354166 -------------------------------------------------------------------------------- /third_party/d8/.gitignore: -------------------------------------------------------------------------------- 1 | /macos/d8 2 | /windows/d8.exe 3 | /linux/d8 4 | -------------------------------------------------------------------------------- /third_party/d8/linux/d8-arm.sha1: -------------------------------------------------------------------------------- 1 | 560998fba34d0243b396ca5b63b86e4479cabb86 -------------------------------------------------------------------------------- /third_party/gsutil.tar.gz.sha1: -------------------------------------------------------------------------------- 1 | 99b82a42b98b78fc2a3f155995a16d8d7517b657 -------------------------------------------------------------------------------- /tools/testing/.gitignore: -------------------------------------------------------------------------------- 1 | /selenium-server-standalone*.jar 2 | /bin 3 | -------------------------------------------------------------------------------- /utils/dartdoc/.gitignore: -------------------------------------------------------------------------------- 1 | /dartdoc.Makefile 2 | /dartdoc.target.mk 3 | -------------------------------------------------------------------------------- /utils/dartfmt/.gitignore: -------------------------------------------------------------------------------- 1 | /dartfmt.Makefile 2 | /dartfmt.target.mk 3 | -------------------------------------------------------------------------------- /pkg/analyzer_cli/test/data/library_and_parts/part1.dart: -------------------------------------------------------------------------------- 1 | part of example; 2 | -------------------------------------------------------------------------------- /pkg/analyzer_cli/test/data/library_and_parts/part2.dart: -------------------------------------------------------------------------------- 1 | part of nothing; 2 | -------------------------------------------------------------------------------- /pkg/analyzer_cli/test/data/no_lints_project/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | # empty 2 | -------------------------------------------------------------------------------- /pkg/analyzer_cli/test/data/test_options.yaml: -------------------------------------------------------------------------------- 1 | test_plugin: 2 | foo: bar 3 | -------------------------------------------------------------------------------- /tests/compiler/dart2js/data/one_line_dart_program.dart: -------------------------------------------------------------------------------- 1 | String main() => 499 -------------------------------------------------------------------------------- /tests/compiler/dart2js_extra/deferred_inheritance_lib2.dart: -------------------------------------------------------------------------------- 1 | class A {} 2 | -------------------------------------------------------------------------------- /tests/standalone/package/scenarios/packages_file_in_parent/.packages: -------------------------------------------------------------------------------- 1 | foo:foo/ -------------------------------------------------------------------------------- /tests/standalone/package/scenarios/packages_option_only/sub/.packages: -------------------------------------------------------------------------------- 1 | foo:foo/ -------------------------------------------------------------------------------- /third_party/d8/windows/d8.exe.sha1: -------------------------------------------------------------------------------- 1 | 04e58ecd97cd9ee4186fbbce99a079d7d2cb2f68 -------------------------------------------------------------------------------- /third_party/pkg/unittest.tar.gz.sha1: -------------------------------------------------------------------------------- 1 | fc9b8ccbfbecf20257255d69693d5a50f8692757 -------------------------------------------------------------------------------- /tools/sdks/linux/dart-sdk.tar.gz.sha1: -------------------------------------------------------------------------------- 1 | 324ae7e378f1b7bb648e6331335c04e190bc5316 -------------------------------------------------------------------------------- /tools/sdks/mac/dart-sdk.tar.gz.sha1: -------------------------------------------------------------------------------- 1 | a963b7fd089b45483616649903a9e789c2228387 -------------------------------------------------------------------------------- /tools/sdks/win/dart-sdk.tar.gz.sha1: -------------------------------------------------------------------------------- 1 | 072123e20bf8981c4e64d478acb86bda957ff004 -------------------------------------------------------------------------------- /pkg/analyzer_cli/test/data/file_with_hint.dart: -------------------------------------------------------------------------------- 1 | main() { 2 | int unused; 3 | } 4 | -------------------------------------------------------------------------------- /pkg/analyzer_cli/test/data/file_with_todo.dart: -------------------------------------------------------------------------------- 1 | //TODO: add main 2 | main() {} 3 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/language/readuntil_test.dat: -------------------------------------------------------------------------------- 1 | Hello Dart, wassup! 2 | -------------------------------------------------------------------------------- /runtime/tests/vm/data/fixed_length_file: -------------------------------------------------------------------------------- 1 | This file should contain exactly 42 bytes. -------------------------------------------------------------------------------- /tests/html/cross_domain_iframe_script.js: -------------------------------------------------------------------------------- 1 | window.parent.postMessage('foobar', '*'); -------------------------------------------------------------------------------- /third_party/drt_resources/AHEM____.TTF.sha1: -------------------------------------------------------------------------------- 1 | 8cdc9e68594fbb6db8c7b4bff643ab2432b51db6 -------------------------------------------------------------------------------- /third_party/pkg/petitparser.tar.gz.sha1: -------------------------------------------------------------------------------- 1 | 9626eed1ad9963e782f55a943ee8a1f82ff251a1 -------------------------------------------------------------------------------- /tools/linux_dist_support/debian/dart.install: -------------------------------------------------------------------------------- 1 | debian/tmp/out/dart usr/lib 2 | 3 | -------------------------------------------------------------------------------- /client/.gitignore: -------------------------------------------------------------------------------- 1 | /Makefile 2 | /out 3 | /xcodebuild 4 | /dart.xcodeproj 5 | /tests 6 | -------------------------------------------------------------------------------- /pkg/analyzer_cli/test/data/file_with_warning.dart: -------------------------------------------------------------------------------- 1 | main() { 2 | undefined(); 3 | } 4 | -------------------------------------------------------------------------------- /pkg/analyzer_cli/test/data/package_prefix/packagelist: -------------------------------------------------------------------------------- 1 | bar:pkg/bar/ 2 | foo:pkg/foo/ 3 | -------------------------------------------------------------------------------- /runtime/bin/vmserviceio_dartium.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | import 'dart:_builtin'; 3 | -------------------------------------------------------------------------------- /runtime/third_party/d3/README.dart: -------------------------------------------------------------------------------- 1 | A local copy of third_party/d3 from Chromium project. -------------------------------------------------------------------------------- /tools/.gitignore: -------------------------------------------------------------------------------- 1 | # tools/idl_parser is populated by gclient sync 2 | idl_parser 3 | 4 | -------------------------------------------------------------------------------- /tools/linux_dist_support/debian/dart.links: -------------------------------------------------------------------------------- 1 | usr/lib/dart/bin/dart usr/bin/dart 2 | 3 | -------------------------------------------------------------------------------- /utils/dartanalyzer/.gitignore: -------------------------------------------------------------------------------- 1 | /dartanalyzer.Makefile 2 | /dartanalyzer.target.mk 3 | -------------------------------------------------------------------------------- /pkg/analysis_server/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## 0.0.1 4 | 5 | - Initial version 6 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/lib/html/resource_data.txt: -------------------------------------------------------------------------------- 1 | This file was read by a Resource! -------------------------------------------------------------------------------- /runtime/third_party/double-conversion/.gitignore: -------------------------------------------------------------------------------- 1 | .sconsign.dblite 2 | run_tests 3 | *.o 4 | -------------------------------------------------------------------------------- /tests/standalone/deferred/alpha.dart: -------------------------------------------------------------------------------- 1 | // beta.dart does not exist! 2 | import 'beta.dart'; 3 | -------------------------------------------------------------------------------- /third_party/firefox_jsshell/linux/jsshell.tar.gz.sha1: -------------------------------------------------------------------------------- 1 | f44ede84757b76c86bc6dc8aee8f24699390623f -------------------------------------------------------------------------------- /third_party/firefox_jsshell/mac/jsshell.tar.gz.sha1: -------------------------------------------------------------------------------- 1 | 3d866ec4efe98698381671b25940b8ed1926ac4a -------------------------------------------------------------------------------- /third_party/firefox_jsshell/win/jsshell.tar.gz.sha1: -------------------------------------------------------------------------------- 1 | 354b952f339d454fb89f2a8288f755d37eae6443 -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/language/illegal_invocation_lib.dart: -------------------------------------------------------------------------------- 1 | library foo; 2 | foo() { } 3 | -------------------------------------------------------------------------------- /runtime/observatory/.gitignore: -------------------------------------------------------------------------------- 1 | bootstrap_css 2 | out 3 | build 4 | .pub 5 | .idea 6 | .packages -------------------------------------------------------------------------------- /tests/html/Ahem.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/kernel_sdk/aot/tests/html/Ahem.ttf -------------------------------------------------------------------------------- /tests/html/small.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/kernel_sdk/aot/tests/html/small.mp4 -------------------------------------------------------------------------------- /tests/isolate/scenarios/automatic_resolution_spec/.packages: -------------------------------------------------------------------------------- 1 | foo:file:///no/such/directory/ 2 | -------------------------------------------------------------------------------- /tools/apps/update_homebrew/bin/ssh_with_key: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | ssh -i $SSH_KEY_PATH $@ 3 | -------------------------------------------------------------------------------- /utils/analysis_server/.gitignore: -------------------------------------------------------------------------------- 1 | /analysis_server.Makefile 2 | /analysis_server.target.mk 3 | 4 | -------------------------------------------------------------------------------- /pkg/analyzer_cli/test/data/library_and_parts/lib.dart: -------------------------------------------------------------------------------- 1 | library example; 2 | 3 | part 'part1.dart'; 4 | -------------------------------------------------------------------------------- /runtime/third_party/binary_size/README.dart: -------------------------------------------------------------------------------- 1 | A local copy of tools/binary_size from Chromium project. -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /tests/html/small.webm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/kernel_sdk/aot/tests/html/small.webm -------------------------------------------------------------------------------- /tests/standalone/package/scenarios/invalid/invalid_package_name.packages: -------------------------------------------------------------------------------- 1 | ..:nonexistent/ 2 | foo:foo/ -------------------------------------------------------------------------------- /tests/standalone/package/scenarios/packages_file_strange_formatting/empty_package_dir.packages: -------------------------------------------------------------------------------- 1 | foo: 2 | -------------------------------------------------------------------------------- /tools/dart2js/angular2_testing_deps/CURRENT_ANGULAR_DEPS: -------------------------------------------------------------------------------- 1 | e1d7bdcfe7f25156c8a462452db5367b68a02df6 2 | -------------------------------------------------------------------------------- /pkg/analyzer_cli/test/data/package_with_sdk_extension/lib/_sdkext: -------------------------------------------------------------------------------- 1 | { 2 | "dart:foo": "foo.dart" 3 | } 4 | -------------------------------------------------------------------------------- /pkg/js_ast/README.md: -------------------------------------------------------------------------------- 1 | js_ast 2 | ====== 3 | 4 | A library for creating JavaScript ASTs from templates. 5 | -------------------------------------------------------------------------------- /tests/language/generic_methods_test.options: -------------------------------------------------------------------------------- 1 | analyzer: 2 | language: 3 | enableGenericMethods: true 4 | -------------------------------------------------------------------------------- /tests/language/generic_sends_test.options: -------------------------------------------------------------------------------- 1 | analyzer: 2 | language: 3 | enableGenericMethods: true 4 | -------------------------------------------------------------------------------- /third_party/boringssl/.gitignore: -------------------------------------------------------------------------------- 1 | # ignore the checkout of boringssl. 2 | src/ 3 | *.mk 4 | *.Makefile 5 | -------------------------------------------------------------------------------- /utils/tests/testrunner/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: non_browser_tests 2 | dependencies: 3 | unittest: any 4 | 5 | -------------------------------------------------------------------------------- /pkg/analyzer_cli/.analysis_options: -------------------------------------------------------------------------------- 1 | analyzer: 2 | strong-mode: true 3 | exclude: 4 | - 'test/data' 5 | -------------------------------------------------------------------------------- /pkg/analyzer_cli/test/data/linter_project/.analysis_options: -------------------------------------------------------------------------------- 1 | linter: 2 | rules: 3 | - camel_case_types 4 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/lib/html/cross_domain_iframe_script.js: -------------------------------------------------------------------------------- 1 | window.parent.postMessage('foobar', '*'); -------------------------------------------------------------------------------- /tests/isolate/scenarios/short_package/flu_package/flu.dart: -------------------------------------------------------------------------------- 1 | class Flu { 2 | static var value = "Flu"; 3 | } 4 | -------------------------------------------------------------------------------- /tests/language/generic_functions_test.options: -------------------------------------------------------------------------------- 1 | analyzer: 2 | language: 3 | enableGenericMethods: true 4 | -------------------------------------------------------------------------------- /tests/language/generic_methods_new_test.options: -------------------------------------------------------------------------------- 1 | analyzer: 2 | language: 3 | enableGenericMethods: true 4 | -------------------------------------------------------------------------------- /pkg/analyzer_cli/test/data/embedder_client/_packages: -------------------------------------------------------------------------------- 1 | package_with_embedder_yaml:../package_with_embedder_yaml/lib/ 2 | -------------------------------------------------------------------------------- /pkg/analyzer_cli/test/data/linter_project/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | linter: 2 | rules: 3 | - camel_case_types 4 | -------------------------------------------------------------------------------- /pkg/analyzer_cli/test/data/packages_file/_packages: -------------------------------------------------------------------------------- 1 | package_with_sdk_extension:../package_with_sdk_extension/lib/ 2 | -------------------------------------------------------------------------------- /pkg/js/example/README.md: -------------------------------------------------------------------------------- 1 | See the [Chart.js Dart API](https://github.com/google/chartjs.dart/) for a usage example. 2 | -------------------------------------------------------------------------------- /runtime/observatory/maintainers/.gitignore: -------------------------------------------------------------------------------- 1 | observatory_pub_packages 2 | packages 3 | pubspec.yaml 4 | pubspec.lock 5 | -------------------------------------------------------------------------------- /samples-dev/swarm/back-21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/kernel_sdk/aot/samples-dev/swarm/back-21.png -------------------------------------------------------------------------------- /samples-dev/swarm/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/kernel_sdk/aot/samples-dev/swarm/favicon.png -------------------------------------------------------------------------------- /tests/language/generic_local_functions_test.options: -------------------------------------------------------------------------------- 1 | analyzer: 2 | language: 3 | enableGenericMethods: true 4 | -------------------------------------------------------------------------------- /samples-dev/swarm/favicon128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/kernel_sdk/aot/samples-dev/swarm/favicon128.png -------------------------------------------------------------------------------- /samples-dev/swarm/refresh-21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/kernel_sdk/aot/samples-dev/swarm/refresh-21.png -------------------------------------------------------------------------------- /tests/isolate/scenarios/bad_resolve_package/.packages: -------------------------------------------------------------------------------- 1 | # Intentionally left blank to ensure no packages are resolved. 2 | -------------------------------------------------------------------------------- /tests/isolate/scenarios/package_relative_root/packages/bar/bar.dart: -------------------------------------------------------------------------------- 1 | class Bar { 2 | static var value = "Bar1"; 3 | } 4 | -------------------------------------------------------------------------------- /tests/isolate/scenarios/package_relative_root/packages/foo/foo.dart: -------------------------------------------------------------------------------- 1 | class Foo { 2 | static var value = "Foo"; 3 | } 4 | -------------------------------------------------------------------------------- /tests/isolate/scenarios/package_relative_spec/bar1_package/bar.dart: -------------------------------------------------------------------------------- 1 | class Bar { 2 | static var value = "Bar1"; 3 | } 4 | -------------------------------------------------------------------------------- /tests/isolate/scenarios/package_relative_spec/bar2_package/bar.dart: -------------------------------------------------------------------------------- 1 | class Bar { 2 | static var value = "Bar2"; 3 | } 4 | -------------------------------------------------------------------------------- /tests/isolate/scenarios/package_relative_spec/foo_package/foo.dart: -------------------------------------------------------------------------------- 1 | class Foo { 2 | static var value = "Foo"; 3 | } 4 | -------------------------------------------------------------------------------- /tests/language/generic_methods_function_type_test.options: -------------------------------------------------------------------------------- 1 | analyzer: 2 | language: 3 | enableGenericMethods: true 4 | -------------------------------------------------------------------------------- /runtime/observatory/web/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/kernel_sdk/aot/runtime/observatory/web/favicon.ico -------------------------------------------------------------------------------- /runtime/tests/vm/dart/bad_snapshot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/kernel_sdk/aot/runtime/tests/vm/dart/bad_snapshot -------------------------------------------------------------------------------- /samples-dev/swarm/Dart_Logo_21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/kernel_sdk/aot/samples-dev/swarm/Dart_Logo_21.png -------------------------------------------------------------------------------- /samples-dev/swarm/settings-21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/kernel_sdk/aot/samples-dev/swarm/settings-21.png -------------------------------------------------------------------------------- /tests/language/generic_methods_type_expression_test.options: -------------------------------------------------------------------------------- 1 | analyzer: 2 | language: 3 | enableGenericMethods: true 4 | -------------------------------------------------------------------------------- /tests/language/regress_20394_lib.dart: -------------------------------------------------------------------------------- 1 | library lib; 2 | 3 | class Super { 4 | Super(); 5 | Super._private(arg); 6 | } 7 | -------------------------------------------------------------------------------- /utils/tests/testrunner/non_browser_tests/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: non_browser_tests 2 | dependencies: 3 | unittest: any 4 | 5 | -------------------------------------------------------------------------------- /tests/standalone/package/scenarios/packages_file_strange_formatting/mixed_line_ends.packages: -------------------------------------------------------------------------------- 1 | foo:foo/ 2 | bar:bar/ 3 | baz:baz/ 4 | -------------------------------------------------------------------------------- /utils/tests/testrunner/browser_tests/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: browser_tests 2 | dependencies: 3 | html: any 4 | unittest: any 5 | 6 | -------------------------------------------------------------------------------- /utils/tests/testrunner/layout_tests/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: layout_tests 2 | dependencies: 3 | html: any 4 | unittest: any 5 | 6 | -------------------------------------------------------------------------------- /tests/compiler/dart2js_extra/deferred_inheritance_lib1.dart: -------------------------------------------------------------------------------- 1 | import 'deferred_inheritance_lib2.dart'; 2 | 3 | class C extends A {} 4 | -------------------------------------------------------------------------------- /pkg/analyzer_cli/test/data/bad_plugin_options.yaml: -------------------------------------------------------------------------------- 1 | analyzer: 2 | plugins: 3 | - lists 4 | - are 5 | - not 6 | - supported 7 | -------------------------------------------------------------------------------- /pkg/analyzer_cli/test/data/package_prefix/pkg/bar/bar.dart: -------------------------------------------------------------------------------- 1 | import "dart:async"; // should trigger unused import 2 | 3 | var bar = "bar"; 4 | -------------------------------------------------------------------------------- /pkg/analyzer_cli/test/data/package_prefix/pkg/foo/foo.dart: -------------------------------------------------------------------------------- 1 | import "dart:async"; // should trigger unused import 2 | 3 | var foo = "foo"; 4 | -------------------------------------------------------------------------------- /pkg/dev_compiler/lib/runtime/dart_sdk.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/kernel_sdk/aot/pkg/dev_compiler/lib/runtime/dart_sdk.sum -------------------------------------------------------------------------------- /tests/isolate/scenarios/package_relative_root/packages/bar/spawned_packages/bar/bar.dart: -------------------------------------------------------------------------------- 1 | class Bar { 2 | static var value = "Bar2"; 3 | } 4 | -------------------------------------------------------------------------------- /tests/isolate/scenarios/package_relative_root/packages/bar/spawned_packages/foo/foo.dart: -------------------------------------------------------------------------------- 1 | class Foo { 2 | static var value = "Foo"; 3 | } 4 | -------------------------------------------------------------------------------- /tests/standalone/package/scenarios/invalid/same_package_twice.packages: -------------------------------------------------------------------------------- 1 | foo:nonexistentdir/ 2 | # This overrides the previous entry 3 | foo:foo/ -------------------------------------------------------------------------------- /tests/dill/unsorted/let_test.dart: -------------------------------------------------------------------------------- 1 | import 'expect.dart'; 2 | 3 | main() { 4 | var a = [1]; 5 | Expect.isTrue((a..add(42))[1] == 42); 6 | } 7 | -------------------------------------------------------------------------------- /tests/standalone/io/certificates/client1.p12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/kernel_sdk/aot/tests/standalone/io/certificates/client1.p12 -------------------------------------------------------------------------------- /pkg/dart_messages/pubspec.yaml: -------------------------------------------------------------------------------- 1 | # This package is not intended to be published. 2 | name: dart_messages 3 | #version: do-not-upload 4 | dependencies: 5 | -------------------------------------------------------------------------------- /pkg/dev_compiler/doc/definition/strong-dart.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/kernel_sdk/aot/pkg/dev_compiler/doc/definition/strong-dart.pdf -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/language/regress_20394_lib.dart: -------------------------------------------------------------------------------- 1 | library lib; 2 | 3 | class Super { 4 | Super(); 5 | Super._private(arg); 6 | } 7 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/lib/html/Ahem.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/kernel_sdk/aot/pkg/dev_compiler/test/codegen/lib/html/Ahem.ttf -------------------------------------------------------------------------------- /pkg/lookup_map/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## 0.0.1+1 4 | - Fix minor typo in readme. 5 | 6 | ## 0.0.1 7 | - Initial version of `LookupMap` 8 | -------------------------------------------------------------------------------- /tests/standalone/io/certificates/server_key.p12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/kernel_sdk/aot/tests/standalone/io/certificates/server_key.p12 -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/lib/html/small.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/kernel_sdk/aot/pkg/dev_compiler/test/codegen/lib/html/small.mp4 -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/lib/html/small.webm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/kernel_sdk/aot/pkg/dev_compiler/test/codegen/lib/html/small.webm -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/sunflower/math.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/kernel_sdk/aot/pkg/dev_compiler/test/codegen/sunflower/math.png -------------------------------------------------------------------------------- /tests/dill/unsorted/string_buffer_test.dart: -------------------------------------------------------------------------------- 1 | 2 | main() { 3 | var sb = new StringBuffer(); 4 | sb.writeln('hello world :)'); 5 | print(sb); 6 | } 7 | -------------------------------------------------------------------------------- /tests/standalone/io/certificates/client1_key.p12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/kernel_sdk/aot/tests/standalone/io/certificates/client1_key.p12 -------------------------------------------------------------------------------- /tests/standalone/io/certificates/server_chain.p12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/kernel_sdk/aot/tests/standalone/io/certificates/server_chain.p12 -------------------------------------------------------------------------------- /tests/standalone/io/certificates/trusted_certs.p12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/kernel_sdk/aot/tests/standalone/io/certificates/trusted_certs.p12 -------------------------------------------------------------------------------- /tools/sdks/.gitignore: -------------------------------------------------------------------------------- 1 | /linux/dart-sdk 2 | /linux/dart-sdk.tar.gz 3 | /win/dart-sdk 4 | /win/dart-sdk.tar.gz 5 | /mac/dart-sdk 6 | /mac/dart-sdk.tar.gz 7 | -------------------------------------------------------------------------------- /tests/isolate/scenarios/package_relative_spec/.packages: -------------------------------------------------------------------------------- 1 | # This is the package spec for the spawning isolate. 2 | 3 | foo:foo_package/ 4 | bar:bar1_package/ 5 | -------------------------------------------------------------------------------- /tests/language/cyclic_import_test.dart: -------------------------------------------------------------------------------- 1 | library CyclicImportTest; 2 | import 'sub/sub.dart'; 3 | 4 | var value = 42; 5 | 6 | main() { 7 | subMain(); 8 | } 9 | -------------------------------------------------------------------------------- /tools/testing/extensions/chrome/ConsoleCollector.crx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/kernel_sdk/aot/tools/testing/extensions/chrome/ConsoleCollector.crx -------------------------------------------------------------------------------- /runtime/observatory/lib/src/elements/img/dart_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/kernel_sdk/aot/runtime/observatory/lib/src/elements/img/dart_icon.png -------------------------------------------------------------------------------- /tests/isolate/spawn_uri_exported_main_lib.dart: -------------------------------------------------------------------------------- 1 | library spawn_uri_exported_main_lib; 2 | 3 | main(args, msg) { 4 | print("From main!"); 5 | msg.send(50); 6 | } 7 | -------------------------------------------------------------------------------- /tests/standalone/io/certificates/client_authority.p12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/kernel_sdk/aot/tests/standalone/io/certificates/client_authority.p12 -------------------------------------------------------------------------------- /tools/testing/extensions/firefox/ConsoleCollector.xpi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/kernel_sdk/aot/tools/testing/extensions/firefox/ConsoleCollector.xpi -------------------------------------------------------------------------------- /pkg/dev_compiler/tool/patch_sdk.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | 4 | cd "$(dirname "$BASH_SOURCE[0]")/.." 5 | dart -c tool/patch_sdk.dart tool/input_sdk gen/patched_sdk 6 | -------------------------------------------------------------------------------- /runtime/observatory/lib/src/elements/img/isolate_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/kernel_sdk/aot/runtime/observatory/lib/src/elements/img/isolate_icon.png -------------------------------------------------------------------------------- /tests/isolate/spawn_uri_exported_main.dart: -------------------------------------------------------------------------------- 1 | export "spawn_uri_exported_main_lib.dart"; 2 | 3 | maine() { 4 | print("This is not the maine you are looking for."); 5 | } 6 | -------------------------------------------------------------------------------- /pkg/.gitignore: -------------------------------------------------------------------------------- 1 | /Makefile 2 | /*.Makefile 3 | /*.sln 4 | /*.target.mk 5 | /*.vcproj 6 | /*.vcxproj 7 | /*.vcxproj.user 8 | /*.vcxproj.filters 9 | /*.xcodeproj 10 | .idea/ -------------------------------------------------------------------------------- /runtime/observatory/lib/src/elements/img/chromium_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/kernel_sdk/aot/runtime/observatory/lib/src/elements/img/chromium_icon.png -------------------------------------------------------------------------------- /samples-dev/swarm/pigeons-jumpinjimmyjava-white90pct-q70.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/kernel_sdk/aot/samples-dev/swarm/pigeons-jumpinjimmyjava-white90pct-q70.jpg -------------------------------------------------------------------------------- /pkg/analysis_server/.analysis_options: -------------------------------------------------------------------------------- 1 | analyzer: 2 | strong-mode: true 3 | linter: 4 | rules: 5 | - unnecessary_brace_in_string_interp 6 | - empty_constructor_bodies 7 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | echo warning: this script has been renamed to ./tool/presubmit.sh 4 | $(dirname "${BASH_SOURCE[0]}")/../tool/presubmit.sh 5 | -------------------------------------------------------------------------------- /tests/dill/dill.status: -------------------------------------------------------------------------------- 1 | unsorted/invocation_errors_test: RuntimeError 2 | 3 | [ $compiler == dartk && $runtime == vm ] 4 | 5 | [ $compiler == dartkp && $runtime == dart_precompiled ] -------------------------------------------------------------------------------- /tests/isolate/scenarios/package_relative_spec/bar1_package/package.config: -------------------------------------------------------------------------------- 1 | # This is the package spec for the spawned isolate. 2 | 3 | foo:../foo_package/ 4 | bar:../bar2_package/ 5 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/language/cyclic_import_test.dart: -------------------------------------------------------------------------------- 1 | library CyclicImportTest; 2 | import 'sub/sub.dart'; 3 | 4 | var value = 42; 5 | 6 | main() { 7 | subMain(); 8 | } 9 | -------------------------------------------------------------------------------- /tests/language/sub/sub.dart: -------------------------------------------------------------------------------- 1 | library sub; 2 | import '../cyclic_import_test.dart'; 3 | import 'package:expect/expect.dart'; 4 | 5 | subMain() { 6 | Expect.equals(42, value); 7 | } 8 | -------------------------------------------------------------------------------- /tests/standalone/package/scenarios/invalid/invalid_utf8.packages: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/kernel_sdk/aot/tests/standalone/package/scenarios/invalid/invalid_utf8.packages -------------------------------------------------------------------------------- /pkg/analyzer_cli/.gitignore: -------------------------------------------------------------------------------- 1 | .buildlog 2 | .DS_Store 3 | .idea 4 | /.packages 5 | .project 6 | .pub/ 7 | .settings/ 8 | analyzer_cli.iml 9 | build/ 10 | packages 11 | pubspec.lock 12 | -------------------------------------------------------------------------------- /pkg/analyzer_cli/test/data/package_with_embedder_yaml/lib/_embedder.yaml: -------------------------------------------------------------------------------- 1 | embedded_libs: 2 | "dart:bear": "grizzly.dart" 3 | "dart:core": "core.dart" 4 | "dart:async": "async.dart" 5 | -------------------------------------------------------------------------------- /samples/sample_extension/.gitignore: -------------------------------------------------------------------------------- 1 | /Makefile 2 | /*.Makefile 3 | /*.sln 4 | /*.target.mk 5 | /*.vcproj 6 | /*.vcxproj 7 | /*.vcxproj.filters 8 | /*.vcxproj.user 9 | /*.xcodeproj 10 | -------------------------------------------------------------------------------- /tests/compiler/dart2js/quarantined/http_launch_data/pkcert/cert9.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/kernel_sdk/aot/tests/compiler/dart2js/quarantined/http_launch_data/pkcert/cert9.db -------------------------------------------------------------------------------- /tests/compiler/dart2js/quarantined/http_launch_data/pkcert/key4.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/kernel_sdk/aot/tests/compiler/dart2js/quarantined/http_launch_data/pkcert/key4.db -------------------------------------------------------------------------------- /tests/compiler/dart2js_extra/23264_test.dart: -------------------------------------------------------------------------------- 1 | import 'package:expect/expect.dart'; 2 | 3 | class A { A(ignore); } 4 | main() => Expect.throws(() => A(const [])); // oops, `new` is missing! 5 | -------------------------------------------------------------------------------- /runtime/observatory/web/third_party/README.md: -------------------------------------------------------------------------------- 1 | This directory contains a vulcanized version of trace-viewer: 2 | 3 | https://github.com/catapult-project/catapult/wiki/Embedding-Trace-Viewer 4 | 5 | -------------------------------------------------------------------------------- /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 -------------------------------------------------------------------------------- /tools/apps/update_homebrew/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: update_homebrew 2 | version: 0.1.0 3 | dependencies: 4 | args: ^0.13.0 5 | googleapis: ^0.2.1 6 | http: ^0.11.1+1 7 | stack_trace: ^1.3.2 8 | -------------------------------------------------------------------------------- /pkg/dev_compiler/codereview.settings: -------------------------------------------------------------------------------- 1 | CODE_REVIEW_SERVER: https://codereview.chromium.org 2 | VIEW_VC: https://github.com/dart-lang/dev_compiler/commit/ 3 | CC_LIST: dev-compiler+reviews@dartlang.org 4 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/script.dart: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env dart 2 | void main(List args) { 3 | String name = args.join(' '); 4 | if (name == '') name = 'world'; 5 | print('hello $name'); 6 | } 7 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /tests/dill/unsorted/symbol_literal_test.dart: -------------------------------------------------------------------------------- 1 | import 'expect.dart'; 2 | 3 | main() { 4 | Expect.isTrue('${#abc}' == 'Symbol("abc")'); 5 | Expect.isTrue('${#abc.xzy}' == 'Symbol("abc.xzy")'); 6 | } 7 | -------------------------------------------------------------------------------- /pkg/analyzer_cli/test/data/plugin_options.yaml: -------------------------------------------------------------------------------- 1 | analyzer: 2 | plugins: 3 | my_plugin1: 4 | version: any 5 | library_uri: 'package:my_plugin/my_plugin.dart' 6 | class_name: MyPlugin 7 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/language/sub/sub.dart: -------------------------------------------------------------------------------- 1 | library sub; 2 | import '../cyclic_import_test.dart'; 3 | import 'package:expect/expect.dart'; 4 | 5 | subMain() { 6 | Expect.equals(42, value); 7 | } 8 | -------------------------------------------------------------------------------- /sdk/lib/_internal/js_runtime/pubspec.yaml: -------------------------------------------------------------------------------- 1 | # Note: This package is not meant to be uploaded to pub. This file is used to 2 | # make it easier to develop on dart2js. 3 | name: js_runtime 4 | # version: do-not-upload 5 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /pkg/lookup_map/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /tests/dill/unsorted/string_concatenation_test.dart: -------------------------------------------------------------------------------- 1 | import 'expect.dart'; 2 | 3 | class A { 4 | toString() => 'hello'; 5 | } 6 | 7 | main() { 8 | Expect.isTrue('begin ${new A()} end' == 'begin hello end'); 9 | } 10 | -------------------------------------------------------------------------------- /tests/standalone/package/scenarios/packages_file_strange_formatting/empty_lines.packages: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | foo:foo/ 6 | 7 | 8 | bar:bar/ 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | baz:baz/ 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /tests/dill/unsorted/nullable_operator_test.dart: -------------------------------------------------------------------------------- 1 | import 'expect.dart'; 2 | 3 | mkOne() => 1; 4 | mkNull() => null; 5 | 6 | main() { 7 | Expect.isTrue((mkOne() ?? 2) == 1); 8 | Expect.isTrue((mkNull() ?? 2) == 2); 9 | } 10 | -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /pkg/dev_compiler/tool/presubmit.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | DIR=$(dirname "${BASH_SOURCE[0]}") 4 | $DIR/build_sdk.sh 5 | $DIR/test.sh 6 | $DIR/browser_test.sh 7 | $DIR/analyze.sh 8 | $DIR/format.sh 9 | echo "*** Presubmit finished" 10 | -------------------------------------------------------------------------------- /tests/compiler/dart2js/kernel/empty_test.dart: -------------------------------------------------------------------------------- 1 | import 'package:test/test.dart'; 2 | 3 | import 'helper.dart' show check; 4 | 5 | main() { 6 | test('compile empty function', () { 7 | return check("main() {}"); 8 | }); 9 | } 10 | -------------------------------------------------------------------------------- /tests/lib/mirrors/method_mirror_source_other.dart: -------------------------------------------------------------------------------- 1 | main() { 2 | print("Blah"); 3 | } 4 | // This function must be on the first line. 5 | 6 | class SomethingInOther {} 7 | 8 | // Note: This test relies on LF line endings in the source file. 9 | -------------------------------------------------------------------------------- /codereview.settings: -------------------------------------------------------------------------------- 1 | # This file is used by gcl to get repository specific information. 2 | CODE_REVIEW_SERVER: https://chromereviews.googleplex.com 3 | VIEW_VC: https://github.com/dart-lang/sdk/commit/ 4 | CC_LIST: dart-kernel+reviews@google.com 5 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /tests/dill/unsorted/this_test.dart: -------------------------------------------------------------------------------- 1 | import 'expect.dart'; 2 | 3 | class A { 4 | getThis() => this; 5 | } 6 | 7 | main() { 8 | var a = new A(); 9 | Expect.isTrue(a == a.getThis()); 10 | Expect.isTrue(identical(a, a.getThis())); 11 | } 12 | -------------------------------------------------------------------------------- /pkg/analyzer/.analysis_options: -------------------------------------------------------------------------------- 1 | analyzer: 2 | strong-mode: true 3 | linter: 4 | rules: 5 | # TODO(pq): re-enable once we have a bulk edit tool 6 | # - annotate_overrides 7 | - empty_constructor_bodies 8 | - unnecessary_brace_in_string_interp 9 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | } -------------------------------------------------------------------------------- /pkg/dev_compiler/tool/override_analyzer_dependency.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | cd $( dirname "${BASH_SOURCE[0]}" )/.. 4 | 5 | . ./tool/dependency_overrides.sh 6 | 7 | checkout_dependency_override_from_github \ 8 | analyzer dart-lang/sdk $1 /pkg/analyzer/ 9 | -------------------------------------------------------------------------------- /runtime/codereview.settings: -------------------------------------------------------------------------------- 1 | # This file is used by gcl to get repository specific information. 2 | CODE_REVIEW_SERVER: https://chromereviews.googleplex.com 3 | VIEW_VC: https://github.com/dart-lang/sdk/commit/ 4 | #CC_LIST: reviews@dartlang.org,vm-dev@dartlang.org 5 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /pkg/analyzer_cli/test/data/options_tests_project/.analysis_options: -------------------------------------------------------------------------------- 1 | analyzer: 2 | strong-mode: true 3 | errors: 4 | unused_local_variable: ignore 5 | missing_return: error 6 | undefined_function: warning 7 | language: 8 | enableSuperMixins: true 9 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/lib/mirrors/method_mirror_source_other.dart: -------------------------------------------------------------------------------- 1 | main() { 2 | print("Blah"); 3 | } 4 | // This function must be on the first line. 5 | 6 | class SomethingInOther {} 7 | 8 | // Note: This test relies on LF line endings in the source file. 9 | -------------------------------------------------------------------------------- /runtime/observatory/lib/src/elements/service_ref.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /sdk/lib/_internal/sdk_library_metadata/pubspec.yaml: -------------------------------------------------------------------------------- 1 | # Note: This package is not meant to be uploaded to pub. This file is used to 2 | # make it easer to depend on libraries.dart from sdk packages like dart2js. 3 | name: sdk_library_metadata 4 | # version: do-not-upload 5 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /tools/dom/new_scripts/dependency.py: -------------------------------------------------------------------------------- 1 | builder = None 2 | 3 | def set_builder(created_builder): 4 | global builder; 5 | builder = created_builder 6 | 7 | def get_interfaces_info(): 8 | global builder; 9 | return builder._info_collector.interfaces_info 10 | -------------------------------------------------------------------------------- /pkg/analyzer_cli/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## 1.1.1 4 | 5 | - Removed outmoded `--url-mapping` command line option. 6 | 7 | ## 1.1.0 8 | 9 | - New `--lints` command line option. 10 | 11 | ## 0.0. 12 | 13 | 14 | ## 0.0.1 15 | 16 | - Initial version 17 | -------------------------------------------------------------------------------- /pkg/analyzer_cli/test/data/options_tests_project/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | analyzer: 2 | strong-mode: true 3 | errors: 4 | unused_local_variable: ignore 5 | missing_return: error 6 | undefined_function: warning 7 | language: 8 | enableSuperMixins: true 9 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /pkg/dev_compiler/.analysis_options: -------------------------------------------------------------------------------- 1 | analyzer: 2 | strong-mode: true 3 | exclude: 4 | - doc/api/** 5 | - gen/** 6 | - node_modules/** 7 | - tool/input_sdk/** 8 | - test/codegen/** 9 | - test/samples/** 10 | - test/transformer/hello_app/** 11 | -------------------------------------------------------------------------------- /pkg/js/AUTHORS: -------------------------------------------------------------------------------- 1 | # Below is a list of people and organizations that have contributed 2 | # to the Dart project. Names should be added to the list like so: 3 | # 4 | # Name/Organization 5 | 6 | Google Inc. 7 | 8 | Alexandre Ardhuin 9 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /pkg/js/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 0.6.1 2 | * Add js_util library of utility methods to efficiently manipulate typed 3 | JavaScript interop objects in cases where the member name is not known 4 | statically. 5 | 6 | ## 0.6.0 7 | 8 | * Version 0.6.0 is a complete rewrite of `package:js`. 9 | -------------------------------------------------------------------------------- /tests/html/js_type_test_js.js: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016, 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 | function Foo() {} 6 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /tools/testing/extensions/firefox/ConsoleCollector/chrome/content/overlay.xul: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /utils/tests/testrunner/layout_tests/web/layout_test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Testdriver tests 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/language/deferred_call_empty_before_load_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 | thefun() {} 6 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/language/deferred_load_library_wrong_args_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() => 42; -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/language/deferred_prefix_constraints_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() => 24; 6 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/language/deferred_prefix_constraints_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 | foo() => 24; 6 | -------------------------------------------------------------------------------- /pkg/js/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: js 2 | version: 0.6.1 3 | authors: 4 | - Dart Team 5 | description: Access JavaScript from Dart. 6 | homepage: https://github.com/dart-lang/sdk/tree/master/pkg/js 7 | environment: 8 | sdk: '>=1.19.0-dev.0.0 <2.0.0' 9 | dev_dependencies: 10 | browser: '^0.10.0+2' 11 | -------------------------------------------------------------------------------- /tests/compiler/dart2js/quarantined/http_launch_data/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 | foo() => "hello http tester"; 6 | -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /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 {} -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/language/async_helper_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 async; 6 | class async {} 7 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/language/deferred_closurize_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 | var trueVar = true; -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/language/export_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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /runtime/tests/vm/dart/hello_fuchsia_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016, 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 | print("Hello, Fuchsia!"); 7 | } 8 | -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /tests/standalone/package/scenarios/invalid/foo/foo.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 foo; 6 | 7 | String foo = 'foo'; -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/language/first_class_types_lib1.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 lib1; 6 | 7 | class A {} 8 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/language/first_class_types_lib2.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 lib2; 6 | 7 | class A {} 8 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/lib/mirrors/empty.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 | // This library has no functions. 6 | library empty; -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/lib/mirrors/library_metadata2_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 | @MyConst() 6 | library lib2; 7 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/lib/mirrors/typedef_library.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 bar; 6 | 7 | typedef G(); 8 | -------------------------------------------------------------------------------- /pkg/dev_compiler/web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Dart Browser 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 {} -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/language/deferred_constraints_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 | foo() => 42; 6 | 7 | class C {} 8 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/language/deferred_inheritance_constraints_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 Foo {} 6 | class Foo2 {} -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/language/deferred_only_constant_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 | const constant = const ["a", "b", "c"]; -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/language/empty_main.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 ApplicationTest.dart; 6 | 7 | main() {} 8 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/language/failing_main.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(true, false); 7 | } 8 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/language/library_juxtaposition_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 lib; 6 | 7 | const c = 47; 8 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /tests/language/accessor_conflict_setter.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016, 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 setValue; 6 | 7 | set x(value) { setValue = value; } 8 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /tests/language/regress_25609_lib2.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016, 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_25609_lib2; 6 | 7 | typedef void Bar(double x); 8 | -------------------------------------------------------------------------------- /tests/standalone/package/scenarios/both_dir_and_file/foo/foo.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 foo; 6 | 7 | String bar = 'good'; -------------------------------------------------------------------------------- /tests/standalone/package/scenarios/packages_file_only/foo/foo.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 foo; 6 | 7 | String bar = 'hello'; -------------------------------------------------------------------------------- /pkg/analyzer_cli/test/data/package_with_embedder_yaml/lib/grizzly.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016, 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 grizzly; 6 | 7 | class Bear {} 8 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 {} -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/language/hidden_import_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 hidden_import_lib; 6 | 7 | class Future {} -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/language/library_c.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 libraryC.dart; 7 | 8 | var fooC = 10; 9 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/language/library_f.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 libraryF.dart; 7 | 8 | var fooC = 10; 9 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/lib/html/async_oneshot.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | import 'package:unittest/unittest.dart'; 3 | 4 | main(message, replyTo) { 5 | var command = message.first; 6 | expect(command, 'START'); 7 | new Timer(const Duration(milliseconds: 10), () { 8 | replyTo.send('DONE'); 9 | }); 10 | } 11 | 12 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/lib/html/b_element_test.dart: -------------------------------------------------------------------------------- 1 | library BElementTest; 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('create b', () { 10 | new Element.tag('b'); 11 | }); 12 | } 13 | 14 | -------------------------------------------------------------------------------- /tests/compiler/dart2js/quarantined/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /tests/standalone/package/scenarios/both_dir_and_file/packages/foo/foo.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 foo; 6 | 7 | String bar = 'bad'; -------------------------------------------------------------------------------- /tests/standalone/package/scenarios/packages_file_in_parent/foo/foo.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 foo; 6 | 7 | String bar = 'hello'; -------------------------------------------------------------------------------- /tests/standalone/package/scenarios/packages_option_only/sub/foo/foo.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 foo; 6 | 7 | String bar = 'hello'; -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | } -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | } -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | } -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | } -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | } -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /tests/standalone/package/scenarios/packages_dir_only/packages/foo/foo.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 foo; 6 | 7 | String bar = 'hello'; -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 {} -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /runtime/observatory/lib/elements.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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'; -------------------------------------------------------------------------------- /tests/standalone/no_profiler_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016, 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 | // VMOptions=--no_profiler 6 | 7 | main() { 8 | print("Okay"); 9 | } 10 | -------------------------------------------------------------------------------- /tests/standalone/package/scenarios/packages_file_strange_formatting/bar/bar.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 bar; 6 | 7 | String bar = 'bar'; -------------------------------------------------------------------------------- /tests/standalone/package/scenarios/packages_file_strange_formatting/baz/baz.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 baz; 6 | 7 | String baz = 'baz'; -------------------------------------------------------------------------------- /tests/standalone/package/scenarios/packages_file_strange_formatting/foo/foo.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 foo; 6 | 7 | String foo = 'foo'; -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /pkg/js/lib/js_util.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016, 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 | /// Allows interoperability with Javascript APIs. 6 | library js_util; 7 | 8 | export 'dart:js_util'; 9 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /tests/compiler/dart2js/data/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /tests/language/deferred_type_dependency_lib2.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015, the Dart Team. All rights reserved. Use of this 2 | // source code is governed by a BSD-style license that can be found in 3 | // the LICENSE file. 4 | 5 | library lib2; 6 | 7 | import "deferred_type_dependency_lib3.dart"; 8 | 9 | getInstance() { 10 | return new A(); 11 | } -------------------------------------------------------------------------------- /tests/language/deferred_type_dependency_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 lib3; 6 | 7 | class A { 8 | var p = true; 9 | } 10 | 11 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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'; -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 {} -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /tests/compiler/dart2js_extra/deferred_split_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 loaded eagerly by deferred_split_test.dart 6 | 7 | class A {} 8 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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); -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /third_party/drt_resources/README.md: -------------------------------------------------------------------------------- 1 | # Content-shell resources 2 | 3 | The layout tests of content_shell (formerly called DumpRenderTree, drt) 4 | require a font called AHEM____.TTF on Windows. This resource is downloaded 5 | from cloud storage, using the hash in AHEM____.TTF.sha1, by a hook 6 | in the DEPS file, that is run by gclient sync or gclient runhooks. 7 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /pkg/analyzer_cli/test/data/linter_project/test_file.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 analyzer_cli.test.data.linter_project.test_file; 6 | 7 | class a {} 8 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /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 {} -------------------------------------------------------------------------------- /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 {} -------------------------------------------------------------------------------- /tests/dill/unsorted/expect.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io' as io; 2 | 3 | // We use this class until we support more language features to use 4 | // `package:expect`. 5 | class Expect { 6 | static void isTrue(bool condition) { 7 | if (!condition) { 8 | print("Expect.isTrue(cond) failed. io.exit(1)ing"); 9 | io.exit(1); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /tests/language/accessor_conflict_export2_helper.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016, 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 "accessor_conflict_setter.dart"; 6 | export "accessor_conflict_getter.dart"; 7 | -------------------------------------------------------------------------------- /tests/language/accessor_conflict_export_helper.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016, 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 "accessor_conflict_getter.dart"; 6 | export "accessor_conflict_setter.dart"; 7 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /tests/standalone/fields_may_be_reset_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016, 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 | // VMOptions=--fields_may_be_reset 6 | 7 | main() { 8 | print("Okay"); 9 | } 10 | -------------------------------------------------------------------------------- /tests/standalone/link_natives_lazily_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016, 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 | // VMOptions=--link_natives_lazily 6 | 7 | main() { 8 | print("Okay"); 9 | } 10 | -------------------------------------------------------------------------------- /tests/standalone/no_lazy_dispatchers_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016, 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 | // VMOptions=--no_lazy_dispatchers 6 | 7 | main() { 8 | print("Okay"); 9 | } 10 | -------------------------------------------------------------------------------- /tests/standalone/no_support_debugger_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016, 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 | // VMOptions=--no-support_debugger 6 | 7 | main() { 8 | print("Okay"); 9 | } 10 | -------------------------------------------------------------------------------- /tests/standalone/no_support_service_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016, 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 | // VMOptions=--no-support_service 6 | 7 | main() { 8 | print("Okay"); 9 | } 10 | -------------------------------------------------------------------------------- /tests/standalone/no_support_timeline_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016, 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 | // VMOptions=--no-support_timeline 6 | 7 | main() { 8 | print("Okay"); 9 | } 10 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /pkg/analyzer_cli/test/data/no_lints_project/test_file.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 analyzer_cli.test.data.no_lints_project.test_file; 6 | 7 | class a {} 8 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | } -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | } -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/language/export_order_helper1.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016, 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_order_test.dart'; 6 | export 'export_order_helper2.dart' show z; -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/varargs.dart: -------------------------------------------------------------------------------- 1 | import 'package:js/src/varargs.dart' as js; 2 | import 'package:js/src/varargs.dart' show rest, spread; 3 | 4 | varargsTest(x, @js.rest others) { 5 | var args = [1, others]; 6 | x.call(js.spread(args)); 7 | } 8 | 9 | varargsTest2(x, @rest others) { 10 | var args = [1, others]; 11 | x.call(spread(args)); 12 | } 13 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /tests/language/export_not_shadowed_by_prefix_helper.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016, 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_not_shadowed_by_prefix_helper2.dart"; 6 | import "dart:core" as f; 7 | -------------------------------------------------------------------------------- /tests/language/export_not_shadowed_by_prefix_helper2.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016, 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 f() { 6 | f_called = true; 7 | } 8 | 9 | bool f_called = false; 10 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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); -------------------------------------------------------------------------------- /tests/language/regress_25620_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016, 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:async"; 6 | typedef Future SyncedExecutionFn(Future fn()); 7 | main() {} 8 | 9 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /tests/standalone/no_support_il_printer_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016, 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 | // VMOptions=--no-support_il_printer 6 | 7 | main() { 8 | print("Okay"); 9 | } 10 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 {} -------------------------------------------------------------------------------- /runtime/observatory/lib/src/models/objects/target.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016, 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 models; 6 | 7 | abstract class Target { 8 | String get name; 9 | } 10 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /tests/html/cross_domain_iframe_script.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | cross_domain_iframe_script 7 | 8 | 9 | 10 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /tests/language/multiline_newline_cr.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. library multiline_newline_cr; const constantMultilineString = """ a b """; var nonConstantMultilineString = """ a b """; -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /tests/language/private_super_constructor_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_super_constructor_lib; 6 | 7 | class B { 8 | B(); 9 | B._foo(); 10 | } -------------------------------------------------------------------------------- /tests/standalone/no_support_ast_printer_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016, 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 | // VMOptions=--no-support_ast_printer 6 | 7 | main() { 8 | print("Okay"); 9 | } 10 | -------------------------------------------------------------------------------- /tests/standalone/no_support_disassembler_test.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016, 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 | // VMOptions=--no_support_disassembler 6 | 7 | main() { 8 | print("Okay"); 9 | } 10 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/language/deferred_type_dependency_lib2.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015, the Dart Team. All rights reserved. Use of this 2 | // source code is governed by a BSD-style license that can be found in 3 | // the LICENSE file. 4 | 5 | library lib2; 6 | 7 | import "deferred_type_dependency_lib3.dart"; 8 | 9 | getInstance() { 10 | return new A(); 11 | } -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/language/deferred_type_dependency_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 lib3; 6 | 7 | class A { 8 | var p = true; 9 | } 10 | 11 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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'; -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/lib/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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/lib/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 | } -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /pkg/dev_compiler/test/codegen/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /runtime/observatory/lib/src/models/objects/extension_data.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016, 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 models; 6 | 7 | abstract class ExtensionData implements Map {} 8 | -------------------------------------------------------------------------------- /runtime/observatory/lib/src/models/objects/timeline_event.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016, 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 models; 6 | 7 | abstract class TimelineEvent implements Map {} 8 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /tests/isolate/error_at_spawnuri_iso.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 error_at_spawnuri_iso; 6 | 7 | main() { 8 | throw new ArgumentError("fast error"); 9 | } 10 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | --------------------------------------------------------------------------------