has Extension
Determines whatever declaration has file extension.
Return
true if the declaration's extension matching with the extension, false otherwise.
Parameters
extension
The extension to check against. It is a non-null string representing the desired extension.