MCPcopy Index your code
hub / github.com/nodejs/node / Name

Method Name

tools/gyp/pylib/gyp/xcodeproj_file.py:359–375  ·  view source on GitHub ↗

Return the name corresponding to an object. Not all objects necessarily need to be nameable, and not all that do have a "name" property. Override as needed.

(self)

Source from the content-addressed store, hash-verified

357 return that
358
359 def Name(self):
360 """Return the name corresponding to an object.
361
362 Not all objects necessarily need to be nameable, and not all that do have
363 a "name" property. Override as needed.
364 """
365
366 # If the schema indicates that "name" is required, try to access the
367 # property even if it doesn't exist. This will result in a KeyError
368 # being raised for the property that should be present, which seems more
369 # appropriate than NotImplementedError in this case.
370 if "name" in self._properties or (
371 "name" in self._schema and self._schema["name"][3]
372 ):
373 return self._properties["name"]
374
375 raise NotImplementedError(self.__class__.__name__ + " must implement Name")
376
377 def Comment(self):
378 """Return a comment string for the object.

Callers 15

__repr__Method · 0.95
CommentMethod · 0.95
HashablesMethod · 0.95
parseMethod · 0.45
_make_nodeMethod · 0.45
compile_expressionMethod · 0.45
parse_assign_targetMethod · 0.45
parse_primaryMethod · 0.45
EnsureNoIDCollisionsMethod · 0.45
CompareMethod · 0.45
CompareRootGroupMethod · 0.45
HashablesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected