Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F8896172
jsxmin_reduction.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
697 B
Subscribers
None
jsxmin_reduction.h
View Options
#ifndef _JSXMIN_REDUCTION_H_
#define _JSXMIN_REDUCTION_H_
#include
"abstract_compiler_pass.h"
#include
<map>
typedef
std
::
map
<
std
::
string
,
std
::
string
>
replacement_t
;
namespace
fbjs
{
class
NodeProgram
;
class
NodeExpression
;
class
Node
;
}
class
CodeReduction
:
public
fbjs
::
AbstractCompilerPass
{
public
:
CodeReduction
()
{}
virtual
~
CodeReduction
()
{}
virtual
void
process
(
fbjs
::
NodeProgram
*
root
);
std
::
string
replacements
;
private
:
fbjs
::
Node
*
replace
(
fbjs
::
Node
*
haystack
,
const
fbjs
::
Node
*
needle
,
const
fbjs
::
Node
*
rep
);
const
fbjs
::
NodeExpression
*
find_expression
(
const
fbjs
::
Node
*
node
);
bool
parse_patterns
(
const
std
::
string
&
s
);
replacement_t
_replacement
;
};
#endif
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Fri, Jun 11, 10:45 AM (1 d, 23 h)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
3391395
Default Alt Text
jsxmin_reduction.h (697 B)
Attached To
rJX Javelin
Event Timeline
Log In to Comment