MCPcopy
hub / github.com/Instagram/LibCST / Dot

Class Dot

libcst/_nodes/op.py:218–230  ·  view source on GitHub ↗

Used by :class:`Attribute` as a separator between subsequent :class:`Name` nodes.

Source from the content-addressed store, hash-verified

216@add_slots
217@dataclass(frozen=True)
218class Dot(_BaseOneTokenOp):
219 """
220 Used by :class:`Attribute` as a separator between subsequent :class:`Name` nodes.
221 """
222
223 #: Any space that appears directly before this dot.
224 whitespace_before: BaseParenthesizableWhitespace = SimpleWhitespace.field("")
225
226 #: Any space that appears directly after this dot.
227 whitespace_after: BaseParenthesizableWhitespace = SimpleWhitespace.field("")
228
229 def _get_token(self) -> str:
230 return "."
231
232
233@add_slots

Callers 4

convert_import_relativeFunction · 0.90
convert_dotted_nameFunction · 0.90
AttributeClass · 0.90

Calls 1

fieldMethod · 0.80

Tested by

no test coverage detected