Va. Code Ann. § 30-122
The provisions of this chapter shall be enforced by the Attorney General. In addition to any other powers and duties prescribed by law, the Attorney General shall have the following powers and duties:
2. He shall render advisory opinions to any legislator who seeks advice as to whether the facts in a particular case would constitute a violation of the provisions of this chapter. He shall determine which of his opinions or portions thereof are of general interest to the public and which may, from time to time, be published.
Irrespective of whether an opinion of the Attorney General has been requested and rendered, any legislator has the right to seek a declaratory judgment or other judicial relief as provided by law.
1987, Sp. Sess., c. 1, § 2.1-639.59; 2001, c. 844.