Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
2a29cd94
Commit
2a29cd94
authored
Jun 11, 2019
by
rocky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small spelling typos
parent
57bbba6a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
astWalker.js
remix-lib/src/astWalker.js
+1
-1
eventManager.js
remix-lib/src/eventManager.js
+6
-6
sourceMappingDecoder.js
remix-lib/src/sourceMappingDecoder.js
+2
-2
util.js
remix-lib/src/util.js
+1
-1
No files found.
remix-lib/src/astWalker.js
View file @
2a29cd94
...
@@ -11,7 +11,7 @@ function AstWalker () {
...
@@ -11,7 +11,7 @@ function AstWalker () {
* @param {Object} ast - AST node
* @param {Object} ast - AST node
* @param {Object or Function} callback - if (Function) the function will be called for every node.
* @param {Object or Function} callback - if (Function) the function will be called for every node.
* - if (Object) callback[<Node Type>] will be called for
* - if (Object) callback[<Node Type>] will be called for
* every node of type <Node Type>. callback["*"] will be called fo all other nodes.
* every node of type <Node Type>. callback["*"] will be called fo
r
all other nodes.
* in each case, if the callback returns false it does not descend into children.
* in each case, if the callback returns false it does not descend into children.
* If no callback for the current type, children are visited.
* If no callback for the current type, children are visited.
*/
*/
...
...
remix-lib/src/eventManager.js
View file @
2a29cd94
...
@@ -6,12 +6,12 @@ function eventManager () {
...
@@ -6,12 +6,12 @@ function eventManager () {
}
}
/*
/*
* Unregister a listen
n
er.
* Unregister a listener.
* Note that if obj is a function. the unregistration will be applied to the dummy obj {}.
* Note that if obj is a function. the unregistration will be applied to the dummy obj {}.
*
*
* @param {String} eventName - the event name
* @param {String} eventName - the event name
* @param {Object or Func} obj - object that will listen on this event
* @param {Object or Func} obj - object that will listen on this event
* @param {Func} func - function of the listen
n
ers that will be executed
* @param {Func} func - function of the listeners that will be executed
*/
*/
eventManager
.
prototype
.
unregister
=
function
(
eventName
,
obj
,
func
)
{
eventManager
.
prototype
.
unregister
=
function
(
eventName
,
obj
,
func
)
{
if
(
!
this
.
registered
[
eventName
])
{
if
(
!
this
.
registered
[
eventName
])
{
...
@@ -29,12 +29,12 @@ eventManager.prototype.unregister = function (eventName, obj, func) {
...
@@ -29,12 +29,12 @@ eventManager.prototype.unregister = function (eventName, obj, func) {
}
}
/*
/*
* Register a new listen
n
er.
* Register a new listener.
* Note that if obj is a function, the function registration will be associated with the dummy object {}
* Note that if obj is a function, the function registration will be associated with the dummy object {}
*
*
* @param {String} eventName - the event name
* @param {String} eventName - the event name
* @param {Object or Func} obj - object that will listen on this event
* @param {Object or Func} obj - object that will listen on this event
* @param {Func} func - function of the listen
n
ers that will be executed
* @param {Func} func - function of the listeners that will be executed
*/
*/
eventManager
.
prototype
.
register
=
function
(
eventName
,
obj
,
func
)
{
eventManager
.
prototype
.
register
=
function
(
eventName
,
obj
,
func
)
{
if
(
!
this
.
registered
[
eventName
])
{
if
(
!
this
.
registered
[
eventName
])
{
...
@@ -52,10 +52,10 @@ eventManager.prototype.register = function (eventName, obj, func) {
...
@@ -52,10 +52,10 @@ eventManager.prototype.register = function (eventName, obj, func) {
/*
/*
* trigger event.
* trigger event.
* Every listen
n
er have their associated function executed
* Every listener have their associated function executed
*
*
* @param {String} eventName - the event name
* @param {String} eventName - the event name
* @param {Array}j - argument that will be passed to the exec
tu
ed function.
* @param {Array}j - argument that will be passed to the exec
ut
ed function.
*/
*/
eventManager
.
prototype
.
trigger
=
function
(
eventName
,
args
)
{
eventManager
.
prototype
.
trigger
=
function
(
eventName
,
args
)
{
if
(
!
this
.
registered
[
eventName
])
{
if
(
!
this
.
registered
[
eventName
])
{
...
...
remix-lib/src/sourceMappingDecoder.js
View file @
2a29cd94
...
@@ -70,7 +70,7 @@ SourceMappingDecoder.prototype.decompressAll = function (mapping) {
...
@@ -70,7 +70,7 @@ SourceMappingDecoder.prototype.decompressAll = function (mapping) {
* Retrieve line/column position of each source char
* Retrieve line/column position of each source char
*
*
* @param {String} source - contract source code
* @param {String} source - contract source code
* @return {Arr
r
ay} returns an array containing offset of line breaks
* @return {Array} returns an array containing offset of line breaks
*/
*/
SourceMappingDecoder
.
prototype
.
getLinebreakPositions
=
function
(
source
)
{
SourceMappingDecoder
.
prototype
.
getLinebreakPositions
=
function
(
source
)
{
var
ret
=
[]
var
ret
=
[]
...
@@ -81,7 +81,7 @@ SourceMappingDecoder.prototype.getLinebreakPositions = function (source) {
...
@@ -81,7 +81,7 @@ SourceMappingDecoder.prototype.getLinebreakPositions = function (source) {
}
}
/**
/**
* Retrieve the line/colum position for the given source mapping
* Retrieve the line/colum
n
position for the given source mapping
*
*
* @param {Object} sourceLocation - object containing attributes {source} and {length}
* @param {Object} sourceLocation - object containing attributes {source} and {length}
* @param {Array} lineBreakPositions - array returned by the function 'getLinebreakPositions'
* @param {Array} lineBreakPositions - array returned by the function 'getLinebreakPositions'
...
...
remix-lib/src/util.js
View file @
2a29cd94
...
@@ -3,7 +3,7 @@ var ethutil = require('ethereumjs-util')
...
@@ -3,7 +3,7 @@ var ethutil = require('ethereumjs-util')
/*
/*
contains misc util: @TODO should be splitted
contains misc util: @TODO should be splitted
- hex conver
t
ion
- hex conver
s
ion
- binary search
- binary search
- CALL related look up
- CALL related look up
- sha3 calculation
- sha3 calculation
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment