MCPcopy Create free account
hub / github.com/ycm-core/YouCompleteMe / _ConnectGroupChildren

Function _ConnectGroupChildren

python/ycm/syntax_parse.py:155–172  ·  view source on GitHub ↗
( group_name_to_group )

Source from the content-addressed store, hash-verified

153
154
155def _ConnectGroupChildren( group_name_to_group ):
156 def GetParentNames( group ):
157 links_to = 'links to '
158 parent_names = []
159 for line in group.lines:
160 if line.startswith( links_to ):
161 parent_names.append( line[ len( links_to ): ] )
162 return parent_names
163
164 for group in group_name_to_group.values():
165 parent_names = GetParentNames( group )
166
167 for parent_name in parent_names:
168 try:
169 parent_group = group_name_to_group[ parent_name ]
170 except KeyError:
171 continue
172 parent_group.children.append( group )
173
174
175def _GetAllDescendentats( root_group ):

Callers 1

Calls 1

GetParentNamesFunction · 0.85

Tested by

no test coverage detected