OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:uwline
(Results
1 - 6
of
6
) sorted by null
/external/yapf/yapf/yapflib/
reformatter.py
55
for
uwline
in _SingleOrMergedLines(uwlines):
56
first_token =
uwline
.first
57
_FormatFirstToken(first_token,
uwline
.depth, prev_uwline, final_lines)
59
indent_amt = indent_width *
uwline
.depth
60
state = format_decision_state.FormatDecisionState(
uwline
, indent_amt)
63
if not
uwline
.disable:
64
if
uwline
.first.is_comment:
65
uwline
.first.node.value =
uwline
.first.node.value.rstrip()
66
elif
uwline
.last.is_comment
[
all
...]
yapf_api.py
209
for
uwline
in uwlines:
210
res.extend(
uwline
.Split())
234
for
uwline
in uwlines:
235
uwline
.disable = not lines.intersection(
236
range(
uwline
.lineno,
uwline
.last.lineno + 1))
242
uwline
= uwlines[index]
243
if
uwline
.is_comment:
244
if _DisableYAPF(
uwline
.first.value.strip()):
247
uwline
= uwlines[index
[
all
...]
unwrapped_line.py
94
uwline
= UnwrappedLine(self.depth)
97
uwlines.append(
uwline
)
98
uwline
= UnwrappedLine(self.depth)
100
uwline
.AppendToken(tok)
102
if
uwline
.tokens:
103
uwlines.append(
uwline
)
105
for
uwline
in uwlines:
106
pytree_utils.SetNodeAnnotation(
uwline
.first.node,
108
uwline
.first.previous_token = None
109
uwline
.last.next_token = Non
[
all
...]
pytree_unwrapper.py
298
def _MatchBrackets(
uwline
):
306
uwline
: (UnwrappedLine) An unwrapped line.
309
for token in
uwline
.tokens:
323
def _AdjustSplitPenalty(
uwline
):
330
uwline
: (UnwrappedLine) An unwrapped line.
333
for index, token in enumerate(
uwline
.tokens):
/external/yapf/yapftests/
format_decision_state_test.py
39
uwline
= unwrapped_line.UnwrappedLine(0, _FilterLine(uwlines[0]))
40
uwline
.CalculateFormattingInformation()
43
state = format_decision_state.FormatDecisionState(
uwline
, 0)
93
uwline
= unwrapped_line.UnwrappedLine(0, _FilterLine(uwlines[0]))
94
uwline
.CalculateFormattingInformation()
97
state = format_decision_state.FormatDecisionState(
uwline
, 0)
136
def _FilterLine(
uwline
):
139
ft for ft in
uwline
.tokens
pytree_unwrapper_test.py
310
uwline
= actual[index]
312
for value in
uwline
:
316
self.assertEqual(
uwline
[open_bracket][0],
uwline
[close_bracket][1])
317
self.assertEqual(
uwline
[close_bracket][0],
uwline
[open_bracket][1])
Completed in 435 milliseconds