@@ -71,6 +71,11 @@ public struct DeclSyntax: DeclSyntaxProtocol, SyntaxHashable {
7171 self . _syntaxNode = Syntax ( data)
7272 }
7373
74+ public func _validateLayout( ) {
75+ // Check the layout of the concrete type
76+ return Syntax ( self ) . _validateLayout ( )
77+ }
78+
7479 public func `is`< S: DeclSyntaxProtocol > ( _ syntaxType: S . Type ) -> Bool {
7580 return self . as ( syntaxType) != nil
7681 }
@@ -159,6 +164,11 @@ public struct ExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
159164 self . _syntaxNode = Syntax ( data)
160165 }
161166
167+ public func _validateLayout( ) {
168+ // Check the layout of the concrete type
169+ return Syntax ( self ) . _validateLayout ( )
170+ }
171+
162172 public func `is`< S: ExprSyntaxProtocol > ( _ syntaxType: S . Type ) -> Bool {
163173 return self . as ( syntaxType) != nil
164174 }
@@ -247,6 +257,11 @@ public struct StmtSyntax: StmtSyntaxProtocol, SyntaxHashable {
247257 self . _syntaxNode = Syntax ( data)
248258 }
249259
260+ public func _validateLayout( ) {
261+ // Check the layout of the concrete type
262+ return Syntax ( self ) . _validateLayout ( )
263+ }
264+
250265 public func `is`< S: StmtSyntaxProtocol > ( _ syntaxType: S . Type ) -> Bool {
251266 return self . as ( syntaxType) != nil
252267 }
@@ -335,6 +350,11 @@ public struct TypeSyntax: TypeSyntaxProtocol, SyntaxHashable {
335350 self . _syntaxNode = Syntax ( data)
336351 }
337352
353+ public func _validateLayout( ) {
354+ // Check the layout of the concrete type
355+ return Syntax ( self ) . _validateLayout ( )
356+ }
357+
338358 public func `is`< S: TypeSyntaxProtocol > ( _ syntaxType: S . Type ) -> Bool {
339359 return self . as ( syntaxType) != nil
340360 }
@@ -423,6 +443,11 @@ public struct PatternSyntax: PatternSyntaxProtocol, SyntaxHashable {
423443 self . _syntaxNode = Syntax ( data)
424444 }
425445
446+ public func _validateLayout( ) {
447+ // Check the layout of the concrete type
448+ return Syntax ( self ) . _validateLayout ( )
449+ }
450+
426451 public func `is`< S: PatternSyntaxProtocol > ( _ syntaxType: S . Type ) -> Bool {
427452 return self . as ( syntaxType) != nil
428453 }
0 commit comments