()
| 109 | } |
| 110 | |
| 111 | func GenerateWshCommandDeclMap() map[string]*WshRpcMethodDecl { |
| 112 | rtype := wshRpcInterfaceRType |
| 113 | rtnMap := make(map[string]*WshRpcMethodDecl) |
| 114 | for midx := 0; midx < rtype.NumMethod(); midx++ { |
| 115 | method := rtype.Method(midx) |
| 116 | decl := generateWshCommandDecl(method) |
| 117 | rtnMap[decl.Command] = decl |
| 118 | } |
| 119 | return rtnMap |
| 120 | } |