mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-08 13:14:56 +00:00
Rename type::Array to type::ArrayType
This is to avoid name conflicts once we move all classes from namespace `type` to `sem`. Bug: tint:724 Change-Id: Icc3d81ae62eb3b329ce28e78a23ea27f29c9263b Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/48360 Commit-Queue: Antonio Maiorano <amaiorano@google.com> Reviewed-by: Ben Clayton <bclayton@google.com>
This commit is contained in:
committed by
Commit Bot service account
parent
e94237dcdd
commit
cf4057be01
@@ -19,7 +19,10 @@ TINT_INSTANTIATE_TYPEINFO(tint::sem::Array);
|
||||
namespace tint {
|
||||
namespace sem {
|
||||
|
||||
Array::Array(type::Array* type, uint32_t align, uint32_t size, uint32_t stride)
|
||||
Array::Array(type::ArrayType* type,
|
||||
uint32_t align,
|
||||
uint32_t size,
|
||||
uint32_t stride)
|
||||
: type_(type), align_(align), size_(size), stride_(stride) {}
|
||||
|
||||
} // namespace sem
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace tint {
|
||||
|
||||
// Forward declarations
|
||||
namespace type {
|
||||
class Array;
|
||||
class ArrayType;
|
||||
} // namespace type
|
||||
|
||||
namespace sem {
|
||||
@@ -37,10 +37,10 @@ class Array : public Castable<Array, Node> {
|
||||
/// @param size the byte size of the structure
|
||||
/// @param stride the number of bytes from the start of one element of the
|
||||
/// array to the start of the next element
|
||||
Array(type::Array* type, uint32_t align, uint32_t size, uint32_t stride);
|
||||
Array(type::ArrayType* type, uint32_t align, uint32_t size, uint32_t stride);
|
||||
|
||||
/// @return the resolved type of the Array
|
||||
type::Array* Type() const { return type_; }
|
||||
type::ArrayType* Type() const { return type_; }
|
||||
|
||||
/// @returns the byte alignment of the array
|
||||
/// @note this may differ from the alignment of a structure member of this
|
||||
@@ -57,7 +57,7 @@ class Array : public Castable<Array, Node> {
|
||||
uint32_t Stride() const { return stride_; }
|
||||
|
||||
private:
|
||||
type::Array* const type_;
|
||||
type::ArrayType* const type_;
|
||||
uint32_t const align_;
|
||||
uint32_t const size_;
|
||||
uint32_t const stride_;
|
||||
|
||||
@@ -30,7 +30,7 @@ class StructMember;
|
||||
class Variable;
|
||||
} // namespace ast
|
||||
namespace type {
|
||||
class Array;
|
||||
class ArrayType;
|
||||
class Struct;
|
||||
} // namespace type
|
||||
|
||||
@@ -53,7 +53,7 @@ class Variable;
|
||||
/// rules will be used to infer the return type based on the argument type.
|
||||
struct TypeMappings {
|
||||
//! @cond Doxygen_Suppress
|
||||
Array* operator()(type::Array*);
|
||||
Array* operator()(type::ArrayType*);
|
||||
Call* operator()(ast::CallExpression*);
|
||||
Expression* operator()(ast::Expression*);
|
||||
Function* operator()(ast::Function*);
|
||||
|
||||
Reference in New Issue
Block a user