• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

abs-lang / abs / 737
71%
master: 63%

Build:
Build:
LAST BUILD BRANCH: 2.8.x
DEFAULT BRANCH: master
Ran 01 Aug 2019 06:49AM UTC
Jobs 3
Files 7
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

01 Aug 2019 06:42AM UTC coverage: 71.144% (+0.4%) from 70.774%
737

Pull #219

travis-ci-com

web-flow
Implicit return values (`null`), closes #217

This PR makes it possible to skip specifying a
return value, a common scenario when we want to exit,
for example, an IF statement:

```
if something {
  return;
}
```

Note that a value-less return statement needs to end with
a semicolon, else we would need substantial changes to our
lexer in order to carry forward new line breaks. Currently,
line breaks are not passed onto the parser, so the parser
wouldn't know whether to trigger a default return value
based on a line break:

```
if something {
  return # the parser would try to go ahead and parse the '{' as a return value
}
```

This also means there's a tricky behavior (documented in the docs),
as if the user forgets to include a semicolon and the next line contains
a valid expression, the expression will be used as return value:

```
if something {
  return
  1
} # the return value is 1
```

All considered, I think these trade-offs are ok, and rather than
undergoing an extensive refactoring of lexer/parser I would throw
this feature out there and then figure out if the community is too
annoyed by these couple of quirks...
Pull Request #219: Implicit return values (`null`), closes #217

221 of 221 new or added lines in 4 files covered. (100.0%)

2643 of 3715 relevant lines covered (71.14%)

83.01 hits per line

Jobs
ID Job ID Ran Files Coverage
1 737.1 (CONTEXT=abs) 01 Aug 2019 06:52AM UTC 0
69.99
Travis Job 737.1
2 737.2 (CONTEXT=abs) 01 Aug 2019 06:49AM UTC 0
71.14
Travis Job 737.2
3 737.3 (CONTEXT=abs) 01 Aug 2019 06:51AM UTC 0
71.14
Travis Job 737.3
Source Files on build 737
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #737
  • Pull Request #219
  • PR Base - 1.4.x (#634)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc