-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
70 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/** @babel */ | ||
import { TextEditor, PointCompatible } from "atom"; | ||
/** | ||
* | ||
* @param {readonly string[]} scopes | ||
*/ | ||
export declare function isStringScope(scopes: readonly string[]): boolean; | ||
/** | ||
* | ||
* @param {TextEditor} editor | ||
* @param {number} start | ||
* @param {number} end | ||
*/ | ||
export declare function forLines(editor: TextEditor, start: number, end: number): string[]; | ||
/** | ||
* | ||
* @param {readonly string[]} scopes | ||
*/ | ||
export declare function isCommentScope(scopes: readonly string[]): boolean; | ||
/** | ||
* Returns `true` if the scope at `bufferPosition` in `editor` is valid code scope to be inspected. | ||
* Supposed to be used within Atom-IDE integrations, whose `grammarScopes` setting doesn't support | ||
* embedded scopes by default. | ||
* | ||
* @param {TextEditor} editor | ||
* @param {PointCompatible} bufferPosition | ||
*/ | ||
export declare function isValidScopeToInspect(editor: TextEditor, bufferPosition: PointCompatible): boolean; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters