don't log namespace declarations as dependencies
This commit is contained in:
parent
4784ee74c8
commit
805929c9b2
2 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@ class CSharpParser(TokenParser):
|
|||
self._process_other(token, content)
|
||||
|
||||
def _process_namespace(self, token, content):
|
||||
if content != 'import':
|
||||
if content != 'import' and content != 'package' and content != 'namespace':
|
||||
content = content.split('.')
|
||||
content = content[0] if len(content) == 1 else '.'.join(content[0:len(content)-1])
|
||||
self.append(content, truncate=False)
|
||||
|
|
|
@ -29,7 +29,7 @@ class JavaParser(TokenParser):
|
|||
self._process_other(token, content)
|
||||
|
||||
def _process_namespace(self, token, content):
|
||||
if content != 'import':
|
||||
if content != 'import' and content != 'package' and content != 'namespace':
|
||||
content = content.split('.')
|
||||
content = content[0] if len(content) == 1 else '.'.join(content[0:len(content)-1])
|
||||
self.append(content, truncate=False)
|
||||
|
|
Loading…
Reference in a new issue