lib/google/cloud/debugger/breakpoint/stack_frame.rb in google-cloud-debugger-0.36.3 vs lib/google/cloud/debugger/breakpoint/stack_frame.rb in google-cloud-debugger-0.40.0

- old
+ new

@@ -53,11 +53,11 @@ @locals = [] end ## # @private New Google::Cloud::Debugger::Breakpoint::SourceLocation - # from a Google::Devtools::Clouddebugger::V2::SourceLocation object. + # from a Google::Cloud::Debugger::V2::SourceLocation object. def self.from_grpc grpc new.tap do |o| o.function = grpc.function o.location = SourceLocation.from_grpc grpc.location o.arguments = Variable.from_grpc_list grpc.arguments @@ -74,14 +74,14 @@ locals.nil? end ## # @private Exports the StackFrame to a - # Google::Devtools::Clouddebugger::V2::StackFrame object. + # Google::Cloud::Debugger::V2::StackFrame object. def to_grpc return nil if empty? - Google::Devtools::Clouddebugger::V2::StackFrame.new( + Google::Cloud::Debugger::V2::StackFrame.new( function: function.to_s, location: location.to_grpc, arguments: arguments_to_grpc, locals: locals_to_grpc ) @@ -89,17 +89,17 @@ private ## # @private Exports the StackFrame arguments to an array of - # Google::Devtools::Clouddebugger::V2::Variable objects. + # Google::Cloud::Debugger::V2::Variable objects. def arguments_to_grpc arguments.nil? ? [] : arguments.map(&:to_grpc) end ## # @private Exports the StackFrame locals to an array of - # Google::Devtools::Clouddebugger::V2::Variable objects. + # Google::Cloud::Debugger::V2::Variable objects. def locals_to_grpc locals.nil? ? [] : locals.map(&:to_grpc) end end end