web 3d图形渲染器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
355 B

  1. 'use strict'
  2. exports.__esModule = true
  3. exports.default = function declaredScope(context, name) {
  4. let references = context.getScope().references
  5. , i
  6. for (i = 0; i < references.length; i++) {
  7. if (references[i].identifier.name === name) {
  8. break
  9. }
  10. }
  11. if (!references[i]) return undefined
  12. return references[i].resolved.scope.type
  13. }