private void MarkVariableForAnnotation(Variable variable)
        {
            _annotateEnumerationType = EnumerationType.Dummy;

            VariablesUsingEnumerationType.Add(variable);
            var function = variable.Parent as Function;

            if (function != null)
            {
                VariablesUsingEnumerationType.Add(function);
            }
        }
 private void GetVariablesUsingEnumeartionType()
 {
     VariablesUsingEnumerationType.Clear();
     if (_annotateEnumerationType == null)
     {
         return;
     }
     foreach (var pair in ainFile.MetadataFile.Metadata)
     {
         var variable = pair.Key;
         var metaData = pair.Value;
         if (metaData.EnumerationType == _annotateEnumerationType)
         {
             VariablesUsingEnumerationType.Add(variable);
         }
         var function = variable.Parent as Function;
         if (function != null)
         {
             VariablesUsingEnumerationType.Add(function);
         }
     }
 }