vhdl-style-guide/vsg/vhdlFile/classify/subprogram_specification.py

22 lines
507 B
Python

# -*- coding: utf-8 -*-
from vsg.vhdlFile.classify import function_specification, procedure_specification
def detect(iCurrent, lObjects):
"""
subprogram_specification ::=
procedure_specification
| function_specification
"""
iReturn = procedure_specification.detect(iCurrent, lObjects)
if iReturn != iCurrent:
return iReturn
iReturn = function_specification.detect(iCurrent, lObjects)
if iReturn != iCurrent:
return iReturn
return iCurrent