1. A method comprising: identifying, via a processor of a computer, in declarative language code segments in an application program, information describing content specific to each of a plurality of runtime states of the application program, wherein the application program comprises non-declarative code executable to provide the plurality of runtime states; and providing, via the processor of the computer, at least some of the information identified in the declarative language code segments for use by a search engine. wherein the search engine performs a search, the search engine using the provided information identified in the declarative language code segments to provide search results that identify one or more of the plurality of runtime states.