Remove more unused AST setters
Bug: tint:390 Change-Id: Ia15414e73ba921c0880556f4d43af783f1d497ea Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/35005 Reviewed-by: dan sinclair <dsinclair@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
parent
b8a3078bbe
commit
d1398203f9
|
@ -46,9 +46,6 @@ class ArrayAccessorExpression
|
||||||
/// @returns the array
|
/// @returns the array
|
||||||
Expression* array() const { return array_; }
|
Expression* array() const { return array_; }
|
||||||
|
|
||||||
/// Sets the index expression
|
|
||||||
/// @param idx_expr the index expression
|
|
||||||
void set_idx_expr(Expression* idx_expr) { idx_expr_ = idx_expr; }
|
|
||||||
/// @returns the index expression
|
/// @returns the index expression
|
||||||
Expression* idx_expr() const { return idx_expr_; }
|
Expression* idx_expr() const { return idx_expr_; }
|
||||||
|
|
||||||
|
|
|
@ -165,9 +165,6 @@ class Function : public Castable<Function, Node> {
|
||||||
/// @returns true if `name` is an ancestor entry point of this function
|
/// @returns true if `name` is an ancestor entry point of this function
|
||||||
bool HasAncestorEntryPoint(const std::string& name) const;
|
bool HasAncestorEntryPoint(const std::string& name) const;
|
||||||
|
|
||||||
/// Sets the return type of the function
|
|
||||||
/// @param type the return type
|
|
||||||
void set_return_type(type::Type* type) { return_type_ = type; }
|
|
||||||
/// @returns the function return type.
|
/// @returns the function return type.
|
||||||
type::Type* return_type() const { return return_type_; }
|
type::Type* return_type() const { return return_type_; }
|
||||||
/// @returns a pointer to the last statement of the function or nullptr if
|
/// @returns a pointer to the last statement of the function or nullptr if
|
||||||
|
|
|
@ -31,9 +31,6 @@ class SintLiteral : public Castable<SintLiteral, IntLiteral> {
|
||||||
SintLiteral(type::Type* type, int32_t value);
|
SintLiteral(type::Type* type, int32_t value);
|
||||||
~SintLiteral() override;
|
~SintLiteral() override;
|
||||||
|
|
||||||
/// Updates the literals value
|
|
||||||
/// @param val the value to set
|
|
||||||
void set_value(int32_t val) { value_ = val; }
|
|
||||||
/// @returns the int literal value
|
/// @returns the int literal value
|
||||||
int32_t value() const { return value_; }
|
int32_t value() const { return value_; }
|
||||||
|
|
||||||
|
|
|
@ -60,9 +60,6 @@ class Struct : public Castable<Struct, Node> {
|
||||||
/// @returns the struct decorations
|
/// @returns the struct decorations
|
||||||
const StructDecorationList& decorations() const { return decorations_; }
|
const StructDecorationList& decorations() const { return decorations_; }
|
||||||
|
|
||||||
/// Sets the struct members
|
|
||||||
/// @param members the members to set
|
|
||||||
void set_members(StructMemberList members) { members_ = std::move(members); }
|
|
||||||
/// @returns the members
|
/// @returns the members
|
||||||
const StructMemberList& members() const { return members_; }
|
const StructMemberList& members() const { return members_; }
|
||||||
|
|
||||||
|
|
|
@ -31,9 +31,6 @@ class UintLiteral : public Castable<UintLiteral, IntLiteral> {
|
||||||
UintLiteral(type::Type* type, uint32_t value);
|
UintLiteral(type::Type* type, uint32_t value);
|
||||||
~UintLiteral() override;
|
~UintLiteral() override;
|
||||||
|
|
||||||
/// Updates the literals value
|
|
||||||
/// @param val the value to set
|
|
||||||
void set_value(uint32_t val) { value_ = val; }
|
|
||||||
/// @returns the uint literal value
|
/// @returns the uint literal value
|
||||||
uint32_t value() const { return value_; }
|
uint32_t value() const { return value_; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue