don't log namespace declarations as dependencies

This commit is contained in:
Alan Hamlett 2014-12-23 00:33:49 -06:00
parent 4784ee74c8
commit 805929c9b2
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)