@@ -231,6 +231,9 @@ local function ofDocTypeName(source, newname, callback)
231231 if doc .type == ' doc.alias' then
232232 callback (doc , doc .alias .start , doc .alias .finish , newname )
233233 end
234+ if doc .type == ' doc.enum' then
235+ callback (doc , doc .enum .start , doc .enum .finish , newname )
236+ end
234237 end
235238 for _ , doc in ipairs (global :getGets (uri )) do
236239 if doc .type == ' doc.type.name' then
@@ -276,7 +279,8 @@ local function rename(source, newname, callback)
276279 return ofGlobal (source , newname , callback )
277280 elseif source .type == ' doc.class.name'
278281 or source .type == ' doc.type.name'
279- or source .type == ' doc.alias.name' then
282+ or source .type == ' doc.alias.name'
283+ or source .type == ' doc.enum.name' then
280284 return ofDocTypeName (source , newname , callback )
281285 elseif source .type == ' doc.param.name' then
282286 return ofDocParamName (source , newname , callback )
@@ -310,6 +314,7 @@ local function prepareRename(source)
310314 or source .type == ' doc.class.name'
311315 or source .type == ' doc.type.name'
312316 or source .type == ' doc.alias.name'
317+ or source .type == ' doc.enum.name'
313318 or source .type == ' doc.param.name' then
314319 return source , source [1 ]
315320 elseif source .type == ' string'
@@ -350,6 +355,7 @@ local accept = {
350355 [' doc.type.name' ] = true ,
351356 [' doc.alias.name' ] = true ,
352357 [' doc.param.name' ] = true ,
358+ [' doc.enum.name' ] = true ,
353359}
354360
355361local m = {}
0 commit comments