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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
|
<FunctionNode name=':program' kind='SCRIPT' start='0' end='182'>
<isProgram/>
<!-- FunctionNode Parameters -->
<!-- FunctionNode Body -->
<Block start='0' end='182'>
<isFunctionBody/>
<isSynthetic/>
<!-- Block Statements -->
<VarNode name='url' start='6' end='35'>
<hasInit/>
<isAssignment/>
<isBlockScoped/>
<isConst/>
<!-- VarNode Assignment Dest -->
<IdentNode start='6' end='9'>
<name>url</name>
<isDeclaredHere/>
<isInitializedHere/>
</IdentNode>
<!-- VarNode Init -->
<BinaryNode type='ADD' start='13' end='35'>
<!-- BinaryNode lhs -->
<BinaryNode type='ADD' start='13' end='34'>
<!-- BinaryNode lhs -->
<BinaryNode type='ADD' start='13' end='27'>
<!-- BinaryNode lhs -->
<BinaryNode type='ADD' start='13' end='26'>
<!-- BinaryNode lhs -->
<StringLiteralNode value='http://' start='13' end='20'/>
<!-- BinaryNode rhs -->
<RuntimeNode start='22' end='26'>
<IdentNode start='22' end='26'>
<name>host</name>
</IdentNode>
</RuntimeNode>
</BinaryNode>
<!-- BinaryNode rhs -->
<StringLiteralNode value='' start='27' end='27'/>
</BinaryNode>
<!-- BinaryNode rhs -->
<RuntimeNode start='29' end='34'>
<IdentNode start='29' end='34'>
<name>route</name>
</IdentNode>
</RuntimeNode>
</BinaryNode>
<!-- BinaryNode rhs -->
<StringLiteralNode value='' start='35' end='35'/>
</BinaryNode>
</VarNode>
<VarNode name='dir' start='44' end='94'>
<hasInit/>
<isAssignment/>
<isBlockScoped/>
<isConst/>
<!-- VarNode Assignment Dest -->
<IdentNode start='44' end='47'>
<name>dir</name>
<isDeclaredHere/>
<isInitializedHere/>
</IdentNode>
<!-- VarNode Init -->
<BinaryNode type='ADD' start='51' end='94'>
<!-- BinaryNode lhs -->
<BinaryNode type='ADD' start='51' end='93'>
<!-- BinaryNode lhs -->
<StringLiteralNode value='build/public' start='51' end='63'/>
<!-- BinaryNode rhs -->
<RuntimeNode start='65' end='93'>
<CallNode start='65' end='93'>
<!-- CallNode Arguments -->
<LexerTokenLiteralNode value='/[^\/]*$/' start='79' end='88'/>
<StringLiteralNode value='' start='91' end='91'/>
<!-- CallNode Function -->
<AccessNode property='replace' start='65' end='78'>
<!-- AccessNode Base -->
<IdentNode start='65' end='70'>
<name>route</name>
</IdentNode>
</AccessNode>
</CallNode>
</RuntimeNode>
</BinaryNode>
<!-- BinaryNode rhs -->
<StringLiteralNode value='' start='94' end='94'/>
</BinaryNode>
</VarNode>
<VarNode name='name' start='103' end='180'>
<hasInit/>
<isAssignment/>
<isBlockScoped/>
<isConst/>
<!-- VarNode Assignment Dest -->
<IdentNode start='103' end='107'>
<name>name</name>
<isDeclaredHere/>
<isInitializedHere/>
</IdentNode>
<!-- VarNode Init -->
<TernaryNode start='130' end='180'>
<CallNode start='110' end='129'>
<!-- CallNode Arguments -->
<StringLiteralNode value='/' start='126' end='127'/>
<!-- CallNode Function -->
<AccessNode property='endsWith' start='110' end='124'>
<!-- AccessNode Base -->
<IdentNode start='110' end='115'>
<name>route</name>
</IdentNode>
</AccessNode>
</CallNode>
<JoinPredecessorExpression start='133' end='143'>
<StringLiteralNode value='index.html' start='133' end='143'/>
</JoinPredecessorExpression>
<JoinPredecessorExpression start='148' end='180'>
<BinaryNode type='ADD' start='148' end='180'>
<!-- BinaryNode lhs -->
<BinaryNode type='ADD' start='148' end='174'>
<!-- BinaryNode lhs -->
<StringLiteralNode value='' start='148' end='148'/>
<!-- BinaryNode rhs -->
<RuntimeNode start='171' end='174'>
<IndexNode start='150' end='174'>
<isIndex/>
<!-- IndexNode Base -->
<CallNode start='150' end='171'>
<!-- CallNode Arguments -->
<LexerTokenLiteralNode value='/[^/]+$/' start='162' end='170'/>
<!-- CallNode Function -->
<AccessNode property='match' start='150' end='161'>
<!-- AccessNode Base -->
<IdentNode start='150' end='155'>
<name>route</name>
</IdentNode>
</AccessNode>
</CallNode>
<!-- IndexNode Index -->
<NumberLiteralNode value='0' start='172' end='173'/>
</IndexNode>
</RuntimeNode>
</BinaryNode>
<!-- BinaryNode rhs -->
<StringLiteralNode value='.html' start='175' end='180'/>
</BinaryNode>
</JoinPredecessorExpression>
</TernaryNode>
</VarNode>
</Block>
</FunctionNode>
|