Пример #1
0
        public SelfParameterSymbol(InvocableSymbol containingSymbol, DataType dataType)
            : base(containingSymbol, null, false, dataType)
        {
            if (containingSymbol is FunctionSymbol)
            {
                throw new ArgumentException("Function can't have self parameter", nameof(containingSymbol));
            }

            ContainingSymbol = containingSymbol;
        }
 public VariableSymbol(
     InvocableSymbol containingSymbol,
     Name name,
     int?declarationNumber,
     bool isMutableBinding,
     DataType dataType)
     : base(containingSymbol, name, isMutableBinding, dataType)
 {
     ContainingSymbol  = containingSymbol;
     DeclarationNumber = declarationNumber;
 }