diff --git a/src/tint/sem/index_accessor_expression.h b/src/tint/sem/index_accessor_expression.h index 2375a9d558..8118659367 100644 --- a/src/tint/sem/index_accessor_expression.h +++ b/src/tint/sem/index_accessor_expression.h @@ -17,13 +17,9 @@ #include +#include "src/tint/ast/index_accessor_expression.h" #include "src/tint/sem/value_expression.h" -// Forward declarations -namespace tint::ast { -class IndexAccessorExpression; -} // namespace tint::ast - namespace tint::sem { /// IndexAccessorExpression holds the semantic information for a ast::IndexAccessorExpression node. @@ -52,6 +48,11 @@ class IndexAccessorExpression final : public Castable(declaration_); + } + /// @returns the object expression that is being indexed ValueExpression const* Object() const { return object_; }