Dart SDK Spelling b, c, and d.

R=kmillikin@google.com
BUG=

Review-Url: https://codereview.chromium.org/2850783002 .
This commit is contained in:
Erik Corry 2017-05-01 08:28:01 +02:00
parent 9649ca1a94
commit aa6353b6da
146 changed files with 268 additions and 267 deletions

View file

@ -90,7 +90,7 @@ config("compiler") {
# Linker warnings.
if (current_cpu != "arm" && !is_mac) {
# TODO(jochen): Enable this on chromeos on arm. http://crbug.com/356580
# TODO(jochen): Enable this on ChromeOS on arm. http://crbug.com/356580
ldflags += [ "-Wl,--fatal-warnings" ]
}

View file

@ -6,7 +6,7 @@
'rules' : [
# Specify inclusions before exclusions, since rules are in order.
# Don't include chromeos, linux, or windows specific files
# Don't include ChromeOS, linux, or windows specific files
{
'regexp' : '.*(_|/)(chromeos|linux|win|views)(\\.|_)',
'include' : 0,

View file

@ -6,7 +6,7 @@
'rules' : [
# Specify inclusions before exclusions, since rules are in order.
# Don't include chromeos, posix, or linux specific files
# Don't include ChromeOS, posix, or linux specific files
{
'regexp' : '.*(_|/)(chromeos|linux|posix)(\\.|_)',
'include' : 0,

View file

@ -204,7 +204,7 @@ abstract class CommonInputConverter extends Converter<String, Operation> {
/**
* Process the expected response by completing the given completer
* with the result if it has alredy been received,
* with the result if it has already been received,
* or caching the completer to be completed when the server
* returns the associated result.
* Return a future that completes when the response is received

View file

@ -222,7 +222,7 @@ class WaitForAnalysisCompleteOperation extends Operation {
completer.complete();
return;
}
// Timeout if no communcation received within the last 60 seconds.
// Timeout if no communication received within the last 60 seconds.
double currentTime = driver.server.currentElapseTime;
double lastTime = driver.server.lastCommunicationTime;
if (currentTime - lastTime > 60) {

View file

@ -28,7 +28,7 @@ class ResultCollector<E> {
* A multi-keyed map, where the first key is the (normalized and absolute)
* path to the file associated with the results, and the second is the id of
* the plugin that provided the partial results. The value is the partial
* results contrinuted by the plugin for the file.
* results contributed by the plugin for the file.
*/
Map<String, Map<String, E>> resultMap = <String, Map<String, E>>{};

View file

@ -126,7 +126,7 @@ abstract class ExtractLocalRefactoring implements Refactoring {
*
* It does not perform all the checks (such as checking for conflicts with any
* existing names in any of the scopes containing the current name), as many
* of these checkes require search engine. Use [checkFinalConditions] for this
* of these checks require search engine. Use [checkFinalConditions] for this
* level of checking.
*/
RefactoringStatus checkName();
@ -215,7 +215,7 @@ abstract class ExtractMethodRefactoring implements Refactoring {
*
* It does not perform all the checks (such as checking for conflicts with any
* existing names in any of the scopes containing the current name), as many
* of these checkes require search engine. Use [checkFinalConditions] for this
* of these checks require search engine. Use [checkFinalConditions] for this
* level of checking.
*/
RefactoringStatus checkName();
@ -427,7 +427,7 @@ abstract class RenameRefactoring implements Refactoring {
*
* It does not perform all the checks (such as checking for conflicts with any
* existing names in any of the scopes containing the current name), as many
* of these checkes require search engine. Use [checkFinalConditions] for this
* of these checks require search engine. Use [checkFinalConditions] for this
* level of checking.
*/
RefactoringStatus checkNewName();

View file

@ -125,7 +125,7 @@ class CachingPubPackageMapProvider extends PubPackageMapProvider {
// has changed while running pub list. This is done
// by writing to a file rather than getting millisecondsSinceEpoch
// because file modification time has different granularity
// on diferent systems.
// on different systems.
int startStamp;
try {
startStamp = _writeFile(_touchFile, 'touch');

View file

@ -22,7 +22,7 @@ typedef void HandleWatchEvent<T>(WatchEvent event, List<T> tokens);
* An object that manages a collections of folders that need to be watched in
* order to ensure that we are watching the minimum number of folders.
*
* Each folder can be watched multiple times. In order to differenciate between
* Each folder can be watched multiple times. In order to differentiate between
* the watch requests, each watch request has a *token* associated with it. The
* tokens that are used must correctly implement both [==] and [hashCode].
*/

View file

@ -111,7 +111,7 @@ class RequestData {
RequestData(this.id, this.method, this.params, this.requestTime);
/**
* Return the number of milliseconds that elapsed betwee the request and the
* Return the number of milliseconds that elapsed between the request and the
* response. This getter assumes that the response was received.
*/
int get elapsedTime => responseTime - requestTime;

View file

@ -16,7 +16,7 @@ final RegExp whitespace = new RegExp(r'\s');
/**
* Convert the HTML in [desc] into text, word wrapping at width [width].
*
* If [javadocStyle] is true, then the output is compatable with Javadoc,
* If [javadocStyle] is true, then the output is compatible with Javadoc,
* which understands certain HTML constructs.
*/
String nodesToText(List<dom.Node> desc, int width, bool javadocStyle,

View file

@ -2995,7 +2995,7 @@ class StaticTypeWarningCode extends ErrorCode {
const StaticTypeWarningCode(
'UNDEFINED_METHOD_WITH_CONSTRUCTOR',
"The method '{0}' isn't defined for the class '{1}', but a constructor with that name is defined.",
"Try adding 'new' or 'const' to invoke the constuctor, or "
"Try adding 'new' or 'const' to invoke the constructor, or "
"correcting the name to the name of an existing method.");
/**
@ -3617,7 +3617,7 @@ class StaticWarningCode extends ErrorCode {
static const StaticWarningCode FIELD_INITIALIZING_FORMAL_NOT_ASSIGNABLE =
const StaticWarningCode(
'FIELD_INITIALIZING_FORMAL_NOT_ASSIGNABLE',
"The parameter type '{0}' is incompatable with the field type '{1}'.",
"The parameter type '{0}' is incompatible with the field type '{1}'.",
"Try changing or removing the parameter's type, or "
"changing the field's type.");

View file

@ -3824,9 +3824,10 @@ class ErrorVerifier extends RecursiveAstVisitor<Object> {
}
/**
* Verify that final fields in the given clas [declaration] that are declared,
* without any constructors in the enclosing class, are initialized. Cases in
* which there is at least one constructor are handled at the end of
* Verify that final fields in the given class [declaration] that are
* declared, without any constructors in the enclosing class, are
* initialized. Cases in which there is at least one constructor are handled
* at the end of
* [_checkForAllFinalInitializedErrorCodes].
*
* See [CompileTimeErrorCode.CONST_NOT_INITIALIZED], and

View file

@ -23,7 +23,7 @@ bool isTrue(Object value) =>
/**
* Safely convert the given [value] to a bool value, or return `null` if the
* value coult not be converted.
* value could not be converted.
*/
bool toBool(Object value) {
if (value is bool) {

View file

@ -729,7 +729,7 @@ class ExpressionScope extends TypeScope {
/// Throws a NoSuchMethodError corresponding to a call to [memberName] on
/// [receiver] with the given [arguments].
///
/// If provided, [candiateTarget] provides the expected arity and argument
/// If provided, [candidateTarget] provides the expected arity and argument
/// names for the best candidate target.
ast.Expression buildThrowNoSuchMethodError(
ast.Expression receiver, String memberName, ast.Arguments arguments,

View file

@ -3951,7 +3951,7 @@ class MethodElementForLink extends ExecutableElementForLink_NonLocal
* member of an element that is not a container (e.g. accessing the "length"
* property of a constant).
*
* Accesses to a chain of non-static members separated by '.' are andled by
* Accesses to a chain of non-static members separated by '.' are handled by
* creating a [NonstaticMemberElementForLink] that points to another
* [NonstaticMemberElementForLink], to whatever nesting level is necessary.
*/

View file

@ -2894,7 +2894,7 @@ var d = <dynamic, dynamic>{'a': 'b'}; // map literals
var e = new A()..x = 3; // cascades
var f = 2 + 3; // binary expressions are OK if the left operand
// is from a library in a different strongest
// conected component.
// connected component.
var g = -3;
var h = new A() + 3;
var i = /*error:UNDEFINED_OPERATOR,info:DYNAMIC_INVOKE*/- new A();

View file

@ -309,7 +309,7 @@ funtionality is publicly exposed.
corresponding classes when we create the corresponding JS model, removing the
need of the fake elements.
* `lib/src/colors.dart`: ANSII support for reporting error messages with colors.
* `lib/src/colors.dart`: ANSI support for reporting error messages with colors.
AI: this file should move under a utilities folder.

View file

@ -196,7 +196,7 @@ class SyntheticConstantExpression extends ConstantExpression {
/// A boolean, int, double, string, or null constant.
abstract class PrimitiveConstantExpression extends ConstantExpression {
/// The primitive value of this contant expression.
/// The primitive value of this constant expression.
get primitiveValue;
}

View file

@ -430,7 +430,7 @@ class LocalsHandler {
* If [keepOwnLocals] is true, the types of locals in this
* [LocalsHandler] are being used in the merge. [keepOwnLocals]
* should be true if this [LocalsHandler], the dominator of
* all [handlers], also direclty flows into the join point,
* all [handlers], also directly flows into the join point,
* that is the code after all [handlers]. For example, consider:
*
* [: switch (...) {

View file

@ -619,7 +619,7 @@ class ParameterTypeInformation extends ElementTypeInformation {
if (!inferrer.backend.canFunctionParametersBeUsedForGlobalOptimizations(
element.functionDeclaration) ||
inferrer.annotations.assumeDynamic(declaration)) {
// Do not infer types for parameters that have a correspondign annotation
// Do not infer types for parameters that have a corresponding annotation
// or that are assigned by synthesized calls.
giveUp(inferrer);
return safeType(inferrer);
@ -1308,7 +1308,7 @@ class NarrowTypeInformation extends TypeInformation {
/**
* An [InferredTypeInformation] is a [TypeInformation] that
* defaults to the dynamic type until it is marked as beeing
* defaults to the dynamic type until it is marked as being
* inferred, at which point it computes its type based on
* its assignments.
*/

View file

@ -694,7 +694,7 @@ class Offset {
final int subexpressionOffset;
/// The `left-to-right` offset of the step. This is like [subexpressionOffset]
/// bute restricted so that the offset of each subexpression in execution
/// but restricted so that the offset of each subexpression in execution
/// order is monotonically increasing.
///
/// For instance:

View file

@ -167,7 +167,7 @@ class PlaceholderSafetyAnalysis extends js.BaseVisitor<int> {
if (canBeNull(receiver)) safe = false;
return value;
}
// Be conserative with unrecognized LHS expressions.
// Be conservative with unrecognized LHS expressions.
safe = false;
return leftToRight();
}

View file

@ -1676,7 +1676,7 @@ class AsyncRewriter extends AsyncRewriterBase {
/// - The completer object [completer]
final js.Expression asyncHelper;
/// Contructor used to initialize the [completer] variable.
/// Constructor used to initialize the [completer] variable.
///
/// Specific to async methods.
final js.Expression newCompleter;
@ -1799,7 +1799,7 @@ class AsyncRewriter extends AsyncRewriterBase {
class SyncStarRewriter extends AsyncRewriterBase {
bool get isSyncStar => true;
/// Contructor creating the Iterable for a sync* method. Called with
/// Constructor creating the Iterable for a sync* method. Called with
/// [bodyName].
final js.Expression newIterable;
@ -1966,7 +1966,7 @@ class AsyncStarRewriter extends AsyncRewriterBase {
/// - null.
final js.Expression asyncStarHelper;
/// Contructor used to initialize the [controllerName] variable.
/// Constructor used to initialize the [controllerName] variable.
///
/// Specific to async* methods.
final js.Expression newController;

View file

@ -1044,7 +1044,7 @@ class Namer {
/// This is the name used for deriving property names of accessors (getters
/// and setters) and as property name for storing methods and method stubs.
///
/// [suffixes] denote an extension of [originalName] to distiguish it from
/// [suffixes] denote an extension of [originalName] to distinguish it from
/// other members with that name. These are used to encode the arity and
/// named parameters to a method. Disambiguating the same [originalName] with
/// different [suffixes] will yield different disambiguated names.

View file

@ -91,7 +91,7 @@ abstract class RuntimeTypesSubstitutions {
Substitution getSubstitution(ClassElement cls, ClassElement other);
/// Compute the required type checkes and substitutions for the given
/// Compute the required type checks and substitutions for the given
/// instantitated and checked classes.
TypeChecks computeChecks(
Set<ClassElement> instantiated, Set<ClassElement> checked);

View file

@ -1342,7 +1342,7 @@ class Emitter implements js_emitter.Emitter {
statements.add(buildDeferredHeader());
}
// Collect the AST for the decriptors
// Collect the AST for the descriptors.
Map<Element, ClassBuilder> descriptors = elementDescriptors[mainFragment];
if (descriptors == null) descriptors = const {};

View file

@ -453,32 +453,32 @@ class MirrorUsageBuilder {
result.add(type.element);
} else {
String string = entry;
LibraryElement libraryCandiate;
String libraryNameCandiate;
LibraryElement libraryCandidate;
String libraryNameCandidate;
for (LibraryElement l in compiler.libraryLoader.libraries) {
if (l.hasLibraryName) {
String libraryName = l.libraryName;
if (string == libraryName) {
// Found an exact match.
libraryCandiate = l;
libraryNameCandiate = libraryName;
libraryCandidate = l;
libraryNameCandidate = libraryName;
break;
} else if (string.startsWith('$libraryName.')) {
if (libraryNameCandiate == null ||
libraryNameCandiate.length < libraryName.length) {
// Found a better candiate
libraryCandiate = l;
libraryNameCandiate = libraryName;
if (libraryNameCandidate == null ||
libraryNameCandidate.length < libraryName.length) {
// Found a better candidate
libraryCandidate = l;
libraryNameCandidate = libraryName;
}
}
}
}
Element e;
if (libraryNameCandiate == string) {
e = libraryCandiate;
} else if (libraryNameCandiate != null) {
e = resolveLocalExpression(libraryCandiate,
string.substring(libraryNameCandiate.length + 1).split('.'));
if (libraryNameCandidate == string) {
e = libraryCandidate;
} else if (libraryNameCandidate != null) {
e = resolveLocalExpression(libraryCandidate,
string.substring(libraryNameCandidate.length + 1).split('.'));
} else {
e = resolveExpression(string);
}

View file

@ -330,7 +330,7 @@ abstract class SemanticSendVisitor<R, A> {
R visitDynamicPropertyInvoke(
Send node, Node receiver, NodeList arguments, Selector selector, A arg);
/// Conditinal invocation of the property defined by [selector] on [receiver]
/// Conditional invocation of the property defined by [selector] on [receiver]
/// with [arguments], if [receiver] is not null.
///
/// For instance:
@ -2201,7 +2201,7 @@ abstract class SemanticSendVisitor<R, A> {
R errorInvalidSetIfNull(Send node, ErroneousElement error, Node rhs, A arg);
/// If-null assignment expression of [rhs] to the class type literal
/// [contant]. That is, [rhs] is only evaluated and assigned, if the value
/// [constant]. That is, [rhs] is only evaluated and assigned, if the value
/// is of the [constant] is `null`. The behavior is thus equivalent to a type
/// literal access.
///

View file

@ -441,7 +441,7 @@
],
"template": "The method '#{memberName}' is not defined for the class '#{className}', but a constructor with that name is defined.",
"templateHoleOrder": null,
"howToFix": "Try adding 'new' or 'const' to invoke the constuctor, or change the method name.",
"howToFix": "Try adding 'new' or 'const' to invoke the constructor, or change the method name.",
"options": null,
"usedBy": [
"Platform.analyzer"
@ -686,4 +686,4 @@
"const foo = 0 main() { foo = 5; }"
]
}
}
}

View file

@ -532,7 +532,7 @@ final Map<String, Message> MESSAGES = {
categories: [Category.staticTypeWarning],
template: "The method '#{memberName}' is not defined for the class"
" '#{className}', but a constructor with that name is defined.",
howToFix: "Try adding 'new' or 'const' to invoke the constuctor, or "
howToFix: "Try adding 'new' or 'const' to invoke the constructor, or "
"change the method name.",
usedBy: [analyzer],
examples: const [

View file

@ -110,7 +110,7 @@ almost anywhere you would expect in a generic method.
```
Note that generic methods are not yet supported *at runtime* on the VM and
dartjs. On those platforms, uses of generic method type arguments are
dart2js. On those platforms, uses of generic method type arguments are
treated like `dynamic` today. So in this example, `pair`'s reified type at
runtime will be `List<dynamic>` and `set` will be `Set<dynamic>`.

View file

@ -3231,7 +3231,7 @@ class CodeGenerator extends Object
if (op == '??') {
// Desugar `l ??= r` as ((x) => x == null ? l = r : x)(l)
// Note that if `x` contains subexpressions, we need to ensure those
// are also evaluated only once. This is similar to desguaring for
// are also evaluated only once. This is similar to desugaring for
// postfix expressions like `i++`.
// Handle the left hand side, to ensure each of its subexpressions are
@ -4386,7 +4386,7 @@ class CodeGenerator extends Object
// If the consumer of the expression is '==' or '!=' with a constant that
// fits in 31 bits, adding a coercion does not change the result of the
// comparision, e.g. `a & ~b == 0`.
// comparison, e.g. `a & ~b == 0`.
if (parent is BinaryExpression) {
var tokenType = parent.operator.type;
Expression left = parent.leftOperand;

View file

@ -48,7 +48,7 @@ class BenchmarkBase {
// Not measured setup code executed prior to the benchmark runs.
void setup() {}
// Not measures teardown code executed after the benchark runs.
// Not measures teardown code executed after the benchmark runs.
void teardown() {}
// Measures the score for this benchmark by executing it repeately until

View file

@ -11997,7 +11997,7 @@ abstract class ElementList<T extends Element> extends ListBase<T> {
*
* Setting the height or width properties will set the height or width
* property for all elements in the list. This returns a rectangle with the
* dimenions actually available for content
* dimensions actually available for content
* in this element, in pixels, regardless of this element's box-sizing
* property. Getting the height or width returns the height or width of the
* first Element in this list.
@ -12012,7 +12012,7 @@ abstract class ElementList<T extends Element> extends ListBase<T> {
* Access dimensions and position of the first Element's content + padding box
* in this list.
*
* This returns a rectangle with the dimenions actually available for content
* This returns a rectangle with the dimensions actually available for content
* in this element, in pixels, regardless of this element's box-sizing
* property. Unlike [getBoundingClientRect], the dimensions of this rectangle
* will return the same numerical height if the element is hidden or not. This
@ -12027,7 +12027,7 @@ abstract class ElementList<T extends Element> extends ListBase<T> {
* Access dimensions and position of the first Element's content + padding +
* border box in this list.
*
* This returns a rectangle with the dimenions actually available for content
* This returns a rectangle with the dimensions actually available for content
* in this element, in pixels, regardless of this element's box-sizing
* property. Unlike [getBoundingClientRect], the dimensions of this rectangle
* will return the same numerical height if the element is hidden or not. This
@ -12040,7 +12040,7 @@ abstract class ElementList<T extends Element> extends ListBase<T> {
* Access dimensions and position of the first Element's content + padding +
* border + margin box in this list.
*
* This returns a rectangle with the dimenions actually available for content
* This returns a rectangle with the dimensions actually available for content
* in this element, in pixels, regardless of this element's box-sizing
* property. Unlike [getBoundingClientRect], the dimensions of this rectangle
* will return the same numerical height if the element is hidden or not. This
@ -13916,7 +13916,7 @@ class Element extends Node
/**
* Access this element's content position.
*
* This returns a rectangle with the dimenions actually available for content
* This returns a rectangle with the dimensions actually available for content
* in this element, in pixels, regardless of this element's box-sizing
* property. Unlike [getBoundingClientRect], the dimensions of this rectangle
* will return the same numerical height if the element is hidden or not.
@ -13932,7 +13932,7 @@ class Element extends Node
/**
* Access the dimensions and position of this element's content + padding box.
*
* This returns a rectangle with the dimenions actually available for content
* This returns a rectangle with the dimensions actually available for content
* in this element, in pixels, regardless of this element's box-sizing
* property. Unlike [getBoundingClientRect], the dimensions of this rectangle
* will return the same numerical height if the element is hidden or not. This
@ -13953,7 +13953,7 @@ class Element extends Node
* Access the dimensions and position of this element's content + padding +
* border box.
*
* This returns a rectangle with the dimenions actually available for content
* This returns a rectangle with the dimensions actually available for content
* in this element, in pixels, regardless of this element's box-sizing
* property. Unlike [getBoundingClientRect], the dimensions of this rectangle
* will return the same numerical height if the element is hidden or not. This
@ -13972,7 +13972,7 @@ class Element extends Node
* Access the dimensions and position of this element's content + padding +
* border + margin box.
*
* This returns a rectangle with the dimenions actually available for content
* This returns a rectangle with the dimensions actually available for content
* in this element, in pixels, regardless of this element's box-sizing
* property. Unlike [getBoundingClientRect], the dimensions of this rectangle
* will return the same numerical height if the element is hidden or not. This
@ -20047,7 +20047,7 @@ class HttpRequest extends HttpRequestEventTarget {
*
* Note: Most simple HTTP requests can be accomplished using the [getString],
* [request], [requestCrossOrigin], or [postFormData] methods. Use of this
* `open` method is intended only for more complext HTTP requests where
* `open` method is intended only for more complex HTTP requests where
* finer-grained control is needed.
*/
@DomName('XMLHttpRequest.open')
@ -20334,7 +20334,7 @@ class HttpRequest extends HttpRequestEventTarget {
*
* Note: Most simple HTTP requests can be accomplished using the [getString],
* [request], [requestCrossOrigin], or [postFormData] methods. Use of this
* `send` method is intended only for more complext HTTP requests where
* `send` method is intended only for more complex HTTP requests where
* finer-grained control is needed.
*
* ## Other resources
@ -25944,7 +25944,7 @@ class Node extends EventTarget {
@JSName('textContent')
/**
* All text within this node and its decendents.
* All text within this node and its descendents.
*
* ## Other resources
*
@ -25973,7 +25973,7 @@ class Node extends EventTarget {
/**
* Returns a copy of this node.
*
* If [deep] is `true`, then all of this node's children and decendents are
* If [deep] is `true`, then all of this node's children and descendents are
* copied as well. If [deep] is `false`, then only this node is copied.
*
* ## Other resources
@ -33837,7 +33837,7 @@ class Touch extends Interceptor {
final dynamic _get_target;
// As of Chrome 37, these all changed from long to double. This code
// preserves backwards compatability for the time being.
// preserves backwards compatibility for the time being.
int get __clientX => JS('num', '#.clientX', this).round();
int get __clientY => JS('num', '#.clientY', this).round();
int get __screenX => JS('num', '#.screenX', this).round();
@ -35399,7 +35399,7 @@ class WebSocket extends EventTarget {
*
* This method accepts data of type [Blob], [ByteBuffer], [String], or
* [TypedData]. Named variants [sendBlob], [sendByteBuffer], [sendString],
* or [sendTypedData], in constrast, only accept data of the specified type.
* or [sendTypedData], in contrast, only accept data of the specified type.
*/
@DomName('WebSocket.send')
@DocsEditable()
@ -35411,7 +35411,7 @@ class WebSocket extends EventTarget {
*
* This method accepts data of type [Blob], [ByteBuffer], [String], or
* [TypedData]. Named variants [sendBlob], [sendByteBuffer], [sendString],
* or [sendTypedData], in constrast, only accept data of the specified type.
* or [sendTypedData], in contrast, only accept data of the specified type.
*/
@DomName('WebSocket.send')
@DocsEditable()
@ -35423,7 +35423,7 @@ class WebSocket extends EventTarget {
*
* This method accepts data of type [Blob], [ByteBuffer], [String], or
* [TypedData]. Named variants [sendBlob], [sendByteBuffer], [sendString],
* or [sendTypedData], in constrast, only accept data of the specified type.
* or [sendTypedData], in contrast, only accept data of the specified type.
*/
@DomName('WebSocket.send')
@DocsEditable()
@ -35435,7 +35435,7 @@ class WebSocket extends EventTarget {
*
* This method accepts data of type [Blob], [ByteBuffer], [String], or
* [TypedData]. Named variants [sendBlob], [sendByteBuffer], [sendString],
* or [sendTypedData], in constrast, only accept data of the specified type.
* or [sendTypedData], in contrast, only accept data of the specified type.
*/
@DomName('WebSocket.send')
@DocsEditable()
@ -35447,7 +35447,7 @@ class WebSocket extends EventTarget {
*
* This method accepts data of type [Blob], [ByteBuffer], [String], or
* [TypedData]. Named variants [sendBlob], [sendByteBuffer], [sendString],
* or [sendTypedData], in constrast, only accept data of the specified type.
* or [sendTypedData], in contrast, only accept data of the specified type.
*/
@DomName('WebSocket.send')
@DocsEditable()
@ -43131,7 +43131,7 @@ class _KeyboardEventHandler extends EventStreamProvider<KeyEvent> {
}
/**
* Given the charater code returned from a keyDown [event], try to ascertain
* Given the character code returned from a keyDown [event], try to ascertain
* and return the corresponding charCode for the character that was pressed.
* This information is not shown to the user, but used to help polyfill
* keypress events.
@ -44524,7 +44524,7 @@ class KeyEvent extends _WrappedEvent implements KeyboardEvent {
// we set it with our specified values. Because we are doing custom setting
// of certain values (charCode/keyCode, etc) only in this class (as opposed
// to KeyboardEvent) and the way we set these custom values depends on the
// type of underlying JS object, we do all the contruction for the
// type of underlying JS object, we do all the construction for the
// underlying KeyboardEvent here.
if (canUseDispatchEvent) {
// Currently works in everything but Internet Explorer.

View file

@ -76,7 +76,7 @@
* [JsObject.jsify] constructor, which converts Dart [Map]s and [Iterable]s
* into JavaScript Objects and Arrays.
*
* The following expression creats a new JavaScript object with the properties
* The following expression creates a new JavaScript object with the properties
* `a` and `b` defined:
*
* var jsMap = new JsObject.jsify({'a': 1, 'b': 2});
@ -568,8 +568,8 @@ Expando<Function> _interopCaptureThisExpando = new Expando<Function>();
/// binding and calls [f] with the value of this passed as the first argument.
/// When called from Dart, [null] will be passed as the first argument.
///
/// See the documention for [allowInterop]. This method should only be used with
/// package:js Dart-JavaScript interop.
/// See the documentation for [allowInterop]. This method should only be used
/// with package:js Dart-JavaScript interop.
Function allowInteropCaptureThis(Function f) {
var ret = _interopCaptureThisExpando[f];
if (ret == null) {

View file

@ -614,7 +614,7 @@ notNull(x) {
///
// TODO(jmesserly): this could be faster
// TODO(jmesserly): we can use default values `= dynamic` once #417 is fixed.
// TODO(jmesserly): move this to classes for consistentcy with list literals?
// TODO(jmesserly): move this to classes for consistency with list literals?
map(values, [K, V]) => JS(
'',
'''(() => {

View file

@ -35,7 +35,7 @@ library dart._foreign_helper;
* accurately. In addition to the union type already described:
*
* + `=Object` is a plain JavaScript object. Some DOM methods return instances
* that have no corresponing Dart type (e.g. cross-frame documents),
* that have no corresponding Dart type (e.g. cross-frame documents),
* `=Object` can be used to describe these untyped' values.
*
* + `var` (or empty string). If the entire [typeDescription] is `var` (or

View file

@ -584,7 +584,7 @@ class JSArray<E> implements List<E>, JSIndexable<E> {
* getInterceptor always returns JSArray. We should consider pushing the
* 'isGrowable' and 'isMutable' checks into the getInterceptor implementation so
* these classes can have specialized implementations. Doing so will challenge
* many assuptions in the JS backend.
* many assumptions in the JS backend.
*/
class JSMutableArray<E> extends JSArray<E> {}

View file

@ -766,7 +766,7 @@ class Returns {
* This example declares a Dart field + getter + setter called `$dom_title` that
* corresponds to the JavaScript property `title`.
*
* class Docmument native "*Foo" {
* class Document native "*Foo" {
* @JSName('title')
* String $dom_title;
* }

View file

@ -301,7 +301,7 @@ class SyntheticSymbolToken extends SymbolToken {
/**
* A [BeginGroupToken] represents a symbol that may be the beginning of
* a pair of brackets, i.e., ( { [ < or ${
* The [endGroup] token points to the matching closing bracked in case
* The [endGroup] token points to the matching closing bracket in case
* it can be identified during scanning.
*/
class BeginGroupToken extends SymbolToken

View file

@ -98,7 +98,7 @@ abstract class TypeInferenceEngineImpl<F> extends TypeInferenceEngine<F> {
TypeInferenceEngineImpl(this.instrumentation, this.strongMode);
/// Cleares the initializer of [field].
/// Clears the initializer of [field].
void clearFieldInitializer(F field);
/// Creates a [FieldNode] to track dependencies of the given [field].

View file

@ -148,7 +148,7 @@ abstract class Constraint {
/**
* Normal constraints are not input constraints. An input constraint
* is one that depends on external state, such as the mouse, the
* keybord, a clock, or some arbitraty piece of imperative code.
* keybord, a clock, or some arbitrary piece of imperative code.
*/
bool isInput() => false;
}

View file

@ -197,7 +197,7 @@ class _PartialAstBuilder extends AstBuilder {
}
// Invoke the fasta kernel generator for the program starting in [entryUri]
// TODO(sigmund): update to uyse the frontend api once fasta is beind hit.
// TODO(sigmund): update to use the frontend api once fasta is being hit.
generateKernel(Uri entryUri,
{bool compileSdk: true, bool strongMode: false}) async {
// TODO(sigmund): this is here only to compute the input size,

View file

@ -33,8 +33,8 @@ void moveSuperInitializerLast(Constructor node) {
// [LocalInitializer]s.
initializers.length += argumentCount;
initializers.setRange(
superIndex + argumentCount, // desination start (inclusive)
initializers.length - 1, // desination end (exclusive)
superIndex + argumentCount, // destination start (inclusive)
initializers.length - 1, // destination end (exclusive)
initializers, // source list
superIndex + 1); // source start index
initializers[initializers.length - 1] = superCall;

View file

@ -446,7 +446,7 @@ class TreeShaker {
Class class_ = root.getClass(table);
// This is a class which will be instantiated by non-Dart code (whether it
// has a valid generative construtor or not).
// has a valid generative constructor or not).
_addInstantiatedClass(class_);
// We keep all the constructors of externally instantiated classes.

View file

@ -87,24 +87,24 @@ class CommandLine {
if (!await new File(configurationPath).exists()) {
Directory test = new Directory("test");
if (await test.exists()) {
List<FileSystemEntity> candiates = await test
List<FileSystemEntity> candidates = await test
.list(recursive: true, followLinks: false)
.where((FileSystemEntity entity) {
return entity is File && entity.uri.path.endsWith("/testing.json");
}).toList();
switch (candiates.length) {
switch (candidates.length) {
case 0:
return fail("Couldn't locate: '$configurationPath'.");
case 1:
configurationPath = candiates.single.path;
configurationPath = candidates.single.path;
break;
default:
return fail(
"Usage: run_tests.dart [$configPrefix=configuration_file]\n"
"Where configuration_file is one of:\n "
"${candiates.map((file) => file.path).join('\n ')}");
"${candidates.map((file) => file.path).join('\n ')}");
}
}
}

View file

@ -898,7 +898,7 @@ static void PrintUsage() {
" program. The format of this manifest is as follows. Each line in the \n"
" manifest is a comma separated list of three elements. The first entry is \n"
" the library URI, the second entry is the class name and the final entry \n"
" the function name. The file must be terminated with a newline charater. \n"
" the function name. The file must be terminated with a newline character. \n"
" \n"
" Example: \n"
" dart:something,SomeClass,doSomething \n"

View file

@ -101,7 +101,7 @@ abstract class _StringBase {
* Create the most efficient string representation for specified
* [charCodes].
*
* Only uses the character codes betwen index [start] and index [end] of
* Only uses the character codes between index [start] and index [end] of
* `charCodes`. They must satisfy `0 <= start <= end <= charCodes.length`.
*
* The [limit] is an upper limit on the character codes in the iterable.

View file

@ -9,7 +9,7 @@ class Tag<T extends HtmlElement> {
/// Tag name.
final String name;
/// Dependend tags that need to be registred for this tag to work properly.
/// Dependent tags that need to be registred for this tag to work properly.
final Iterable<Tag> dependencies;
const Tag(this.name, {this.dependencies: const []});

View file

@ -55,7 +55,7 @@ var tests = [
expect(prop.key, isNull);
expect(prop.value, isNull);
Instance loadedProp = await prop.load();
// Object ids are not cannonicalized, so we rely on the key and value
// Object ids are not canonicalized, so we rely on the key and value
// being the sole instances of their classes to test we got the objects
// we expect.
expect(loadedProp.key, isNotNull);

View file

@ -288,7 +288,7 @@ typedef simd128_value_t fpu_register_t;
#define DART_UNUSED
#endif
// DART_NORETURN indicates to the compiler that a function doees not return.
// DART_NORETURN indicates to the compiler that a function does not return.
// It should be used on functions that unconditionally call functions like
// exit(), which end the program. We use it to avoid compiler warnings in
// callers of DART_NORETURN functions.
@ -579,7 +579,7 @@ static inline void USE(T) {}
// When you use implicit_cast, the compiler checks that the cast is safe.
// Such explicit implicit_casts are necessary in surprisingly many
// situations where C++ demands an exact type match instead of an
// argument type convertable to a target type.
// argument type convertible to a target type.
//
// The From type can be inferred, so the preferred syntax for using
// implicit_cast is the same as for static_cast etc.:

View file

@ -33,7 +33,7 @@ void main(List<String> args) {
seed = int.parse(args[0]);
} else {
// Dart's built-in random number generator doesn't provide access to the
// seed when it is choosen by the implementation. We need to be able to
// seed when it is chosen by the implementation. We need to be able to
// report this seed to make runs of the fuzzer reproducible, so we create
// the seed ourselves.
@ -176,8 +176,8 @@ void setupInterestingValues() {
addInstance("𝄞"); // Surrogate pairs
addInstance("𝄞"[0]); // Surrogate pairs
addInstance("𝄞"[1]); // Surrogate pairs
addInstance("\u{0}"); // Non-printing charater
addInstance("\u{1}"); // Non-printing charater
addInstance("\u{0}"); // Non-printing character
addInstance("\u{1}"); // Non-printing character
addInstance("f\u{0}oo"); // Internal NUL
addInstance("blåbæ\u{0}rgrød"); // Internal NUL
addInstance("Îñţérñåţîö\u{0}ñåļîžåţîờñ"); // Internal NUL

View file

@ -192,7 +192,7 @@ D3SymbolTreeMap.prototype._crunchStats = function(node) {
/**
* Invoke the specified visitor function on all data elements currently shown
* in the treemap including any and all of their children, starting at the
* currently-displayed root and descening recursively. The function will be
* currently-displayed root and descending recursively. The function will be
* passed the datum element representing each node. No traversal guarantees
* are made.
*/

View file

@ -548,7 +548,7 @@ static void InitialScaledStartValuesNegativeExponentNegativePower(
//
// Let ep == estimated_power, then the returned values will satisfy:
// v / 10^ep = numerator / denominator.
// v's boundarys m- and m+:
// v's boundaries m- and m+:
// m- / 10^ep == v / 10^ep - delta_minus / denominator
// m+ / 10^ep == v / 10^ep + delta_plus / denominator
// Or in other words:

View file

@ -528,7 +528,7 @@ float Strtof(Vector<const char> buffer, int exponent) {
(f1 == f2 && f2 != f3 && f3 == f4) ||
(f1 == f2 && f2 == f3 && f3 != f4));
// guess and next are the two possible canditates (in the same way that
// guess and next are the two possible candidates (in the same way that
// double_guess was the lower candidate for a double-precision guess).
float guess = f1;
float next = f4;

View file

@ -986,8 +986,8 @@ const FpuRegister FpuTMP = kFakeFpuRegister;
const intptr_t kNumberOfFpuRegisters = 1;
// After a comparison, the condition NEXT_IS_TRUE means the following
// instruction is executed if the comparision is true and skipped over overwise.
// Conidition NEXT_IS_FALSE means the following instruction is executed if the
// instruction is executed if the comparison is true and skipped over overwise.
// Condition NEXT_IS_FALSE means the following instruction is executed if the
// comparison is false and skipped over otherwise.
enum Condition { NEXT_IS_TRUE, NEXT_IS_FALSE };

View file

@ -148,7 +148,7 @@ void HostCPUFeatures::InitOnce() {
// When the VM is targetted to ARMv7, pretend that the CPU is ARMv7 even if
// the CPU is actually AArch64.
arm_version_ = ARMv7;
// Always assume we have floating point unit since we dont support ARMv6 in
// Always assume we have floating point unit since we don't support ARMv6 in
// this path.
vfp_supported_ = FLAG_use_vfp;
integer_division_supported_ = FLAG_use_integer_division;

View file

@ -2580,7 +2580,7 @@ void Debugger::FindCompiledFunctions(const Script& script,
continue;
}
// Note: we need to check the functions of this class even if
// the class is defined in a differenct 'script'. There could
// the class is defined in a different 'script'. There could
// be mixin functions from the given script in this class.
functions = cls.functions();
if (!functions.IsNull()) {
@ -2648,7 +2648,7 @@ RawFunction* Debugger::FindBestFit(const Script& script,
cls = class_table.At(i);
// Note: if this class has been parsed and finalized already,
// we need to check the functions of this class even if
// it is defined in a differenct 'script'. There could
// it is defined in a different 'script'. There could
// be mixin functions from the given script in this class.
// However, if this class is not parsed yet (not finalized),
// we can ignore it and avoid the side effect of parsing it.

View file

@ -15,7 +15,7 @@
namespace dart {
// Facilitate quick access to the current zone once we have the curren thread.
// Facilitate quick access to the current zone once we have the current thread.
#define Z (T->zone())
#ifndef PRODUCT

View file

@ -213,7 +213,7 @@ class FlowGraph : public ZoneAllocated {
// Insert a redefinition of an original definition after prev and rename all
// dominated uses of the original. If an equivalent redefinition is already
// present, nothing is inserted.
// Returns the redefintion, if a redefinition was inserted, NULL otherwise.
// Returns the redefinition, if a redefinition was inserted, NULL otherwise.
RedefinitionInstr* EnsureRedefinition(Instruction* prev,
Definition* original,
CompileType compile_type);

View file

@ -2596,7 +2596,7 @@ static bool DependsOnSymbol(const RangeBoundary& a, Definition* symbol) {
// Given the range and definition update the range so that
// it covers both original range and defintions range.
// it covers both original range and definitions range.
//
// The following should also hold:
//

View file

@ -79,7 +79,7 @@ typedef uword cpp_vtable;
// When using GCC we can use GCC attributes to ensure that certain
// contants are 8 or 16 byte aligned.
// constants are 8 or 16 byte aligned.
#if defined(HOST_OS_WINDOWS)
#define ALIGN8 __declspec(align(8))
#define ALIGN16 __declspec(align(16))

View file

@ -276,7 +276,7 @@ intptr_t CheckClassInstr::ComputeCidMask() const {
bool CheckClassInstr::IsDenseMask(intptr_t mask) {
// Returns true if the mask is a continuos sequence of ones in its binary
// Returns true if the mask is a continuous sequence of ones in its binary
// representation (i.e. no holes)
return mask == -1 || Utils::IsPowerOfTwo(mask + 1);
}
@ -2314,8 +2314,8 @@ Definition* UnboxedIntConverterInstr::Canonicalize(FlowGraph* flow_graph) {
value()->definition()->AsUnboxedIntConverter();
if ((box_defn != NULL) && (box_defn->representation() == from())) {
if (box_defn->from() == to()) {
// Do not erase truncating convertions from 64-bit value to 32-bit values
// because such convertions erase upper 32 bits.
// Do not erase truncating conversions from 64-bit value to 32-bit values
// because such conversions erase upper 32 bits.
if ((box_defn->from() == kUnboxedMint) && box_defn->is_truncating()) {
return this;
}

View file

@ -1253,7 +1253,7 @@ class BlockEntryInstr : public Instruction {
// connect live ranges at the start of the block.
ParallelMoveInstr* parallel_move_;
// Bit vector containg loop blocks for a loop header indexed by block
// Bit vector containing loop blocks for a loop header indexed by block
// preorder number.
BitVector* loop_info_;

View file

@ -191,7 +191,7 @@ class IsolateReloadContext {
// Reports all reasons for cancelling reload.
void ReportReasonsForCancelling();
// Reports the deails of a reload operation.
// Reports the details of a reload operation.
void ReportOnJSON(JSONStream* stream);
// Store morphing operation.

View file

@ -3561,7 +3561,7 @@ FlowGraph* FlowGraphBuilder::BuildGraphOfFunction(FunctionNode* function,
}
if (i == (yield_continuations_.length() - 1)) {
// We reached the last possility, no need to build more ifs.
// Coninue to the last continuation.
// Continue to the last continuation.
// Note: continuations start with nop DropTemps instruction
// which acts like an anchor, so we need to skip it.
block->set_try_index(yield_continuations_[i].try_index);
@ -3627,9 +3627,9 @@ FlowGraph* FlowGraphBuilder::BuildGraphOfFunction(FunctionNode* function,
}
if (NeedsDebugStepCheck(dart_function, function->position())) {
// If a switch was added above: Start the switch by injecting a debugable
// If a switch was added above: Start the switch by injecting a debuggable
// safepoint so stepping over an await works.
// If not, still start the body with a debugable safepoint to ensure
// If not, still start the body with a debuggable safepoint to ensure
// breaking on a method always happens, even if there are no
// assignments/calls/runtimecalls in the first basic block.
// Place this check at the last parameter to ensure parameters

View file

@ -19,7 +19,7 @@
namespace dart {
// Facilitate quick access to the current zone once we have the curren thread.
// Facilitate quick access to the current zone once we have the current thread.
#define Z (T->zone())

View file

@ -19730,7 +19730,7 @@ static double Uint64ToDouble(uint64_t x) {
//
// which results in a different rounding.
//
// For consistency between platforms fallback to GCC style converstion
// For consistency between platforms fallback to GCC style conversion
// on Win64.
//
const int64_t y = static_cast<int64_t>(x);

View file

@ -4606,7 +4606,7 @@ class ExceptionHandlers : public Object {
// Holds deopt information at one deoptimization point. The information consists
// of two parts:
// - first a prefix consiting of kMaterializeObject instructions describing
// - first a prefix consisting of kMaterializeObject instructions describing
// objects which had their allocation removed as part of AllocationSinking
// pass and have to be materialized;
// - followed by a list of DeoptInstr objects, specifying transformation

View file

@ -2838,7 +2838,7 @@ void AllocationSinking::RemoveUnusedMaterializations() {
if ((mat->input_use_list() == NULL) && (mat->env_use_list() == NULL)) {
// Check if this materialization failed to compute and remove any
// unforwarded loads. There were no loads from any allocation sinking
// candidate in the beggining so it is safe to assume that any encountered
// candidate in the beginning so it is safe to assume that any encountered
// load was inserted by CreateMaterializationAt.
for (intptr_t i = 0; i < mat->InputCount(); i++) {
LoadFieldInstr* load = mat->InputAt(i)->definition()->AsLoadField();

View file

@ -731,7 +731,7 @@ class BenchmarkBase {
// Not measured setup code executed prior to the benchmark runs.
void setup() {}
// Not measures teardown code executed after the benchark runs.
// Not measures teardown code executed after the benchmark runs.
void teardown() {}
// Measures the score for this benchmark by executing it repeately until

View file

@ -1939,7 +1939,7 @@ void StubCode::GenerateOptimizeFunctionStub(Assembler* assembler) {
__ pushq(Immediate(0)); // Result slot.
__ pushq(RDI); // Arg0: function to optimize
__ CallRuntime(kOptimizeInvokedFunctionRuntimeEntry, 1);
__ popq(RAX); // Disard argument.
__ popq(RAX); // Discard argument.
__ popq(RAX); // Get Code object.
__ popq(R10); // Restore argument descriptor.
__ LeaveStubFrame();

View file

@ -39,7 +39,7 @@ class Timer : public ValueObject {
running_ = false;
}
// Get total cummulative elapsed time in micros.
// Get total cumulative elapsed time in micros.
int64_t TotalElapsedTime() const {
int64_t result = total_;
if (running_) {

View file

@ -47,7 +47,7 @@ class Swarm extends App {
sections.refresh();
// Hook up listeners about any data source additions or deletions. We don't
// differeniate additions or deletions just the fact that data feeds have
// differentiate additions or deletions just the fact that data feeds have
// changed. We might want more fidelity later.
sections.sectionTitles.forEach((title) {
Section section = sections.findSection(title);

View file

@ -47,7 +47,7 @@ class EventListeners {
}
/**
* Private view class used to store placeholder views for detatched ListView
* Private view class used to store placeholder views for detached ListView
* elements.
*/
class _PlaceholderView extends View {
@ -496,13 +496,13 @@ class GenericListView<D> extends View {
/**
* Detach a subview from the view replacing it with an empty placeholder view.
* The detatched subview can be safely reparented.
* The detached subview can be safely reparented.
*/
View detachSubview(D itemData) {
int index = findIndex(itemData);
View view = _itemViews[index];
if (view == null) {
// Edge case: add the view so we can detatch as the view is currently
// Edge case: add the view so we can detach as the view is currently
// outside but might soon be inside the visible area.
assert(!_activeInterval.contains(index));
_addView(index);

View file

@ -14,7 +14,7 @@ part of layout;
*/
// TODO(jmesserly): the DOM integration still needs work:
// - The grid assumes it is absolutely positioned in its container.
// Becasue of that, the grid doesn't work right unless it has at least one
// Because of that, the grid doesn't work right unless it has at least one
// fractional size in each dimension. In other words, only "top down" grids
// work at the moment, because the grid can't determine its own size.
// The core algorithm supports computing min breadth; the issue is about how

View file

@ -6,7 +6,7 @@ part of observable;
/** A change to an observable instance. */
class ChangeEvent {
// TODO(sigmund): capture language issues around enums & create a cannonical
// TODO(sigmund): capture language issues around enums & create a canonical
// Dart enum design.
/** Type denoting an in-place update event. */
static const UPDATE = 0;

View file

@ -31,7 +31,7 @@ class EventBatch {
EventBatch._internal() : summaries = new Map<int, EventSummary>();
/**
* Ensure there is an event batch where [userFunction] can accumuluate events.
* Ensure there is an event batch where [userFunction] can accumulate events.
* When the batch is complete, fire all events at once.
*/
static Function wrap(userFunction(var a)) {

View file

@ -7,7 +7,7 @@ part of touch;
/**
* Convenience methods for dealing with time.
* In the future this could also provide an entry point to mock out time
* calulation for tests.
* calculation for tests.
*/
class TimeUtil {
static int now() {

View file

@ -37966,7 +37966,7 @@ class Blink_Utils {
}
// Defines an interceptor if there is an appropriate JavaScript prototype to define it on.
// In any case, returns a typed JS wrapper compatibile with dart:html and the new
// In any case, returns a typed JS wrapper compatible with dart:html and the new
// typed JS Interop.
static defineInterceptorCustomElement(jsObject, Type type)
native "Utils_defineInterceptorCustomElement";

View file

@ -634,7 +634,7 @@ class JSArray<E> extends Interceptor implements List<E>, JSIndexable {
* getInterceptor always returns JSArray. We should consider pushing the
* 'isGrowable' and 'isMutable' checks into the getInterceptor implementation so
* these classes can have specialized implementations. Doing so will challenge
* many assuptions in the JS backend.
* many assumptions in the JS backend.
*/
class JSMutableArray<E> extends JSArray<E> implements JSMutableIndexable {}

View file

@ -3170,7 +3170,7 @@ class Returns {
* This example declares a Dart field + getter + setter called `$dom_title` that
* corresponds to the JavaScript property `title`.
*
* class Docmument native "*Foo" {
* class Document native "*Foo" {
* @JSName('title')
* String $dom_title;
* }

View file

@ -1295,7 +1295,7 @@ class JsInstanceMirror extends JsObjectMirror implements InstanceMirror {
/**
* ClassMirror for generic classes where the type parameters are bound.
*
* [typeArguments] will return a list of the type arguments, in constrast
* [typeArguments] will return a list of the type arguments, in contrast
* to JsCLassMirror that returns an empty list since it represents original
* declarations and classes that are not generic.
*/

View file

@ -51,7 +51,7 @@ class _LazyMangledNamesMap {
String operator [](String key) {
var result = JS('var', '#[#]', _jsMangledNames, key);
// Filter out all non-string values to protect against polution from
// ancilliary fields in [_jsMangledNames].
// ancillary fields in [_jsMangledNames].
bool filter = JS('bool', 'typeof # !== "string"', result);
// To ensure that the inferrer sees that result is a String, we explicitly
// give it a better type here.
@ -105,7 +105,7 @@ class _LazyReflectiveNamesMap {
for (String key in keys) {
var reflectiveName = JS('var', '#[#]', _jsMangledNames, key);
// Filter out all non-string values to protect against polution from
// ancilliary fields in [_jsMangledNames].
// ancillary fields in [_jsMangledNames].
bool filter = JS('bool', 'typeof # !== "string"', reflectiveName);
if (filter) continue;
result[reflectiveName] = JS('String', '#', key);

View file

@ -365,7 +365,7 @@ enum JsBuiltin {
/// Returns the JavaScript constructor function for Dart's Object class.
/// This can be used for type tests, as in
///
/// var constructor = JS_BUILTIN('', JsBuiltin.dartObjectContructor);
/// var constructor = JS_BUILTIN('', JsBuiltin.dartObjectConstructor);
/// if (JS('bool', '# instanceof #', obj, constructor))
/// ...
dartObjectConstructor,

View file

@ -4374,7 +4374,7 @@ class _SimpleUri implements Uri {
}
// Merge two simple URIs. This should always result in a prefix of
// one concatentated with a suffix of the other, possibly with a `/` in
// one concatenated with a suffix of the other, possibly with a `/` in
// the middle of two merged paths, which is again simple.
// In a few cases, there might be a need for extra normalization, when
// resolving on top of a known scheme.

View file

@ -12029,7 +12029,7 @@ abstract class ElementList<T extends Element> extends ListBase<T> {
*
* Setting the height or width properties will set the height or width
* property for all elements in the list. This returns a rectangle with the
* dimenions actually available for content
* dimensions actually available for content
* in this element, in pixels, regardless of this element's box-sizing
* property. Getting the height or width returns the height or width of the
* first Element in this list.
@ -12044,7 +12044,7 @@ abstract class ElementList<T extends Element> extends ListBase<T> {
* Access dimensions and position of the first Element's content + padding box
* in this list.
*
* This returns a rectangle with the dimenions actually available for content
* This returns a rectangle with the dimensions actually available for content
* in this element, in pixels, regardless of this element's box-sizing
* property. Unlike [getBoundingClientRect], the dimensions of this rectangle
* will return the same numerical height if the element is hidden or not. This
@ -12059,7 +12059,7 @@ abstract class ElementList<T extends Element> extends ListBase<T> {
* Access dimensions and position of the first Element's content + padding +
* border box in this list.
*
* This returns a rectangle with the dimenions actually available for content
* This returns a rectangle with the dimensions actually available for content
* in this element, in pixels, regardless of this element's box-sizing
* property. Unlike [getBoundingClientRect], the dimensions of this rectangle
* will return the same numerical height if the element is hidden or not. This
@ -12072,7 +12072,7 @@ abstract class ElementList<T extends Element> extends ListBase<T> {
* Access dimensions and position of the first Element's content + padding +
* border + margin box in this list.
*
* This returns a rectangle with the dimenions actually available for content
* This returns a rectangle with the dimensions actually available for content
* in this element, in pixels, regardless of this element's box-sizing
* property. Unlike [getBoundingClientRect], the dimensions of this rectangle
* will return the same numerical height if the element is hidden or not. This
@ -13953,7 +13953,7 @@ class Element extends Node
/**
* Access this element's content position.
*
* This returns a rectangle with the dimenions actually available for content
* This returns a rectangle with the dimensions actually available for content
* in this element, in pixels, regardless of this element's box-sizing
* property. Unlike [getBoundingClientRect], the dimensions of this rectangle
* will return the same numerical height if the element is hidden or not.
@ -13969,7 +13969,7 @@ class Element extends Node
/**
* Access the dimensions and position of this element's content + padding box.
*
* This returns a rectangle with the dimenions actually available for content
* This returns a rectangle with the dimensions actually available for content
* in this element, in pixels, regardless of this element's box-sizing
* property. Unlike [getBoundingClientRect], the dimensions of this rectangle
* will return the same numerical height if the element is hidden or not. This
@ -13990,7 +13990,7 @@ class Element extends Node
* Access the dimensions and position of this element's content + padding +
* border box.
*
* This returns a rectangle with the dimenions actually available for content
* This returns a rectangle with the dimensions actually available for content
* in this element, in pixels, regardless of this element's box-sizing
* property. Unlike [getBoundingClientRect], the dimensions of this rectangle
* will return the same numerical height if the element is hidden or not. This
@ -14009,7 +14009,7 @@ class Element extends Node
* Access the dimensions and position of this element's content + padding +
* border + margin box.
*
* This returns a rectangle with the dimenions actually available for content
* This returns a rectangle with the dimensions actually available for content
* in this element, in pixels, regardless of this element's box-sizing
* property. Unlike [getBoundingClientRect], the dimensions of this rectangle
* will return the same numerical height if the element is hidden or not. This
@ -20127,7 +20127,7 @@ class HttpRequest extends HttpRequestEventTarget {
*
* Note: Most simple HTTP requests can be accomplished using the [getString],
* [request], [requestCrossOrigin], or [postFormData] methods. Use of this
* `open` method is intended only for more complext HTTP requests where
* `open` method is intended only for more complex HTTP requests where
* finer-grained control is needed.
*/
@DomName('XMLHttpRequest.open')
@ -20414,7 +20414,7 @@ class HttpRequest extends HttpRequestEventTarget {
*
* Note: Most simple HTTP requests can be accomplished using the [getString],
* [request], [requestCrossOrigin], or [postFormData] methods. Use of this
* `send` method is intended only for more complext HTTP requests where
* `send` method is intended only for more complex HTTP requests where
* finer-grained control is needed.
*
* ## Other resources
@ -26035,7 +26035,7 @@ class Node extends EventTarget {
@JSName('textContent')
/**
* All text within this node and its decendents.
* All text within this node and its descendents.
*
* ## Other resources
*
@ -26064,7 +26064,7 @@ class Node extends EventTarget {
/**
* Returns a copy of this node.
*
* If [deep] is `true`, then all of this node's children and decendents are
* If [deep] is `true`, then all of this node's children and descendents are
* copied as well. If [deep] is `false`, then only this node is copied.
*
* ## Other resources
@ -33982,7 +33982,7 @@ class Touch extends Interceptor {
final dynamic _get_target;
// As of Chrome 37, these all changed from long to double. This code
// preserves backwards compatability for the time being.
// preserves backwards compatibility for the time being.
int get __clientX => JS('num', '#.clientX', this).round();
int get __clientY => JS('num', '#.clientY', this).round();
int get __screenX => JS('num', '#.screenX', this).round();
@ -35552,7 +35552,7 @@ class WebSocket extends EventTarget {
*
* This method accepts data of type [Blob], [ByteBuffer], [String], or
* [TypedData]. Named variants [sendBlob], [sendByteBuffer], [sendString],
* or [sendTypedData], in constrast, only accept data of the specified type.
* or [sendTypedData], in contrast, only accept data of the specified type.
*/
@DomName('WebSocket.send')
@DocsEditable()
@ -35564,7 +35564,7 @@ class WebSocket extends EventTarget {
*
* This method accepts data of type [Blob], [ByteBuffer], [String], or
* [TypedData]. Named variants [sendBlob], [sendByteBuffer], [sendString],
* or [sendTypedData], in constrast, only accept data of the specified type.
* or [sendTypedData], in contrast, only accept data of the specified type.
*/
@DomName('WebSocket.send')
@DocsEditable()
@ -35576,7 +35576,7 @@ class WebSocket extends EventTarget {
*
* This method accepts data of type [Blob], [ByteBuffer], [String], or
* [TypedData]. Named variants [sendBlob], [sendByteBuffer], [sendString],
* or [sendTypedData], in constrast, only accept data of the specified type.
* or [sendTypedData], in contrast, only accept data of the specified type.
*/
@DomName('WebSocket.send')
@DocsEditable()
@ -35588,7 +35588,7 @@ class WebSocket extends EventTarget {
*
* This method accepts data of type [Blob], [ByteBuffer], [String], or
* [TypedData]. Named variants [sendBlob], [sendByteBuffer], [sendString],
* or [sendTypedData], in constrast, only accept data of the specified type.
* or [sendTypedData], in contrast, only accept data of the specified type.
*/
@DomName('WebSocket.send')
@DocsEditable()
@ -35600,7 +35600,7 @@ class WebSocket extends EventTarget {
*
* This method accepts data of type [Blob], [ByteBuffer], [String], or
* [TypedData]. Named variants [sendBlob], [sendByteBuffer], [sendString],
* or [sendTypedData], in constrast, only accept data of the specified type.
* or [sendTypedData], in contrast, only accept data of the specified type.
*/
@DomName('WebSocket.send')
@DocsEditable()
@ -43303,7 +43303,7 @@ class _KeyboardEventHandler extends EventStreamProvider<KeyEvent> {
}
/**
* Given the charater code returned from a keyDown [event], try to ascertain
* Given the character code returned from a keyDown [event], try to ascertain
* and return the corresponding charCode for the character that was pressed.
* This information is not shown to the user, but used to help polyfill
* keypress events.
@ -44707,7 +44707,7 @@ class KeyEvent extends _WrappedEvent implements KeyboardEvent {
// we set it with our specified values. Because we are doing custom setting
// of certain values (charCode/keyCode, etc) only in this class (as opposed
// to KeyboardEvent) and the way we set these custom values depends on the
// type of underlying JS object, we do all the contruction for the
// type of underlying JS object, we do all the construction for the
// underlying KeyboardEvent here.
if (canUseDispatchEvent) {
// Currently works in everything but Internet Explorer.

View file

@ -13089,7 +13089,7 @@ abstract class ElementList<T extends Element> extends ListBase<T> {
*
* Setting the height or width properties will set the height or width
* property for all elements in the list. This returns a rectangle with the
* dimenions actually available for content
* dimensions actually available for content
* in this element, in pixels, regardless of this element's box-sizing
* property. Getting the height or width returns the height or width of the
* first Element in this list.
@ -13104,7 +13104,7 @@ abstract class ElementList<T extends Element> extends ListBase<T> {
* Access dimensions and position of the first Element's content + padding box
* in this list.
*
* This returns a rectangle with the dimenions actually available for content
* This returns a rectangle with the dimensions actually available for content
* in this element, in pixels, regardless of this element's box-sizing
* property. Unlike [getBoundingClientRect], the dimensions of this rectangle
* will return the same numerical height if the element is hidden or not. This
@ -13119,7 +13119,7 @@ abstract class ElementList<T extends Element> extends ListBase<T> {
* Access dimensions and position of the first Element's content + padding +
* border box in this list.
*
* This returns a rectangle with the dimenions actually available for content
* This returns a rectangle with the dimensions actually available for content
* in this element, in pixels, regardless of this element's box-sizing
* property. Unlike [getBoundingClientRect], the dimensions of this rectangle
* will return the same numerical height if the element is hidden or not. This
@ -13132,7 +13132,7 @@ abstract class ElementList<T extends Element> extends ListBase<T> {
* Access dimensions and position of the first Element's content + padding +
* border + margin box in this list.
*
* This returns a rectangle with the dimenions actually available for content
* This returns a rectangle with the dimensions actually available for content
* in this element, in pixels, regardless of this element's box-sizing
* property. Unlike [getBoundingClientRect], the dimensions of this rectangle
* will return the same numerical height if the element is hidden or not. This
@ -14875,7 +14875,7 @@ class Element extends Node
/**
* Access this element's content position.
*
* This returns a rectangle with the dimenions actually available for content
* This returns a rectangle with the dimensions actually available for content
* in this element, in pixels, regardless of this element's box-sizing
* property. Unlike [getBoundingClientRect], the dimensions of this rectangle
* will return the same numerical height if the element is hidden or not.
@ -14891,7 +14891,7 @@ class Element extends Node
/**
* Access the dimensions and position of this element's content + padding box.
*
* This returns a rectangle with the dimenions actually available for content
* This returns a rectangle with the dimensions actually available for content
* in this element, in pixels, regardless of this element's box-sizing
* property. Unlike [getBoundingClientRect], the dimensions of this rectangle
* will return the same numerical height if the element is hidden or not. This
@ -14912,7 +14912,7 @@ class Element extends Node
* Access the dimensions and position of this element's content + padding +
* border box.
*
* This returns a rectangle with the dimenions actually available for content
* This returns a rectangle with the dimensions actually available for content
* in this element, in pixels, regardless of this element's box-sizing
* property. Unlike [getBoundingClientRect], the dimensions of this rectangle
* will return the same numerical height if the element is hidden or not. This
@ -14931,7 +14931,7 @@ class Element extends Node
* Access the dimensions and position of this element's content + padding +
* border + margin box.
*
* This returns a rectangle with the dimenions actually available for content
* This returns a rectangle with the dimensions actually available for content
* in this element, in pixels, regardless of this element's box-sizing
* property. Unlike [getBoundingClientRect], the dimensions of this rectangle
* will return the same numerical height if the element is hidden or not. This
@ -22361,7 +22361,7 @@ class HttpRequest extends HttpRequestEventTarget {
*
* Note: Most simple HTTP requests can be accomplished using the [getString],
* [request], [requestCrossOrigin], or [postFormData] methods. Use of this
* `open` method is intended only for more complext HTTP requests where
* `open` method is intended only for more complex HTTP requests where
* finer-grained control is needed.
*/
@DomName('XMLHttpRequest.open')
@ -29576,7 +29576,7 @@ class Node extends EventTarget {
_blink.BlinkNode.instance.previousSibling_Getter_(this);
/**
* All text within this node and its decendents.
* All text within this node and its descendents.
*
* ## Other resources
*
@ -29588,7 +29588,7 @@ class Node extends EventTarget {
String get text => _blink.BlinkNode.instance.textContent_Getter_(this);
/**
* All text within this node and its decendents.
* All text within this node and its descendents.
*
* ## Other resources
*
@ -29617,7 +29617,7 @@ class Node extends EventTarget {
/**
* Returns a copy of this node.
*
* If [deep] is `true`, then all of this node's children and decendents are
* If [deep] is `true`, then all of this node's children and descendents are
* copied as well. If [deep] is `false`, then only this node is copied.
*
* ## Other resources
@ -39196,7 +39196,7 @@ class Touch extends DartHtmlDomObject {
_blink.BlinkTouch.instance.target_Getter_(this));
// As of Chrome 37, these all changed from long to double. This code
// preserves backwards compatability for the time being.
// preserves backwards compatibility for the time being.
int get __clientX => _blink.BlinkTouch.instance.clientX_Getter_(this).round();
int get __clientY => _blink.BlinkTouch.instance.clientY_Getter_(this).round();
int get __screenX => _blink.BlinkTouch.instance.screenX_Getter_(this).round();
@ -48964,7 +48964,7 @@ class _KeyboardEventHandler extends EventStreamProvider<KeyEvent> {
}
/**
* Given the charater code returned from a keyDown [event], try to ascertain
* Given the character code returned from a keyDown [event], try to ascertain
* and return the corresponding charCode for the character that was pressed.
* This information is not shown to the user, but used to help polyfill
* keypress events.
@ -51247,7 +51247,7 @@ class _Utils {
}
/**
* Adds all candidate String completitions from [declarations] to [output]
* Adds all candidate String completions from [declarations] to [output]
* filtering based on [staticContext] and [includePrivate].
*/
static void _getCompletionsHelper(ClassMirror classMirror, bool staticContext,
@ -51325,7 +51325,7 @@ class _Utils {
}
/**
* Get valid code completitions from within a library and all libraries
* Get valid code completions from within a library and all libraries
* imported by that library.
*/
static List<String> getLibraryCompletionsIncludingImports(String url) {

View file

@ -157,7 +157,7 @@ class Sort {
bool pivots_are_equal = (compare(pivot1, pivot2) == 0);
if (pivots_are_equal) {
var pivot = pivot1;
// Degenerated case where the partitioning becomes a dutch national flag
// Degenerated case where the partitioning becomes a Dutch national flag
// problem.
//
// [ | < pivot | == pivot | unpartitioned | > pivot | ]

View file

@ -881,7 +881,7 @@ class _HttpGZipSink extends ByteConversionSink {
// The _HttpOutgoing handles all of the following:
// - Buffering
// - GZip compressionm
// - GZip compression
// - Content-Length validation.
// - Errors.
//
@ -1855,7 +1855,7 @@ class _HttpClient implements HttpClient {
_connectionsChanged();
}
// Remove a closed connnection from the active set.
// Remove a closed connection from the active set.
void _connectionClosed(_HttpClientConnection connection) {
connection.stopTimer();
var connectionTarget = _connectionTargets[connection.key];

View file

@ -805,7 +805,7 @@ class _HttpParser extends Stream<_HttpIncoming> {
}
void _onDone() {
// onDone cancles the subscription.
// onDone cancels the subscription.
_socketSubscription = null;
if (_state == _State.CLOSED || _state == _State.FAILURE) return;

View file

@ -108,7 +108,7 @@ class ProcessInfo {
* The current resident set size of memory for the process.
*
* Note that the meaning of this field is platform dependent. For example,
* some memory acounted for here may be shared with other processes, or if
* some memory accounted for here may be shared with other processes, or if
* the same page is mapped into a process's address space, it may be counted
* twice.
*/
@ -119,7 +119,7 @@ class ProcessInfo {
* process.
*
* Note that the meaning of this field is platform dependent. For example,
* some memory acounted for here may be shared with other processes, or if
* some memory accounted for here may be shared with other processes, or if
* the same page is mapped into a process's address space, it may be counted
* twice.
*/

View file

@ -76,7 +76,7 @@
* [JsObject.jsify] constructor, which converts Dart [Map]s and [Iterable]s
* into JavaScript Objects and Arrays.
*
* The following expression creats a new JavaScript object with the properties
* The following expression creates a new JavaScript object with the properties
* `a` and `b` defined:
*
* var jsMap = new JsObject.jsify({'a': 1, 'b': 2});

View file

@ -76,7 +76,7 @@
* [JsObject.jsify] constructor, which converts Dart [Map]s and [Iterable]s
* into JavaScript Objects and Arrays.
*
* The following expression creats a new JavaScript object with the properties
* The following expression creates a new JavaScript object with the properties
* `a` and `b` defined:
*
* var jsMap = new JsObject.jsify({'a': 1, 'b': 2});
@ -1683,8 +1683,8 @@ Expando<JSFunction> _interopCaptureThisExpando = new Expando<JSFunction>();
/// binding and calls [f] with the value of this passed as the first argument.
/// When called from Dart, [null] will be passed as the first argument.
///
/// See the documention for [allowInterop]. This method should only be used with
/// package:js Dart-JavaScript interop.
/// See the documentation for [allowInterop]. This method should only be used
/// with package:js Dart-JavaScript interop.
JSFunction allowInteropCaptureThis(Function f) {
if (f is JSFunction) {
// Behavior when the function is already a JS function is unspecified.

View file

@ -47,7 +47,7 @@ class BenchmarkBase {
/** Not measured setup code executed prior to the benchmark runs. */
void setup() {}
/** Not measures teardown code executed after the benchark runs. */
/** Not measures teardown code executed after the benchmark runs. */
void teardown() {}
/**

View file

@ -982,7 +982,7 @@ function(x, y, k) async {
} else {
continue;
}
default: // defaul case
default: // default case
break lab; // break to label
}
foo();

View file

@ -288,7 +288,7 @@ Future testData(TestData data) async {
Expect.equals(
expectedText,
valueText,
"Unexpected value '${valueText}' for contant "
"Unexpected value '${valueText}' for constant "
"`${constant.toDartText()}`, expected '${expectedText}'.");
});
});

View file

@ -217,12 +217,12 @@ Future testData(TestData data) async {
Expect.equals(
data.kind,
constant.kind,
"Unexpected kind '${constant.kind}' for contant "
"Unexpected kind '${constant.kind}' for constant "
"`${constant.toDartText()}`, expected '${data.kind}'.");
Expect.equals(
data.text,
constant.toDartText(),
"Unexpected text '${constant.toDartText()}' for contant, "
"Unexpected text '${constant.toDartText()}' for constant, "
"expected '${data.text}'.");
if (data.type != null) {
String instanceType =
@ -230,7 +230,7 @@ Future testData(TestData data) async {
Expect.equals(
data.type,
instanceType,
"Unexpected type '$instanceType' for contant "
"Unexpected type '$instanceType' for constant "
"`${constant.toDartText()}`, expected '${data.type}'.");
}
if (data.fields != null) {
@ -238,7 +238,7 @@ Future testData(TestData data) async {
Expect.equals(
data.fields.length,
instanceFields.length,
"Unexpected field count ${instanceFields.length} for contant "
"Unexpected field count ${instanceFields.length} for constant "
"`${constant.toDartText()}`, expected '${data.fields.length}'.");
instanceFields.forEach((field, expression) {
String name = '$field';
@ -248,7 +248,7 @@ Future testData(TestData data) async {
expected,
expression,
"Unexpected field expression ${expression} for field '$name' in "
"contant `${constant.toDartText()}`, expected '${expected}'.");
"constant `${constant.toDartText()}`, expected '${expected}'.");
});
}
});

View file

@ -32,7 +32,7 @@ void main() {
var sameContextInline = lib3.find("sameContextInline");
var ou_lib3 = outputUnitForElement(sameContextInline);
// Test that we actually got differnt output units.
// Test that we actually got different output units.
Expect.notEquals(ou_lib1.name, ou_lib3.name);
String mainOutput = collector.getOutput("", OutputType.js);

Some files were not shown because too many files have changed in this diff Show more