Where can I find an example of a Visual Studio 2010 extension that lets you put a smart tag on functions in a source code?

For example, if the cursor "stands" on a function name (and a function only), the user will be able to select my actions from the drop down menu (in addition to the existing operations).