Skip to content

Commit b014636

Browse files
committed
fix: to_op
1 parent 63f7a12 commit b014636

File tree

293 files changed

+15367
-15367
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

293 files changed

+15367
-15367
lines changed

codegen/gen/operation.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ func (p *Generator) GenOperationToOp(ctx context.Context, op *midl.Operation, di
364364
if n == "_" {
365365
continue
366366
}
367-
p.P(p.O(n), "=", "op."+n)
367+
p.P("op."+n, "=", p.O(n))
368368

369369
}
370370
p.P("return", "op")

msrpc/bkrp/backupkey/v1/v1.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -393,10 +393,10 @@ func (o *BackupKeyRequest) xxx_ToOp(ctx context.Context, op *xxx_BackupKeyOperat
393393
if o == nil {
394394
return op
395395
}
396-
o.ActionAgent = op.ActionAgent
397-
o.DataIn = op.DataIn
398-
o.DataInLength = op.DataInLength
399-
o.Param = op.Param
396+
op.ActionAgent = o.ActionAgent
397+
op.DataIn = o.DataIn
398+
op.DataInLength = o.DataInLength
399+
op.Param = o.Param
400400
return op
401401
}
402402

@@ -440,9 +440,9 @@ func (o *BackupKeyResponse) xxx_ToOp(ctx context.Context, op *xxx_BackupKeyOpera
440440
if o == nil {
441441
return op
442442
}
443-
o.DataOut = op.DataOut
444-
o.DataOutLength = op.DataOutLength
445-
o.Return = op.Return
443+
op.DataOut = o.DataOut
444+
op.DataOutLength = o.DataOutLength
445+
op.Return = o.Return
446446
return op
447447
}
448448

msrpc/bpau/bitspeerauth/v1/v1.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,8 @@ func (o *ExchangePublicKeysRequest) xxx_ToOp(ctx context.Context, op *xxx_Exchan
341341
if o == nil {
342342
return op
343343
}
344-
o.ClientKeyLength = op.ClientKeyLength
345-
o.ClientKey = op.ClientKey
344+
op.ClientKeyLength = o.ClientKeyLength
345+
op.ClientKey = o.ClientKey
346346
return op
347347
}
348348

@@ -386,9 +386,9 @@ func (o *ExchangePublicKeysResponse) xxx_ToOp(ctx context.Context, op *xxx_Excha
386386
if o == nil {
387387
return op
388388
}
389-
o.ServerKeyLength = op.ServerKeyLength
390-
o.ServerKey = op.ServerKey
391-
o.Return = op.Return
389+
op.ServerKeyLength = o.ServerKeyLength
390+
op.ServerKey = o.ServerKey
391+
op.Return = o.Return
392392
return op
393393
}
394394

msrpc/brwsa/browser/v0/v0.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -668,8 +668,8 @@ func (o *QueryOtherDomainsRequest) xxx_ToOp(ctx context.Context, op *xxx_QueryOt
668668
if o == nil {
669669
return op
670670
}
671-
o.ServerName = op.ServerName
672-
o.Info = op.Info
671+
op.ServerName = o.ServerName
672+
op.Info = o.Info
673673
return op
674674
}
675675

@@ -713,9 +713,9 @@ func (o *QueryOtherDomainsResponse) xxx_ToOp(ctx context.Context, op *xxx_QueryO
713713
if o == nil {
714714
return op
715715
}
716-
o.Info = op.Info
717-
o.TotalEntries = op.TotalEntries
718-
o.Return = op.Return
716+
op.Info = o.Info
717+
op.TotalEntries = o.TotalEntries
718+
op.Return = o.Return
719719
return op
720720
}
721721

msrpc/capr/lsacap/v1/v1.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ func (o *GetAvailableCapIDsResponse) xxx_ToOp(ctx context.Context, op *xxx_GetAv
224224
if o == nil {
225225
return op
226226
}
227-
o.WrappedCapIDs = op.WrappedCapIDs
228-
o.Return = op.Return
227+
op.WrappedCapIDs = o.WrappedCapIDs
228+
op.Return = o.Return
229229
return op
230230
}
231231

msrpc/cmpo/ixnremote/v1/v1.go

+61-61
Original file line numberDiff line numberDiff line change
@@ -1144,12 +1144,12 @@ func (o *PokeRequest) xxx_ToOp(ctx context.Context, op *xxx_PokeOperation) *xxx_
11441144
if o == nil {
11451145
return op
11461146
}
1147-
o.Rank = op.Rank
1148-
o.CalleeUUID = op.CalleeUUID
1149-
o.HostName = op.HostName
1150-
o.UUIDString = op.UUIDString
1151-
o.SizeOfBlob = op.SizeOfBlob
1152-
o.Blob = op.Blob
1147+
op.Rank = o.Rank
1148+
op.CalleeUUID = o.CalleeUUID
1149+
op.HostName = o.HostName
1150+
op.UUIDString = o.UUIDString
1151+
op.SizeOfBlob = o.SizeOfBlob
1152+
op.Blob = o.Blob
11531153
return op
11541154
}
11551155

@@ -1189,7 +1189,7 @@ func (o *PokeResponse) xxx_ToOp(ctx context.Context, op *xxx_PokeOperation) *xxx
11891189
if o == nil {
11901190
return op
11911191
}
1192-
o.Return = op.Return
1192+
op.Return = o.Return
11931193
return op
11941194
}
11951195

@@ -1599,16 +1599,16 @@ func (o *BuildContextRequest) xxx_ToOp(ctx context.Context, op *xxx_BuildContext
15991599
if o == nil {
16001600
return op
16011601
}
1602-
o.Rank = op.Rank
1603-
o.BindVersionSet = op.BindVersionSet
1604-
o.CalleeUUID = op.CalleeUUID
1605-
o.HostName = op.HostName
1606-
o.UUIDString = op.UUIDString
1607-
o.GUIDIn = op.GUIDIn
1608-
o.GUIDOut = op.GUIDOut
1609-
o.BoundVersionSet = op.BoundVersionSet
1610-
o.SizeOfBlob = op.SizeOfBlob
1611-
o.Blob = op.Blob
1602+
op.Rank = o.Rank
1603+
op.BindVersionSet = o.BindVersionSet
1604+
op.CalleeUUID = o.CalleeUUID
1605+
op.HostName = o.HostName
1606+
op.UUIDString = o.UUIDString
1607+
op.GUIDIn = o.GUIDIn
1608+
op.GUIDOut = o.GUIDOut
1609+
op.BoundVersionSet = o.BoundVersionSet
1610+
op.SizeOfBlob = o.SizeOfBlob
1611+
op.Blob = o.Blob
16121612
return op
16131613
}
16141614

@@ -1667,10 +1667,10 @@ func (o *BuildContextResponse) xxx_ToOp(ctx context.Context, op *xxx_BuildContex
16671667
if o == nil {
16681668
return op
16691669
}
1670-
o.GUIDOut = op.GUIDOut
1671-
o.BoundVersionSet = op.BoundVersionSet
1672-
o.Handle = op.Handle
1673-
o.Return = op.Return
1670+
op.GUIDOut = o.GUIDOut
1671+
op.BoundVersionSet = o.BoundVersionSet
1672+
op.Handle = o.Handle
1673+
op.Return = o.Return
16741674
return op
16751675
}
16761676

@@ -1863,10 +1863,10 @@ func (o *NegotiateResourcesRequest) xxx_ToOp(ctx context.Context, op *xxx_Negoti
18631863
if o == nil {
18641864
return op
18651865
}
1866-
o.Context = op.Context
1867-
o.ResourceType = op.ResourceType
1868-
o.RequestedCount = op.RequestedCount
1869-
o.AcceptedCount = op.AcceptedCount
1866+
op.Context = o.Context
1867+
op.ResourceType = o.ResourceType
1868+
op.RequestedCount = o.RequestedCount
1869+
op.AcceptedCount = o.AcceptedCount
18701870
return op
18711871
}
18721872

@@ -1909,8 +1909,8 @@ func (o *NegotiateResourcesResponse) xxx_ToOp(ctx context.Context, op *xxx_Negot
19091909
if o == nil {
19101910
return op
19111911
}
1912-
o.AcceptedCount = op.AcceptedCount
1913-
o.Return = op.Return
1912+
op.AcceptedCount = o.AcceptedCount
1913+
op.Return = o.Return
19141914
return op
19151915
}
19161916

@@ -2117,10 +2117,10 @@ func (o *SendReceiveRequest) xxx_ToOp(ctx context.Context, op *xxx_SendReceiveOp
21172117
if o == nil {
21182118
return op
21192119
}
2120-
o.Context = op.Context
2121-
o.MessagesCount = op.MessagesCount
2122-
o.SizeOfBoxCar = op.SizeOfBoxCar
2123-
o.BoxCar = op.BoxCar
2120+
op.Context = o.Context
2121+
op.MessagesCount = o.MessagesCount
2122+
op.SizeOfBoxCar = o.SizeOfBoxCar
2123+
op.BoxCar = o.BoxCar
21242124
return op
21252125
}
21262126

@@ -2158,7 +2158,7 @@ func (o *SendReceiveResponse) xxx_ToOp(ctx context.Context, op *xxx_SendReceiveO
21582158
if o == nil {
21592159
return op
21602160
}
2161-
o.Return = op.Return
2161+
op.Return = o.Return
21622162
return op
21632163
}
21642164

@@ -2359,9 +2359,9 @@ func (o *TearDownContextRequest) xxx_ToOp(ctx context.Context, op *xxx_TearDownC
23592359
if o == nil {
23602360
return op
23612361
}
2362-
o.ContextHandle = op.ContextHandle
2363-
o.Rank = op.Rank
2364-
o.TearDownType = op.TearDownType
2362+
op.ContextHandle = o.ContextHandle
2363+
op.Rank = o.Rank
2364+
op.TearDownType = o.TearDownType
23652365
return op
23662366
}
23672367

@@ -2403,8 +2403,8 @@ func (o *TearDownContextResponse) xxx_ToOp(ctx context.Context, op *xxx_TearDown
24032403
if o == nil {
24042404
return op
24052405
}
2406-
o.ContextHandle = op.ContextHandle
2407-
o.Return = op.Return
2406+
op.ContextHandle = o.ContextHandle
2407+
op.Return = o.Return
24082408
return op
24092409
}
24102410

@@ -2548,8 +2548,8 @@ func (o *BeginTearDownRequest) xxx_ToOp(ctx context.Context, op *xxx_BeginTearDo
25482548
if o == nil {
25492549
return op
25502550
}
2551-
o.ContextHandle = op.ContextHandle
2552-
o.TearDownType = op.TearDownType
2551+
op.ContextHandle = o.ContextHandle
2552+
op.TearDownType = o.TearDownType
25532553
return op
25542554
}
25552555

@@ -2585,7 +2585,7 @@ func (o *BeginTearDownResponse) xxx_ToOp(ctx context.Context, op *xxx_BeginTearD
25852585
if o == nil {
25862586
return op
25872587
}
2588-
o.Return = op.Return
2588+
op.Return = o.Return
25892589
return op
25902590
}
25912591

@@ -2836,12 +2836,12 @@ func (o *PokeWRequest) xxx_ToOp(ctx context.Context, op *xxx_PokeWOperation) *xx
28362836
if o == nil {
28372837
return op
28382838
}
2839-
o.Rank = op.Rank
2840-
o.CalleeUUID = op.CalleeUUID
2841-
o.HostName = op.HostName
2842-
o.UUIDString = op.UUIDString
2843-
o.SizeOfBlob = op.SizeOfBlob
2844-
o.Blob = op.Blob
2839+
op.Rank = o.Rank
2840+
op.CalleeUUID = o.CalleeUUID
2841+
op.HostName = o.HostName
2842+
op.UUIDString = o.UUIDString
2843+
op.SizeOfBlob = o.SizeOfBlob
2844+
op.Blob = o.Blob
28452845
return op
28462846
}
28472847

@@ -2881,7 +2881,7 @@ func (o *PokeWResponse) xxx_ToOp(ctx context.Context, op *xxx_PokeWOperation) *x
28812881
if o == nil {
28822882
return op
28832883
}
2884-
o.Return = op.Return
2884+
op.Return = o.Return
28852885
return op
28862886
}
28872887

@@ -3285,16 +3285,16 @@ func (o *BuildContextWRequest) xxx_ToOp(ctx context.Context, op *xxx_BuildContex
32853285
if o == nil {
32863286
return op
32873287
}
3288-
o.Rank = op.Rank
3289-
o.BindVersionSet = op.BindVersionSet
3290-
o.CalleeUUID = op.CalleeUUID
3291-
o.HostName = op.HostName
3292-
o.UUIDString = op.UUIDString
3293-
o.GUIDIn = op.GUIDIn
3294-
o.GUIDOut = op.GUIDOut
3295-
o.BoundVersionSet = op.BoundVersionSet
3296-
o.SizeOfBlob = op.SizeOfBlob
3297-
o.Blob = op.Blob
3288+
op.Rank = o.Rank
3289+
op.BindVersionSet = o.BindVersionSet
3290+
op.CalleeUUID = o.CalleeUUID
3291+
op.HostName = o.HostName
3292+
op.UUIDString = o.UUIDString
3293+
op.GUIDIn = o.GUIDIn
3294+
op.GUIDOut = o.GUIDOut
3295+
op.BoundVersionSet = o.BoundVersionSet
3296+
op.SizeOfBlob = o.SizeOfBlob
3297+
op.Blob = o.Blob
32983298
return op
32993299
}
33003300

@@ -3353,10 +3353,10 @@ func (o *BuildContextWResponse) xxx_ToOp(ctx context.Context, op *xxx_BuildConte
33533353
if o == nil {
33543354
return op
33553355
}
3356-
o.GUIDOut = op.GUIDOut
3357-
o.BoundVersionSet = op.BoundVersionSet
3358-
o.Handle = op.Handle
3359-
o.Return = op.Return
3356+
op.GUIDOut = o.GUIDOut
3357+
op.BoundVersionSet = o.BoundVersionSet
3358+
op.Handle = o.Handle
3359+
op.Return = o.Return
33603360
return op
33613361
}
33623362

0 commit comments

Comments
 (0)