Skip to content

Commit

Permalink
[ggj][codegen] fix: space out lines in ServiceStubSettings (#387)
Browse files Browse the repository at this point in the history
* fix: refactor requestBuilder into separate method in ServiceClientClassComposer

* feat: add EmptyLineStatement

* fix: space out lines in ServiceStubSettings
  • Loading branch information
miraleung authored Oct 10, 2020
1 parent 3cea014 commit f365036
Show file tree
Hide file tree
Showing 5 changed files with 206 additions and 118 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ public ClassDefinition build() {
for (Statement statement : classDef.statements()) {
Preconditions.checkState(
statement instanceof CommentStatement
|| statement instanceof EmptyLineStatement
|| statement instanceof ExprStatement
|| statement instanceof BlockStatement,
"Class statement type must be either an expression, block, or comment statement");
Expand Down
Loading

0 comments on commit f365036

Please sign in to comment.