compiler, runtime: Refactor P4Type to P4QualifiedType

Also, refer to the different pieces of the qualified type as
qualifiers and not attributes.

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
Will Hawkins
2026-05-04 07:29:51 -04:00
parent a84e778e79
commit 7c660b2b0c
30 changed files with 264 additions and 264 deletions
+3 -3
View File
@@ -21,10 +21,10 @@ public struct Parameter: CustomStringConvertible, Equatable {
}
public var name: Identifier
public var type: P4Type
public var type: P4QualifiedType
public init(
identifier: Identifier, withType type: P4Type
identifier: Identifier, withType type: P4QualifiedType
) {
self.name = identifier
self.type = type
@@ -46,7 +46,7 @@ public struct Parameter: CustomStringConvertible, Equatable {
return false
}
}
return arg_type.dataType().eq(rhs: self.type.dataType())
return arg_type.baseType().eq(rhs: self.type.baseType())
}
}