Wednesday, December 5, 2012

New Dart Editor Build 0.2.7.1_r15699


Dart Editor has a new build that supports theming, better error reporting, disabled support for the old getter definition syntax, numerous changes to the dart:html library and more.


Devon Carew fills us in on the details on this new build:
A new Dart Editor build is available at www.dartlang.org/editor. Changes include:

  • Added support for theming the Editor - check out the 'Visual Themes' page in the preferences dialog.
  • The extract local Variable refactoring can now extract part of a string literal.
  • Several build.dart improvements, including better error reporting.
  • There's now an option to not warn when a class with noSuchMethod() has unimplemented members.
  • Added an analyzer command line option: --type-checks-for-inferred-types. This lets command line users get the same warnings they would get with the editor.
  • Analysis changes to support the upcoming iterator changes.
  • Html editor tweaks and improvements.

Breaking changes:

We disabled support for the old getter definition syntax. The empty formal parameter list in the getter definition will be a compile error. To convert your sources from old to new syntax, simply remove the empty parameter list after the getter name. For example:

old: int get Length() => a.length;
new: int get Length => a.length;

dart:html changes:
  • Members have been ‘dartified’- they now follow the Dart naming guidelines (caveat that innerHTML has been special-cased to ease the transition to innerHtml)
    • old: Element.innerHTML
    • new: Element.innerHtml
  • Element.addText and Element.addHtml have been renamed to Element.appendText and Element.appendHtml.
  • There is now Element.append(element) as an abbreviation to Element.children.add(element).
  • pkg/htmlescape has been deleted.
                      And as always, view the changelog for the full list of changes, and to get started with the Editor see our tutorial.
                      As always, we invite you to join our Dart mailing list, ask questions on Stack Overflow, or file feature requests on dartbug.com.