8bed532218
These changes ensure dart2js can infer toString() returns a non-null String on some of our samples. One tactic is to always write toString method for which all returned expressions are a an interpolation (or literal), or a call to StringBuffer.toString. R=alanknight@google.com, lrn@google.com Review URL: https://codereview.chromium.org//895813002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43534 260f80e4-7a28-3924-810f-c04153c831b5
15 lines
474 B
Plaintext
15 lines
474 B
Plaintext
// 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.
|
|
|
|
part of $LIBRARYNAME;
|
|
|
|
@DocsEditable()
|
|
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$MIXINS$IMPLEMENTS {
|
|
$!MEMBERS
|
|
|
|
@DomName('HTMLAnchorElement.toString')
|
|
@DocsEditable()
|
|
String toString() => JS('String', 'String(#)', this);
|
|
}
|