Skip to content

Commit

Permalink
Merge pull request #8 from gsmcmullin/variable-event
Browse files Browse the repository at this point in the history
Add missing VariableEvent object used by debugger-mi2 package
  • Loading branch information
steelbrain committed Nov 20, 2016
2 parents 5254a7c + f7b35aa commit a98f2d5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import BreakpointEvent from './breakpoint-event'
import DebuggerController from './debugger-controller'
import SessionEvent from './session-event'
import TargetEvent from './target-event'
import VariableEvent from './variable-event'
import type { Debugger, DebuggerView } from './types'
import { Disposable } from 'atom'

Expand All @@ -21,7 +22,8 @@ module.exports = {
return {
'BreakpointEvent': BreakpointEvent,
'SessionEvent': SessionEvent,
'TargetEvent': TargetEvent
'TargetEvent': TargetEvent,
'VariableEvent': VariableEvent
}
},

Expand Down
17 changes: 17 additions & 0 deletions lib/variable-event.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
'use babel'

/* @flow */

import Variable from './variable'

export type VariableEventType = 'updated' | 'left-scope' | 'entered-scope'

export default class VariableEvent {
type: VariableEventType;
variable: Variable;

constructor(type: VariableEventType, variable: Variable) {
this.type = type
this.variable = variable
}
}

0 comments on commit a98f2d5

Please sign in to comment.