File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed
Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 11package uast
22
33type Meta struct {
4- Type Type `json:"type,omitempty"`
5- Async bool `json:"async,omitempty"`
6- Defer bool `json:"defer,omitempty"`
7- IsRestElement bool `json:"isRestElement,omitempty"`
8- ReceiveCls string `json:"ReceiveCls"`
9- IsInterface bool `json:"isInterface,omitempty"`
4+ Type Type `json:"type,omitempty"`
5+ Async bool `json:"async,omitempty"`
6+ Defer bool `json:"defer,omitempty"`
7+ IsRestElement bool `json:"isRestElement,omitempty"`
8+ ReceiveCls string `json:"ReceiveCls"`
9+ IsInterface bool `json:"isInterface,omitempty"`
10+ IsDefaultImport bool `json:"isDefaultImport,omitempty"`
1011}
Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ func (u *Builder) VisitImportSpec(node *ast.ImportSpec) UNode {
3333 Cloned : false ,
3434 VarType : & DynamicType {Type : "DynamicType" },
3535 VariableParam : false ,
36+ Meta : Meta {
37+ IsDefaultImport : true ,
38+ },
3639 }
3740 } else {
3841 localName := node .Name .Name
@@ -61,7 +64,7 @@ func (u *Builder) VisitImportSpec(node *ast.ImportSpec) UNode {
6164 LiteralType : "string" ,
6265 },
6366 }, node .Path ),
64- Cloned : true ,
67+ Cloned : false ,
6568 VarType : & DynamicType {Type : "DynamicType" },
6669 VariableParam : false ,
6770 }
You can’t perform that action at this time.
0 commit comments