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

Side by Side Diff: pkg/front_end/lib/src/fasta/builder/library_builder.dart

Issue 2695633002: Annotate native methods. (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/builder/member_builder.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 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 2 // for details. 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 library fasta.library_builder; 5 library fasta.library_builder;
6 6
7 import '../combinator.dart' show 7 import '../combinator.dart' show
8 Combinator; 8 Combinator;
9 9
10 import '../errors.dart' show 10 import '../errors.dart' show
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 bool addToExportScope(String name, Builder member); 66 bool addToExportScope(String name, Builder member);
67 67
68 void addToScope(String name, Builder member); 68 void addToScope(String name, Builder member);
69 69
70 InvalidTypeBuilder buildAmbiguousBuilder( 70 InvalidTypeBuilder buildAmbiguousBuilder(
71 String name, Builder builder, Builder other, int charOffset); 71 String name, Builder builder, Builder other, int charOffset);
72 72
73 int finishStaticInvocations() => 0; 73 int finishStaticInvocations() => 0;
74 74
75 int finishNativeMethods() => 0;
76
75 /// Looks up [constructorName] in the class named [className]. It's an error 77 /// Looks up [constructorName] in the class named [className]. It's an error
76 /// if no such class is exported by this library, or if the class doesn't 78 /// if no such class is exported by this library, or if the class doesn't
77 /// have a matching constructor (or factory). 79 /// have a matching constructor (or factory).
78 /// 80 ///
79 /// If [constructorName] is null or the empty string, it's assumed to be an 81 /// If [constructorName] is null or the empty string, it's assumed to be an
80 /// unnamed constructor. 82 /// unnamed constructor.
81 Builder getConstructor(String className, 83 Builder getConstructor(String className,
82 {String constructorName, bool isPrivate: false}) { 84 {String constructorName, bool isPrivate: false}) {
83 constructorName ??= ""; 85 constructorName ??= "";
84 Builder cls = (isPrivate ? members : exports)[className]; 86 Builder cls = (isPrivate ? members : exports)[className];
(...skipping 10 matching lines...) Expand all
95 } else if (constructor.isFactory) { 97 } else if (constructor.isFactory) {
96 return constructor; 98 return constructor;
97 } 99 }
98 } 100 }
99 throw internalError("Internal error: No constructor named" 101 throw internalError("Internal error: No constructor named"
100 " '$className::$constructorName' in '$uri'."); 102 " '$className::$constructorName' in '$uri'.");
101 } 103 }
102 104
103 int finishTypeVariables(ClassBuilder object) => 0; 105 int finishTypeVariables(ClassBuilder object) => 0;
104 } 106 }
OLDNEW
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/builder/member_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698