LEFT | RIGHT |
1 // Copyright (C) 2012 Google Inc. | 1 // Copyright (C) 2012 Google Inc. |
2 // | 2 // |
3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
6 // | 6 // |
7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
8 // | 8 // |
9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
12 // See the License for the specific language governing permissions and | 12 // See the License for the specific language governing permissions and |
13 // limitations under the License. | 13 // limitations under the License. |
14 | 14 |
15 /** | 15 /** |
16 * @fileoverview | 16 * @fileoverview |
17 * Moves exported properties from "export" to "ses" to keep the global | 17 * Moves exported properties from "export" to "ses" to keep the global |
18 * environment clean. The methods are added to ses.rewriter___ since | 18 * environment clean. The methods are added to ses.rewriter since |
19 * these are not part of the public ses interface. | 19 * these are not part of the public ses interface. |
20 * | 20 * |
21 * @author jasvir@gmail.com | 21 * @author jasvir@gmail.com |
| 22 * \@overrides this |
22 * \@overrides ses | 23 * \@overrides ses |
23 * \@overrides exports | 24 * \@overrides exports |
24 */ | 25 */ |
25 | 26 |
26 ses.rewriter___ = {}; | 27 (function(ses, global) { |
27 ses.rewriter___.traverse = exports.traverse; | 28 ses.rewriter_ = {}; |
28 ses.rewriter___.parse = exports.parse; | 29 ses.rewriter_.traverse = exports.traverse; |
29 ses.rewriter___.generate = exports.generate; | 30 ses.rewriter_.parse = exports.parse; |
| 31 ses.rewriter_.generate = exports.generate; |
30 | 32 |
31 // No longer need exports | 33 // No longer need exports |
32 exports = void 0; | 34 delete global.exports; |
| 35 })(ses, this); |
LEFT | RIGHT |