Rename declarResource to resourceDecl.