--- layout: docs title: ScopeDescriptor edit_url: "https://github.com/nylas/N1/blob/master/src/scope-descriptor.coffee" ---

Summary

Wraps an Array of Strings. The Array describes a path from the root of the syntax tree to a token including all scope names for the entire path.

Methods that take a ScopeDescriptor will also accept an Array of {Strings} scope names e.g. ['.source.js'].

You can use ScopeDescriptors to get language-specific config settings via Config::get.

You should not need to create a ScopeDescriptor directly.

See the scopes and scope descriptor guide for more information.

Instance Methods

constructor(object)

Create a ScopeDescriptor object.

Parameters
Argument Description
object

Object

getScopesArray()

Returns
Return Values

Returns an Array of Strings