forked from hhvm/hhast
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLintError.hack
More file actions
34 lines (27 loc) · 803 Bytes
/
Copy pathLintError.hack
File metadata and controls
34 lines (27 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
* Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
namespace Facebook\HHAST;
/**
* A problem detected by a lint rule
*
* LintError is more generic than SingleRuleLintError because LintError is
* associated with any LintRule, not necessarily a SingleRuleLinter.
*/
<<__Sealed(
SingleRuleLintError::class,
HHClientLintError::class
)>>
interface LintError {
public function getFile(): File;
public function getRange(): ?((int, int), ?(int, int));
public function getDescription(): string;
public function getBlameCode(): ?string;
public function getPrettyBlame(): ?string;
public function getLintRule(): LintRule;
}