Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(432)

Side by Side Diff: tools/dom/src/native_DOMImplementation.dart

Issue 2850783002: Dart SDK Spelling b, c, and d. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of html; 5 part of html;
6 6
7 class _Property { 7 class _Property {
8 _Property(this.name) 8 _Property(this.name)
9 : _hasValue = false, 9 : _hasValue = false,
10 writable = false, 10 writable = false,
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 603
604 if (o is Type) { 604 if (o is Type) {
605 addForClass(reflectClass(o), true); 605 addForClass(reflectClass(o), true);
606 } else { 606 } else {
607 addForClass(reflect(o).type, false); 607 addForClass(reflect(o).type, false);
608 } 608 }
609 return completions.toList(growable: false); 609 return completions.toList(growable: false);
610 } 610 }
611 611
612 /** 612 /**
613 * Adds all candidate String completitions from [declarations] to [output] 613 * Adds all candidate String completions from [declarations] to [output]
614 * filtering based on [staticContext] and [includePrivate]. 614 * filtering based on [staticContext] and [includePrivate].
615 */ 615 */
616 static void _getCompletionsHelper(ClassMirror classMirror, bool staticContext, 616 static void _getCompletionsHelper(ClassMirror classMirror, bool staticContext,
617 LibraryMirror libraryMirror, Set<String> output) { 617 LibraryMirror libraryMirror, Set<String> output) {
618 bool includePrivate = libraryMirror == classMirror.owner; 618 bool includePrivate = libraryMirror == classMirror.owner;
619 classMirror.declarations.forEach((symbol, declaration) { 619 classMirror.declarations.forEach((symbol, declaration) {
620 if (!includePrivate && declaration.isPrivate) return; 620 if (!includePrivate && declaration.isPrivate) return;
621 if (declaration is VariableMirror) { 621 if (declaration is VariableMirror) {
622 if (staticContext != declaration.isStatic) return; 622 if (staticContext != declaration.isStatic) return;
623 } else if (declaration is MethodMirror) { 623 } else if (declaration is MethodMirror) {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
681 _getCompletionsHelper(classMirror, staticContext, libraryMirror, names); 681 _getCompletionsHelper(classMirror, staticContext, libraryMirror, names);
682 } 682 }
683 683
684 static List<String> getLibraryCompletions(String url) { 684 static List<String> getLibraryCompletions(String url) {
685 var names = new Set<String>(); 685 var names = new Set<String>();
686 _getLibraryCompletionsHelper(getLibraryMirror(url), true, names); 686 _getLibraryCompletionsHelper(getLibraryMirror(url), true, names);
687 return names.toList(); 687 return names.toList();
688 } 688 }
689 689
690 /** 690 /**
691 * Get valid code completitions from within a library and all libraries 691 * Get valid code completions from within a library and all libraries
692 * imported by that library. 692 * imported by that library.
693 */ 693 */
694 static List<String> getLibraryCompletionsIncludingImports(String url) { 694 static List<String> getLibraryCompletionsIncludingImports(String url) {
695 var names = new Set<String>(); 695 var names = new Set<String>();
696 var libraryMirror = getLibraryMirror(url); 696 var libraryMirror = getLibraryMirror(url);
697 _getLibraryCompletionsHelper(libraryMirror, true, names); 697 _getLibraryCompletionsHelper(libraryMirror, true, names);
698 for (var dependency in libraryMirror.libraryDependencies) { 698 for (var dependency in libraryMirror.libraryDependencies) {
699 if (dependency.isImport) { 699 if (dependency.isImport) {
700 if (dependency.prefix == null) { 700 if (dependency.prefix == null) {
701 _getLibraryCompletionsHelper(dependency.targetLibrary, false, names); 701 _getLibraryCompletionsHelper(dependency.targetLibrary, false, names);
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after
1390 get _scheduleImmediateClosure => (void callback()) { 1390 get _scheduleImmediateClosure => (void callback()) {
1391 _scheduleImmediateHelper._schedule(callback); 1391 _scheduleImmediateHelper._schedule(callback);
1392 }; 1392 };
1393 1393
1394 get _pureIsolateScheduleImmediateClosure => ((void callback()) => 1394 get _pureIsolateScheduleImmediateClosure => ((void callback()) =>
1395 throw new UnimplementedError("scheduleMicrotask in background isolates " 1395 throw new UnimplementedError("scheduleMicrotask in background isolates "
1396 "are not supported in the browser")); 1396 "are not supported in the browser"));
1397 1397
1398 // Class for unsupported native browser 'DOM' objects. 1398 // Class for unsupported native browser 'DOM' objects.
1399 class _UnsupportedBrowserObject extends DartHtmlDomObject {} 1399 class _UnsupportedBrowserObject extends DartHtmlDomObject {}
OLDNEW
« no previous file with comments | « tools/dom/src/dart2js_KeyEvent.dart ('k') | tools/dom/templates/html/impl/impl_Element.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698