Tweak description of TracePoint :line event

"code" here is too ambiguous. TracePoint events only occur if there
is a new statement or expression on that line, not if the line
is a continuation of a previous statement or expression and there
is no new statement or expression on the line.

For example:

```
[
 foo,   # start of expression, line event
 bar    # continuation of expression, no line event
]

[
 foo,   # start of expression, line event
 (bar)  # new expression, line event
]

foo(    # start of expression, line event
  bar   # continuation of expression, no line event
)

foo(    # start of expression, line event
  (bar) # new expression, line event
)
```

Fixes [Bug #15634]
This commit is contained in:
Jeremy Evans 2021-06-18 11:57:55 -07:00 коммит произвёл Samuel Williams
Родитель 53a094ea45
Коммит 72a4e1d3bb
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -31,7 +31,7 @@
#
# To filter what is traced, you can pass any of the following as +events+:
#
# +:line+:: execute code on a new line
# +:line+:: execute an expression or statement on a new line
# +:class+:: start a class or module definition
# +:end+:: finish a class or module definition
# +:call+:: call a Ruby method