Skip to content

Commit

Permalink
parser: _testdata/embedded1
Browse files Browse the repository at this point in the history
  • Loading branch information
xushiwei committed Apr 7, 2024
1 parent 24de6d8 commit c50c48c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
3 changes: 3 additions & 0 deletions parser/_testdata/embedded1/embtype.gop
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
type T struct {
abc.E
}
24 changes: 24 additions & 0 deletions parser/_testdata/embedded1/parser.expect
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package main

file embtype.gop
ast.GenDecl:
Tok: type
Specs:
ast.TypeSpec:
Name:
ast.Ident:
Name: T
Type:
ast.StructType:
Fields:
ast.FieldList:
List:
ast.Field:
Type:
ast.SelectorExpr:
X:
ast.Ident:
Name: abc
Sel:
ast.Ident:
Name: E

0 comments on commit c50c48c

Please sign in to comment.