// only file on the source path are encoded, and only ASProject's have
// source path, so bail if it's not an ASProject
if (!(getProject() instanceof ASProject))
return Collections.<String, String>emptyMap();
ASProject asProject = (ASProject)getProject();
// bail if the file isn't on the source path
File sourceFile = new File(getAbsoluteFilename());
if (!asProject.isFileOnSourcePath(sourceFile))
return Collections.<String, String>emptyMap();
// as we're only dealing with AS or MXML compilation units on the source path,
// there should only ever be one definition, so just grab the first def.
IDefinition def = Iterables.getOnlyElement(getAllDefinitions());