Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions parser/internal/pratt_parser_worker.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <utility>
#include <vector>

#include "absl/base/attributes.h"
#include "absl/base/nullability.h"
#include "absl/base/optimization.h"
#include "absl/container/flat_hash_map.h"
Expand Down Expand Up @@ -257,7 +258,7 @@ class PrattParserWorker : public ParserWorker {
// Example (`(a + b)`): Consumes `(`, recurses to `ParseExpr()`, and expects
// `)`. Example (`has(x.y)`): Consumes `has`, parses arguments `(x.y)`, and
// expands the `has` macro.
ExprNode ParsePrimary();
ABSL_ATTRIBUTE_ALWAYS_INLINE inline ExprNode ParsePrimary();

ExprNode ParseList();
ExprNode ParseMap();
Expand Down Expand Up @@ -621,7 +622,8 @@ ExprNode PrattParserWorker<ExprNode>::ParseIdentOrCall() {
// (`[...]`, `{...}`), and identifiers/global function calls (`foo`,
// `has(x.y)`).
template <typename ExprNode>
ExprNode PrattParserWorker<ExprNode>::ParsePrimary() {
ABSL_ATTRIBUTE_ALWAYS_INLINE inline ExprNode
PrattParserWorker<ExprNode>::ParsePrimary() {
ExprNode expr;
TokenType tok_type = peek_token_.type;
if (tok_type == TokenType::kLeftParen) {
Expand Down
Loading