Exemplo n.º 1
0
 public CheckedVariableExpression(Token identifier,
                                  CheckedVariableDeclStatement variableDecl,
                                  IDataType dataType,
                                  CheckedExpression?objectInstance = null)
     : base(dataType)
 {
     Identifier     = identifier;
     VariableDecl   = variableDecl;
     ObjectInstance = objectInstance;
 }
Exemplo n.º 2
0
        public override CheckedStatement Clone(CheckedCloningInfo cloningInfo)
        {
            var newCheckedVariable = new CheckedVariableDeclStatement(
                Identifier,
                Value?.Clone(cloningInfo),
                DataType.Clone(cloningInfo),
                VariableType,
                IndexInObject
                );

            return(newCheckedVariable);
        }