Homec4science

Add a method to get the indentation for an XHPASTNode

Authored by Joshua Spence <josh@joshuaspence.com> on Apr 6 2015, 23:44.

Description

Add a method to get the indentation for an XHPASTNode

Summary: Add a getIndentation() method to XHPASTNode. This method returns the whitespace that was used to indent the node. This is useful for linter rules which enforce various alignment-related nitpicks, such as {D11504} and {D12296}.

Test Plan: See D12296.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D12295

Details

Committed
Joshua Spence <josh@joshuaspence.com>Apr 6 2015, 23:44
Pushed
aubortMar 17 2017, 12:03
Parents
rPHU20aa8245ef50: Update script for compatibility with PHP CompatInfo v4.0.0
Branches
Unknown
Tags
Unknown

Event Timeline

Joshua Spence <josh@joshuaspence.com> committed rPHUd30d314dc8eb: Add a method to get the indentation for an XHPASTNode (authored by Joshua Spence <josh@joshuaspence.com>).Apr 6 2015, 23:44