Module: DSP

Defined in:
lib/dsp/dsp_protocol.rb,
lib/dsp/dsp_base.rb

Overview

rubocop:disable Layout/EmptyLinesAroundClassBody rubocop:disable Lint/UselessAssignment rubocop:disable Layout/TrailingWhitespace rubocop:disable Naming/MethodName

Defined Under Namespace

Classes: AttachRequest, AttachRequestArguments, AttachResponse, Breakpoint, BreakpointEvent, BreakpointLocation, BreakpointLocationsArguments, BreakpointLocationsRequest, BreakpointLocationsResponse, CancelArguments, CancelRequest, CancelResponse, Capabilities, CapabilitiesEvent, Checksum, ColumnDescriptor, CompletionItem, CompletionsArguments, CompletionsRequest, CompletionsResponse, ConfigurationDoneArguments, ConfigurationDoneRequest, ConfigurationDoneResponse, ContinueArguments, ContinueRequest, ContinueResponse, ContinuedEvent, DSPBase, DataBreakpoint, DataBreakpointInfoArguments, DataBreakpointInfoRequest, DataBreakpointInfoResponse, DisassembleArguments, DisassembleRequest, DisassembleResponse, DisassembledInstruction, DisconnectArguments, DisconnectRequest, DisconnectResponse, ErrorResponse, EvaluateArguments, EvaluateRequest, EvaluateResponse, Event, ExceptionBreakpointsFilter, ExceptionDetails, ExceptionInfoArguments, ExceptionInfoRequest, ExceptionInfoResponse, ExceptionOptions, ExceptionPathSegment, ExitedEvent, FunctionBreakpoint, GotoArguments, GotoRequest, GotoResponse, GotoTarget, GotoTargetsArguments, GotoTargetsRequest, GotoTargetsResponse, InitializeRequest, InitializeRequestArguments, InitializeResponse, InitializedEvent, LaunchRequest, LaunchRequestArguments, LaunchResponse, LoadedSourceEvent, LoadedSourcesArguments, LoadedSourcesRequest, LoadedSourcesResponse, Message, Module, ModuleEvent, ModulesArguments, ModulesRequest, ModulesResponse, ModulesViewDescriptor, NextArguments, NextRequest, NextResponse, OutputEvent, PauseArguments, PauseRequest, PauseResponse, ProcessEvent, ProgressEndEvent, ProgressStartEvent, ProgressUpdateEvent, ProtocolMessage, ReadMemoryArguments, ReadMemoryRequest, ReadMemoryResponse, Request, Response, RestartArguments, RestartFrameArguments, RestartFrameRequest, RestartFrameResponse, RestartRequest, RestartResponse, ReverseContinueArguments, ReverseContinueRequest, ReverseContinueResponse, RunInTerminalRequest, RunInTerminalRequestArguments, RunInTerminalResponse, Scope, ScopesArguments, ScopesRequest, ScopesResponse, SetBreakpointsArguments, SetBreakpointsRequest, SetBreakpointsResponse, SetDataBreakpointsArguments, SetDataBreakpointsRequest, SetDataBreakpointsResponse, SetExceptionBreakpointsArguments, SetExceptionBreakpointsRequest, SetExceptionBreakpointsResponse, SetExpressionArguments, SetExpressionRequest, SetExpressionResponse, SetFunctionBreakpointsArguments, SetFunctionBreakpointsRequest, SetFunctionBreakpointsResponse, SetVariableArguments, SetVariableRequest, SetVariableResponse, Source, SourceArguments, SourceBreakpoint, SourceRequest, SourceResponse, StackFrame, StackFrameFormat, StackTraceArguments, StackTraceRequest, StackTraceResponse, StepBackArguments, StepBackRequest, StepBackResponse, StepInArguments, StepInRequest, StepInResponse, StepInTarget, StepInTargetsArguments, StepInTargetsRequest, StepInTargetsResponse, StepOutArguments, StepOutRequest, StepOutResponse, StoppedEvent, TerminateArguments, TerminateRequest, TerminateResponse, TerminateThreadsArguments, TerminateThreadsRequest, TerminateThreadsResponse, TerminatedEvent, Thread, ThreadEvent, ThreadsRequest, ThreadsResponse, ValueFormat, Variable, VariablePresentationHint, VariablesArguments, VariablesRequest, VariablesResponse

Class Method Summary collapse

Class Method Details

.create_range(from_line, from_char, to_line, to_char) ⇒ Object



50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/dsp/dsp_base.rb', line 50

def self.create_range(from_line, from_char, to_line, to_char)
  {
    'start' => {
      'line' => from_line,
      'character' => from_char
    },
    'end' => {
      'line' => to_line,
      'character' => to_char
    }
  }
end