@@ -5469,8 +5469,8 @@ instance Control.DeepSeq.NFData StackGraphNode where
5469
5469
* 'Proto.Semantic_Fields.from' @:: Lens' StackGraphPath Data.Int.Int64@
5470
5470
* 'Proto.Semantic_Fields.edges' @:: Lens' StackGraphPath Data.Text.Text@
5471
5471
* 'Proto.Semantic_Fields.to' @:: Lens' StackGraphPath Data.Int.Int64@
5472
- * 'Proto.Semantic_Fields.endingScopeStack' @:: Lens' StackGraphPath [Data.Text.Text ]@
5473
- * 'Proto.Semantic_Fields.vec'endingScopeStack' @:: Lens' StackGraphPath (Data.Vector.Vector Data.Text.Text )@
5472
+ * 'Proto.Semantic_Fields.endingScopeStack' @:: Lens' StackGraphPath [Data.Int.Int64 ]@
5473
+ * 'Proto.Semantic_Fields.vec'endingScopeStack' @:: Lens' StackGraphPath (Data.Vector.Unboxed. Vector Data.Int.Int64 )@
5474
5474
* 'Proto.Semantic_Fields.endingSymbolStack' @:: Lens' StackGraphPath [Data.Text.Text]@
5475
5475
* 'Proto.Semantic_Fields.vec'endingSymbolStack' @:: Lens' StackGraphPath (Data.Vector.Vector Data.Text.Text)@ -}
5476
5476
data StackGraphPath
@@ -5479,7 +5479,7 @@ data StackGraphPath
5479
5479
_StackGraphPath'from :: ! Data.Int. Int64 ,
5480
5480
_StackGraphPath'edges :: ! Data.Text. Text ,
5481
5481
_StackGraphPath'to :: ! Data.Int. Int64 ,
5482
- _StackGraphPath'endingScopeStack :: ! (Data.Vector. Vector Data.Text. Text ),
5482
+ _StackGraphPath'endingScopeStack :: ! (Data.Vector.Unboxed. Vector Data.Int. Int64 ),
5483
5483
_StackGraphPath'endingSymbolStack :: ! (Data.Vector. Vector Data.Text. Text ),
5484
5484
_StackGraphPath'_unknownFields :: ! Data.ProtoLens. FieldSet}
5485
5485
deriving (Prelude.Eq , Prelude.Ord )
@@ -5532,7 +5532,7 @@ instance Data.ProtoLens.Field.HasField StackGraphPath "to" Data.Int.Int64 where
5532
5532
(Lens.Family2.Unchecked. lens
5533
5533
_StackGraphPath'to (\ x__ y__ -> x__ {_StackGraphPath'to = y__}))
5534
5534
Prelude. id
5535
- instance Data.ProtoLens.Field. HasField StackGraphPath " endingScopeStack" [Data.Text. Text ] where
5535
+ instance Data.ProtoLens.Field. HasField StackGraphPath " endingScopeStack" [Data.Int. Int64 ] where
5536
5536
fieldOf _
5537
5537
= (Prelude. .)
5538
5538
(Lens.Family2.Unchecked. lens
@@ -5541,7 +5541,7 @@ instance Data.ProtoLens.Field.HasField StackGraphPath "endingScopeStack" [Data.T
5541
5541
(Lens.Family2.Unchecked. lens
5542
5542
Data.Vector.Generic. toList
5543
5543
(\ _ y__ -> Data.Vector.Generic. fromList y__))
5544
- instance Data.ProtoLens.Field. HasField StackGraphPath " vec'endingScopeStack" (Data.Vector. Vector Data.Text. Text ) where
5544
+ instance Data.ProtoLens.Field. HasField StackGraphPath " vec'endingScopeStack" (Data.Vector.Unboxed. Vector Data.Int. Int64 ) where
5545
5545
fieldOf _
5546
5546
= (Prelude. .)
5547
5547
(Lens.Family2.Unchecked. lens
@@ -5613,10 +5613,10 @@ instance Data.ProtoLens.Message StackGraphPath where
5613
5613
endingScopeStack__field_descriptor
5614
5614
= Data.ProtoLens. FieldDescriptor
5615
5615
" ending_scope_stack"
5616
- (Data.ProtoLens. ScalarField Data.ProtoLens. StringField ::
5617
- Data.ProtoLens. FieldTypeDescriptor Data.Text. Text )
5616
+ (Data.ProtoLens. ScalarField Data.ProtoLens. Int64Field ::
5617
+ Data.ProtoLens. FieldTypeDescriptor Data.Int. Int64 )
5618
5618
(Data.ProtoLens. RepeatedField
5619
- Data.ProtoLens. Unpacked
5619
+ Data.ProtoLens. Packed
5620
5620
(Data.ProtoLens.Field. field @ " endingScopeStack" )) ::
5621
5621
Data.ProtoLens. FieldDescriptor StackGraphPath
5622
5622
endingSymbolStack__field_descriptor
@@ -5655,7 +5655,7 @@ instance Data.ProtoLens.Message StackGraphPath where
5655
5655
= let
5656
5656
loop ::
5657
5657
StackGraphPath
5658
- -> Data.ProtoLens.Encoding.Growing. Growing Data.Vector. Vector Data.ProtoLens.Encoding.Growing. RealWorld Data.Text. Text
5658
+ -> Data.ProtoLens.Encoding.Growing. Growing Data.Vector.Unboxed. Vector Data.ProtoLens.Encoding.Growing. RealWorld Data.Int. Int64
5659
5659
-> Data.ProtoLens.Encoding.Growing. Growing Data.Vector. Vector Data.ProtoLens.Encoding.Growing. RealWorld Data.Text. Text
5660
5660
-> Data.ProtoLens.Encoding.Growing. Growing Data.Vector. Vector Data.ProtoLens.Encoding.Growing. RealWorld Data.Text. Text
5661
5661
-> Data.ProtoLens.Encoding.Bytes. Parser StackGraphPath
@@ -5766,21 +5766,38 @@ instance Data.ProtoLens.Message StackGraphPath where
5766
5766
mutable'endingScopeStack
5767
5767
mutable'endingSymbolStack
5768
5768
mutable'startingSymbolStack
5769
- 50
5769
+ 48
5770
5770
-> do ! y <- (Data.ProtoLens.Encoding.Bytes. <?>)
5771
- (do value <- do len <- Data.ProtoLens.Encoding.Bytes. getVarInt
5772
- Data.ProtoLens.Encoding.Bytes. getBytes
5773
- (Prelude. fromIntegral len)
5774
- Data.ProtoLens.Encoding.Bytes. runEither
5775
- (case Data.Text.Encoding. decodeUtf8' value of
5776
- (Prelude. Left err)
5777
- -> Prelude. Left (Prelude. show err)
5778
- (Prelude. Right r) -> Prelude. Right r))
5771
+ (Prelude. fmap
5772
+ Prelude. fromIntegral
5773
+ Data.ProtoLens.Encoding.Bytes. getVarInt)
5779
5774
" ending_scope_stack"
5780
5775
v <- Data.ProtoLens.Encoding.Parser.Unsafe. unsafeLiftIO
5781
5776
(Data.ProtoLens.Encoding.Growing. append
5782
5777
mutable'endingScopeStack y)
5783
5778
loop x v mutable'endingSymbolStack mutable'startingSymbolStack
5779
+ 50
5780
+ -> do y <- do len <- Data.ProtoLens.Encoding.Bytes. getVarInt
5781
+ Data.ProtoLens.Encoding.Bytes. isolate
5782
+ (Prelude. fromIntegral len)
5783
+ ((let
5784
+ ploop qs
5785
+ = do packedEnd <- Data.ProtoLens.Encoding.Bytes. atEnd
5786
+ if packedEnd then
5787
+ Prelude. return qs
5788
+ else
5789
+ do ! q <- (Data.ProtoLens.Encoding.Bytes. <?>)
5790
+ (Prelude. fmap
5791
+ Prelude. fromIntegral
5792
+ Data.ProtoLens.Encoding.Bytes. getVarInt)
5793
+ " ending_scope_stack"
5794
+ qs' <- Data.ProtoLens.Encoding.Parser.Unsafe. unsafeLiftIO
5795
+ (Data.ProtoLens.Encoding.Growing. append
5796
+ qs q)
5797
+ ploop qs'
5798
+ in ploop)
5799
+ mutable'endingScopeStack)
5800
+ loop x y mutable'endingSymbolStack mutable'startingSymbolStack
5784
5801
58
5785
5802
-> do ! y <- (Data.ProtoLens.Encoding.Bytes. <?>)
5786
5803
(do value <- do len <- Data.ProtoLens.Encoding.Bytes. getVarInt
@@ -5889,21 +5906,26 @@ instance Data.ProtoLens.Message StackGraphPath where
5889
5906
Prelude. fromIntegral
5890
5907
_v))
5891
5908
((Data.Monoid. <>)
5892
- (Data.ProtoLens.Encoding.Bytes. foldMapBuilder
5893
- (\ _v
5894
- -> (Data.Monoid. <>)
5895
- (Data.ProtoLens.Encoding.Bytes. putVarInt 50 )
5896
- ((Prelude. .)
5897
- (\ bs
5898
- -> (Data.Monoid. <>)
5899
- (Data.ProtoLens.Encoding.Bytes. putVarInt
5900
- (Prelude. fromIntegral
5901
- (Data.ByteString. length bs)))
5902
- (Data.ProtoLens.Encoding.Bytes. putBytes bs))
5903
- Data.Text.Encoding. encodeUtf8
5904
- _v))
5905
- (Lens.Family2. view
5906
- (Data.ProtoLens.Field. field @ " vec'endingScopeStack" ) _x))
5909
+ (let
5910
+ p = Lens.Family2. view
5911
+ (Data.ProtoLens.Field. field @ " vec'endingScopeStack" ) _x
5912
+ in
5913
+ if Data.Vector.Generic. null p then
5914
+ Data.Monoid. mempty
5915
+ else
5916
+ (Data.Monoid. <>)
5917
+ (Data.ProtoLens.Encoding.Bytes. putVarInt 50 )
5918
+ ((\ bs
5919
+ -> (Data.Monoid. <>)
5920
+ (Data.ProtoLens.Encoding.Bytes. putVarInt
5921
+ (Prelude. fromIntegral (Data.ByteString. length bs)))
5922
+ (Data.ProtoLens.Encoding.Bytes. putBytes bs))
5923
+ (Data.ProtoLens.Encoding.Bytes. runBuilder
5924
+ (Data.ProtoLens.Encoding.Bytes. foldMapBuilder
5925
+ ((Prelude. .)
5926
+ Data.ProtoLens.Encoding.Bytes. putVarInt
5927
+ Prelude. fromIntegral )
5928
+ p))))
5907
5929
((Data.Monoid. <>)
5908
5930
(Data.ProtoLens.Encoding.Bytes. foldMapBuilder
5909
5931
(\ _v
0 commit comments