public override CheckedExpression Clone(CheckedCloningInfo cloningInfo) { return(new CheckedNewExpression( Arguments.CloneExpressions(cloningInfo), DataType.Clone(cloningInfo) )); }
public override CheckedExpression Clone(CheckedCloningInfo cloningInfo) { return(new CheckedDotExpression( Expressions.CloneExpressions(cloningInfo), DataType.Clone(cloningInfo) )); }
public override CheckedExpression Clone(CheckedCloningInfo cloningInfo) { return(new CheckedKeywordValueExpression( TokenKind, Arguments?.CloneExpressions(cloningInfo), DataType.Clone(cloningInfo) )); }
public void DataType() { DataType inter = new DataType(controller, "File"); inter.Alias = "Alias"; DataType gen = new DataType(controller, "T"); inter.GenericParameters.Add(gen); Assert.That(inter == inter.Clone(), Is.True); }
public override CheckedExpression Clone(CheckedCloningInfo cloningInfo) { return(new CheckedVariableExpression( Identifier, VariableDecl, DataType.Clone(cloningInfo), ObjectInstance?.Clone(cloningInfo) )); }
public override CheckedExpression Clone(CheckedCloningInfo cloningInfo) { return(new CheckedBinaryExpression( Left.Clone(cloningInfo), Operator, Right.Clone(cloningInfo), DataType.Clone(cloningInfo) )); }
public override CheckedExpression Clone(CheckedCloningInfo cloningInfo) { return(new CheckedBlockExpression( Statements.CloneStatements(cloningInfo), Environment, DataType.Clone(cloningInfo), ReturnsLastExpression )); }
public void DataType() { DataType inter = new DataType(controller, "File"); inter.Alias = "Alias"; DataType gen = new DataType(controller, "T"); inter.GenericParameters.Add(gen); Assert.That(inter == inter.Clone(), Is.True); }
public override CheckedStatement Clone(CheckedCloningInfo cloningInfo) { var newCheckedVariable = new CheckedVariableDeclStatement( Identifier, Value?.Clone(cloningInfo), DataType.Clone(cloningInfo), VariableType, IndexInObject ); return(newCheckedVariable); }
public override CheckedExpression Clone(CheckedCloningInfo cloningInfo) { var newObjectInstance = ObjectInstance?.Clone(cloningInfo); var parentClass = (newObjectInstance?.DataType as StructType)?.StructDecl; var newFunctionDecl = parentClass?.GetFunction( FunctionDecl.Identifier.Value, FunctionDecl.TypeArguments?.Select(x => x.Clone(cloningInfo)).ToList(), false ); return(new CheckedCallExpression( Arguments.CloneExpressions(cloningInfo), newFunctionDecl ?? FunctionDecl, DataType.Clone(cloningInfo), newObjectInstance )); }
public override Expression CloneExpression() { return(new UnaryExpression(Operator, DataType.Clone(), Expression.CloneExpression())); }
public override CheckedExpression Clone(CheckedCloningInfo cloningInfo) { return(new CheckedLiteralExpression(Value, DataType.Clone(cloningInfo))); }
public override CheckedExpression Clone(CheckedCloningInfo cloningInfo) { return(new CheckedTypeExpression(DataType.Clone(cloningInfo))); }