forked from apache/netbeans
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request apache#2555 from KacerCZ/netbeans-5052-unused-priv…
…ate-const [NETBEANS-5052] Mark unused private constants
- Loading branch information
Showing
8 changed files
with
73 additions
and
4 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
3 changes: 3 additions & 0 deletions
3
php/php.editor/test/unit/data/testfiles/semantic/anonymousClass01.php
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
3 changes: 3 additions & 0 deletions
3
php/php.editor/test/unit/data/testfiles/semantic/anonymousClass01.php.semantic
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
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
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
13 changes: 13 additions & 0 deletions
13
php/php.editor/test/unit/data/testfiles/semantic/unusedPrivateConst.php
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,13 @@ | ||
<?php | ||
|
||
class Foo { | ||
|
||
public const PUBLIC_CONST = 1; | ||
protected const PROTECTED_CONST = 2; | ||
private const USED_PRIVATE = 3; | ||
private const UNUSED_PRIVATE = 4; | ||
|
||
function bar() { | ||
return self::USED_PRIVATE; | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
php/php.editor/test/unit/data/testfiles/semantic/unusedPrivateConst.php.semantic
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,13 @@ | ||
<?php | ||
|
||
class |>CLASS:Foo<| { | ||
|
||
public const |>FIELD,STATIC:PUBLIC_CONST<| = 1; | ||
protected const |>FIELD,STATIC:PROTECTED_CONST<| = 2; | ||
private const |>FIELD,STATIC:USED_PRIVATE<| = 3; | ||
private const |>FIELD,STATIC,UNUSED:UNUSED_PRIVATE<| = 4; | ||
|
||
function |>METHOD:bar<|() { | ||
return self::|>FIELD,STATIC:USED_PRIVATE<|; | ||
} | ||
} |
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