Add document & comment for spec (#703)
* Add document & comment for spec * remove duplicate field * use alias
This commit is contained in:
@@ -114,8 +114,10 @@ func (v *ApiVisitor) VisitTypeLit(ctx *api.TypeLitContext) interface{} {
|
||||
return alias
|
||||
}
|
||||
|
||||
doc := v.getDoc(ctx)
|
||||
st, ok := typeLit.(*TypeStruct)
|
||||
if ok {
|
||||
st.DocExpr = doc
|
||||
return st
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user