private IEnumerable <GoSDKInvocation> FilterByPath(IEnumerable <MethodDefinition> metadata, InvocationCategory category)
 {
     return(from def in metadata
            let pattern = def.Path.ToPropertyPathRegex()
                          from op in CodeModel.Operations
                          from m in op.Methods.Cast <MethodTf>()
                          let path = JoinPathStrings(CodeModel.Name, op.Name, m.Name)
                                     where pattern.IsMatch(path)
                                     select new GoSDKInvocation(m, def, category));
 }
 public GoSDKInvocation(MethodTf method, MethodDefinition metadata, InvocationCategory category)
 {
     OriginalMethod   = method;
     OriginalMetadata = metadata;
     Category         = category;
 }