-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
11671: Don't return half-nil fat ptrs from `SyntaxNode()` r=iwahbe a=iwahbe Passing a typed `nil` through a interface conversion, such as a `*hclsyntax.UnaryOpExpr` through a `hclsyntax.Node` interface will result in a half-nil fat pointer with the value part `nil`. Since most of programgen assumes that `(model.Expression).SyntaxNode().Range()` is valid, a `syntax.None` is passed instead of a `nil`. Co-authored-by: Ian Wahbe <ian@wahbe.com>
- Loading branch information
Showing
2 changed files
with
45 additions
and
0 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