Esempio n. 1
0
 private void CheckTypeDefinition(ArrayList inputValues)
 {
     if (InputNodes.Count == 0 || !InputNodes.ContainsKey(0) || InputNodes[0] == null)
     {
         TypeDefinition = null;
     }
     else
     {
         if (inputValues[0] is string typeDef)
         {
             if (typeDef != _cachedTypeDefinition)
             {
                 try
                 {
                     TypeDefinition        = TypeDefinitionParser.ParseType(typeDef);
                     _cachedTypeDefinition = typeDef;
                 }
                 catch (Sprache.ParseException e)
                 {
                     TypeDefinition = null;
                     Warning(e.Message, true);
                 }
             }
         }
         else
         {
             Warning("Input Type must be of type string", true);
         }
     }
 }