@@ -89,27 +89,27 @@ func (d *LibraryLocation) UnmarshalJSON(b []byte) error {
89
89
func (d * LibraryLocation ) ToRPCLibraryLocation () rpc.LibraryLocation {
90
90
switch * d {
91
91
case IDEBuiltIn :
92
- return rpc .LibraryLocation_ide_builtin
92
+ return rpc .LibraryLocation_LIBRARY_LOCATION_IDE_BUILTIN
93
93
case PlatformBuiltIn :
94
- return rpc .LibraryLocation_platform_builtin
94
+ return rpc .LibraryLocation_LIBRARY_LOCATION_PLATFORM_BUILTIN
95
95
case ReferencedPlatformBuiltIn :
96
- return rpc .LibraryLocation_referenced_platform_builtin
96
+ return rpc .LibraryLocation_LIBRARY_LOCATION_REFERENCED_PLATFORM_BUILTIN
97
97
case User :
98
- return rpc .LibraryLocation_user
98
+ return rpc .LibraryLocation_LIBRARY_LOCATION_USER
99
99
}
100
100
panic (fmt .Sprintf ("invalid LibraryLocation value %d" , * d ))
101
101
}
102
102
103
103
// FromRPCLibraryLocation converts a rpc.LibraryLocation to a LibraryLocation
104
104
func FromRPCLibraryLocation (l rpc.LibraryLocation ) LibraryLocation {
105
105
switch l {
106
- case rpc .LibraryLocation_ide_builtin :
106
+ case rpc .LibraryLocation_LIBRARY_LOCATION_IDE_BUILTIN :
107
107
return IDEBuiltIn
108
- case rpc .LibraryLocation_platform_builtin :
108
+ case rpc .LibraryLocation_LIBRARY_LOCATION_PLATFORM_BUILTIN :
109
109
return PlatformBuiltIn
110
- case rpc .LibraryLocation_referenced_platform_builtin :
110
+ case rpc .LibraryLocation_LIBRARY_LOCATION_REFERENCED_PLATFORM_BUILTIN :
111
111
return ReferencedPlatformBuiltIn
112
- case rpc .LibraryLocation_user :
112
+ case rpc .LibraryLocation_LIBRARY_LOCATION_USER :
113
113
return User
114
114
}
115
115
panic (fmt .Sprintf ("invalid rpc.LibraryLocation value %d" , l ))
0 commit comments