20 lines
422 B
Python
20 lines
422 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from vsg.vhdlFile.classify import context_clause, library_unit
|
|
|
|
|
|
def detect(iToken, lObjects):
|
|
"""
|
|
design_unit ::=
|
|
context_clause library_unit
|
|
"""
|
|
iCurrent = context_clause.detect(iToken, lObjects)
|
|
if iCurrent != iToken:
|
|
return iCurrent
|
|
|
|
iCurrent = library_unit.detect(iToken, lObjects)
|
|
if iCurrent != iToken:
|
|
return iCurrent
|
|
|
|
return iToken
|