-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite: 1.0.0-alpha, with full statement support, fluid syntax (#15)
* Branch to start v1, a partial rewrite. * Incremental work. * Start on new v1 * . * . * . * . * . * . * Another checkpoint. * Another checkpoint with if statements. * Next large incremental work. * Fix docs, more dart core types. * Add scoping back. * Add e2e test. * Update docs, pubspec. * Address comments. Address comments and presubmit script. . * . * .
- Loading branch information
1 parent
e2c28f2
commit 62d8db1
Showing
64 changed files
with
4,013 additions
and
2,578 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ dart: | |
- dev | ||
- stable | ||
|
||
script: ./tool/travis.sh | ||
script: ./tool/presubmit.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
When using `goo.gl` links in the library, please re-use the following: | ||
|
||
- References to the Dart Library | ||
- `dart:async`: https://goo.gl/Ulqbfz | ||
- `dart:core`: https://goo.gl/XbSfmT | ||
|
||
- References to Github | ||
- CONTRIBUTING.md: https://goo.gl/2LvV7f | ||
- File an issue to update `dart/*.dart`: https://goo.gl/Xc6xAz | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// Copyright (c) 2016, 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. | ||
|
||
/// Contains references to the `dart:async` SDK for use in code generation. | ||
/// | ||
/// This library is currently *experimental*, and is subject to change; it is | ||
/// currently manually maintained but there might be a strong use case for this | ||
/// to be automatically generated (at least partially) in the near future. | ||
/// | ||
/// ## Usage | ||
/// | ||
/// First import the library: | ||
/// import 'package:code_builder/code_builder.dart'; | ||
/// import 'package:code_builder/dart/async.dart'; | ||
/// | ||
/// All references are _namespaced_ under [lib$async]. Try it: | ||
/// // Outputs: new Future.value('Hello') | ||
/// async.Future.newInstanceNamed('value', [literal('Hello')]); | ||
/// | ||
/// If you are [missing a symbol from `dart:async`](https://goo.gl/XbSfmT) | ||
/// please send us a [pull request](https://goo.gl/2LvV7f) or | ||
/// [file an issue](https://goo.gl/IooPfl). | ||
library code_builder.dart.async; | ||
|
||
import 'dart:async' as dart_async; | ||
|
||
import 'package:code_builder/code_builder.dart'; | ||
|
||
/// References to `dart:async`. | ||
final DartAsync lib$async = new DartAsync._(); | ||
|
||
/// References to the `dart:async` library for code generation. See [lib$async]. | ||
class DartAsync { | ||
/// References [dart_async.Future]. | ||
final ReferenceBuilder Future = _ref('Future'); | ||
|
||
DartAsync._(); | ||
|
||
static ReferenceBuilder _ref(String name) => reference(name, 'dart:async'); | ||
} |
Oops, something went wrong.