This file contains hidden or 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
| // SPDX-License-Identifier: MIT | |
| pragma solidity >= 0.4.22 <0.9.0; | |
| library console { | |
| address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67); | |
| function _sendLogPayload(bytes memory payload) private view { | |
| uint256 payloadLength = payload.length; | |
| address consoleAddress = CONSOLE_ADDRESS; | |
| assembly { |
This file contains hidden or 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
| // SPDX-License-Identifier: UNLICENSED | |
| pragma solidity ^0.8; | |
| import "./Store.sol"; | |
| contract FacadeStore { | |
| address public owner; | |
| constructor() { | |
| owner = msg.sender; |
This file contains hidden or 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
| @Component({ name: 'render-component'}) | |
| export class RenderComponenet extends RendererComponent { | |
| ... | |
| private processTheReflection(reflection) { | |
| switch(reflection.kind) { | |
| .... | |
| case ReflectionKind.GetSignature: | |
| case ReflectionKind.SetSignature: | |
| const accessorParent = this.getParentBasedOnType(reflection, reflection.kind); |
This file contains hidden or 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
| @Component({ name: 'render-component'}) | |
| export class RenderComponenet extends RendererComponent { | |
| ... | |
| private processTheReflection(reflection) { | |
| switch(reflection.kind) { | |
| case ReflectionKind.Class: | |
| case ReflectionKind.Enum: | |
| case ReflectionKind.Interface: | |
| const filePath = reflection.sources[0].fileName; | |
| const parsedPath = this.fileOperations.getProcessedDir(filePath); |
This file contains hidden or 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
| @Component({ name: 'render-component'}) | |
| export class RenderComponenet extends RendererComponent { | |
| ... | |
| private onRenderBegin(event) { | |
| event.project.localization = this.application.options.getValue("localize"); | |
| const reflections = event.project.reflections; | |
| const options = this.application.options.getRawValues(); | |
| const localizeOpt = options[Constants.RENDER_OPTION]; | |
| if (localizeOpt) { |
This file contains hidden or 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
| @Component({ name: 'render-component'}) | |
| export class RenderComponenet extends RendererComponent { | |
| public initialize() { | |
| this.listenTo(this.owner, { | |
| [RendererEvent.BEGIN]: this.onRenderBegin, | |
| }); | |
| } | |
| ... |
This file contains hidden or 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
| module.exports = (PluginHost: Application) => { | |
| const app = PluginHost.owner; | |
| /** | |
| * Add Options register Component. | |
| */ | |
| app.options.addComponent('options-component', OptComponent); | |
| /** |
This file contains hidden or 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
| /** | |
| * Triggers per every reflection object. | |
| * @param reflection | |
| */ | |
| private resolve(context, reflection) { | |
| switch(reflection.kind) { | |
| ... | |
| case ReflectionKind.GetSignature: | |
| case ReflectionKind.SetSignature: | |
| const accessorName = reflection.parent.name; |
This file contains hidden or 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
| /** | |
| * Triggers per every reflection object. | |
| * @param reflection | |
| */ | |
| private resolve(context, reflection) { | |
| switch(reflection.kind) { | |
| case ReflectionKind.Enum: | |
| case ReflectionKind.Class: | |
| case ReflectionKind.Interface: | |
| /** |
This file contains hidden or 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
| @Component({ name: 'convert-component' }) | |
| export class ConvertComponent extends ConverterComponent { | |
| public initialize() { | |
| this.listenTo(this.owner, { | |
| [Converter.EVENT_RESOLVE]: this.resolve, | |
| [Converter.EVENT_RESOLVE_BEGIN]: this.onResolveBegin, | |
| [Converter.EVENT_RESOLVE_END]: this.onResolveEnd, | |
| [Converter.EVENT_END]: this.onEnd, |
NewerOlder