Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[engine][ast]Implement Break Statement #500

Merged
merged 2 commits into from
Nov 17, 2020
Merged

Conversation

summer-ji-eng
Copy link
Contributor

@summer-ji-eng summer-ji-eng commented Nov 17, 2020

To support write break statement:
Use case in composing sample code like:

   * try (EchoClient echoClient = EchoClient.create()) {
   *   PagedExpandRequest request = PagedExpandRequest.newBuilder().build();
   *   while (true) {
   *     PagedExpandResponse response = EchoClient.pagedExpandCallable().call(request);
   *     for (PagedExpandResponse element : response.getResponsesList()) {
   *       // doThingsWith(element);
   *     }
   *     String nextPageToken = response.getNextPageToken();
   *     if (!String.isNullOrEmpty(nextPageToken)) {
   *       request = PagedExpandRequest.toBuilder().setPageToken(nextPageToken).build();
   *     } else {
   *       break;
   *     }
   *   }
   * }

@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Nov 17, 2020
@miraleung
Copy link
Contributor

Could we please update the sample sniippet in the description as well?

@summer-ji-eng summer-ji-eng merged commit 000659e into master Nov 17, 2020
@summer-ji-eng summer-ji-eng deleted the break_statement branch November 17, 2020 19:26
suztomo pushed a commit that referenced this pull request Dec 16, 2022
…500)

Revert "chore(deps): update dependency protobuf to v3.20.2 (#1659)"

This reverts commit b59cf7b5a91ecab29e21fdfbb7e3b81066229be4.
Source-Link: https://github.com/googleapis/synthtool/commit/a66e34625d760ad299627f6613a1bd438c1b62a9
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:bd316b9a591c45264775ecaba72e37d65905925c323b68e51a08c4126e4b6d0a
suztomo pushed a commit that referenced this pull request Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants