Exemple #1
0
 public Scope ReturningScope()
 {
     if (Calling.Type() == null)
     {
         return(Calling.ReturningScope());
     }
     else
     {
         return(Type()?.GetObjectScope());
     }
 }
Exemple #2
0
        public CodeType Type()
        {
            var type = Calling.Type();

            for (int i = 0; i < Index.Length; i++)
            {
                if (type is ArrayType)
                {
                    type = ((ArrayType)type).ArrayOfType;
                }
                else
                {
                    type = null;
                    break;
                }
            }
            return(type);
        }