commit | 35618a888941d2dc7358094e80f88ad96548f79a | [log] [tgz] |
---|---|---|
author | Googler <noreply@google.com> | Fri Oct 04 07:00:05 2019 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Oct 04 07:01:03 2019 -0700 |
tree | e8f2db8d9a9552d218bf3070e08d69b9c958796d | |
parent | 3a5dd87b88b3ab0f1505d0dfcd08b15dbf8ca9fe [diff] |
bazel syntax: remove type parameters from Parameter<V, T> Parameter is a part of the syntax, and is now created only by the parser. Its "default value" (V) is always an Expression. Its "type" (T) is no longer needed. The type parameters were presumably added to achieve an unholy form of code re-use in SkylarkSignatureProcessor and FunctionSignature: the @Param annotations from Java methods were converted into pseudo-syntax and then fed to WithValues.of. This change forks rather than reuses WithValues.of. One copy is renamed fromParameters, and is specialized to the parser; the other copy is inlined into getSignatureForCallable and specialized to no longer need the construction of transient Parameter syntax nodes. Both copies will be simplified in follow-up changes that make further slices at the monster that is FunctionSignature. Also: remove confusingly named isMandatory and isOptional methods. They were instanceof tests, and thus not opposites. PiperOrigin-RevId: 272868319
{Fast, Correct} - Choose two
Build and test software of any size, quickly and reliably.
Speed up your builds and tests: Bazel rebuilds only what is necessary. With advanced local and distributed caching, optimized dependency analysis and parallel execution, you get fast and incremental builds.
One tool, multiple languages: Build and test Java, C++, Android, iOS, Go, and a wide variety of other language platforms. Bazel runs on Windows, macOS, and Linux.
Scalable: Bazel helps you scale your organization, codebase, and continuous integration solution. It handles codebases of any size, in multiple repositories or a huge monorepo.
Extensible to your needs: Easily add support for new languages and platforms with Bazel's familiar extension language. Share and re-use language rules written by the growing Bazel community.
Follow our tutorials:
See CONTRIBUTING.md
Bazel is released in ‘Beta’. See the product roadmap to learn about the path toward a stable 1.0 release.