File tree Expand file tree Collapse file tree 3 files changed +6
-21
lines changed Expand file tree Collapse file tree 3 files changed +6
-21
lines changed Original file line number Diff line number Diff line change @@ -20,21 +20,6 @@ local TypeSort = {
2020 [' nil' =  999 ,
2121}
2222
23- local  innerTypeMap  =  {
24-  [' unknown' =  true ,
25-  [' any' =  true ,
26-  [' nil' =  true ,
27-  [' boolean' =  true ,
28-  [' number' =  true ,
29-  [' integer' =  true ,
30-  [' thread' =  true ,
31-  [' table' =  true ,
32-  [' string' =  true ,
33-  [' userdata' =  true ,
34-  [' lightuserdata' =  true ,
35-  [' function' =  true ,
36- }
37- 
3823local  m  =  {}
3924
4025local  function  mergeTable (a , b )
@@ -663,8 +648,4 @@ function m.getClass(source)
663648 return  view 
664649end 
665650
666- function  m .isInnerType (typeName )
667-  return  innerTypeMap [typeName ] ==  true 
668- end 
669- 
670651return  m 
Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ m.BuiltIn = {
260260 [' utf8' =  ' default' 
261261}
262262
263- m .BuiltinClass  =  {
263+ m .BuiltinType  =  {
264264 [' unknown' =  true ,
265265 [' any' =  true ,
266266 [' nil' =  true ,
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ function vm.getDocDefines(name)
4545end 
4646
4747function  vm .isDocDefined (name )
48-  if  define .BuiltinClass [name ] then 
48+  if  define .BuiltinType [name ] then 
4949 return  true 
5050 end 
5151 local  id  =  ' def:dn:'  ..  name 
@@ -55,6 +55,10 @@ function vm.isDocDefined(name)
5555 return  false 
5656end 
5757
58+ function  vm .isBuiltinType (name )
59+  return  define .BuiltinType [name ] ==  true 
60+ end 
61+ 
5862function  vm .getDocEnums (doc )
5963 if  not  doc  then 
6064 return  nil 
                         You can’t perform that action at this time. 
           
                  
0 commit comments