54 references to CodeSnippetExpression
Microsoft.Build.Tasks.Core (53)
WriteCodeFragment.cs (1)
410
value = new
CodeSnippetExpression
(parameter.Value);
XamlTaskFactory\TaskGenerator.cs (52)
445
new
CodeSnippetExpression
(SurroundWithQuotes(property.Name))),
447
new
CodeSnippetExpression
("false"))
451
removeExisting.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(property.Name), new
CodeSnippetExpression
(property.DefaultValue)));
455
removeExisting.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(property.Name), new
CodeSnippetExpression
(SurroundWithQuotes(property.DefaultValue))));
488
var isPropertySet = new CodeMethodInvokeExpression(new CodeThisReferenceExpression(), IsPropertySetMethod, new
CodeSnippetExpression
(SurroundWithQuotes(fallbackParameter.Value)));
489
var propertyNotSet = new CodeBinaryOperatorExpression(new CodeMethodInvokeExpression(new CodeThisReferenceExpression(), IsPropertySetMethod, new
CodeSnippetExpression
(SurroundWithQuotes(fallbackParameter.Key))), CodeBinaryOperatorType.ValueEquality, new
CodeSnippetExpression
(IsOff));
600
CodeAssignStatement setStatement = new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(SwitchToAdd), property), new
CodeSnippetExpression
(SurroundWithQuotes(value)));
651
new
CodeSnippetExpression
(SurroundWithQuotes(property.Name)))
656
isSet.FalseStatements.Add(new CodeMethodReturnStatement(new
CodeSnippetExpression
(IsOff)));
664
isSet.FalseStatements.Add(new CodeMethodReturnStatement(new
CodeSnippetExpression
("null")));
673
GenerateAssignPropertyToValue(propertyName, ReversibleProperty, new
CodeSnippetExpression
(property.Reversible));
685
GenerateAssignPropertyToValue(propertyName, RequiredProperty, new
CodeSnippetExpression
(property.Required));
694
CodeMethodInvokeExpression setParent = new CodeMethodInvokeExpression(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(SwitchToAdd), ParentProperty), AddLastMethod, new
CodeSnippetExpression
(SurroundWithQuotes(parentName)));
730
propertyName.SetStatements.Add(new CodeMethodInvokeExpression(new CodeThisReferenceExpression(), ReplaceToolSwitchMethod, new
CodeSnippetExpression
(SwitchToAdd)));
748
new
CodeSnippetExpression
(SurroundWithQuotes(property.Name)));
768
parameters = [new
CodeSnippetExpression
(SurroundWithQuotes(name)), new CodePrimitiveExpression(Int32.Parse(property.Min, CultureInfo.CurrentCulture)), new CodePrimitiveExpression(Int32.Parse(property.Max, CultureInfo.CurrentCulture)), new CodePropertySetValueReferenceExpression()];
772
parameters = [new
CodeSnippetExpression
(SurroundWithQuotes(name)), new CodePrimitiveExpression(Int32.Parse(property.Min, CultureInfo.CurrentCulture)), new
CodeSnippetExpression
("Int32.MaxValue"), new CodePropertySetValueReferenceExpression()];
776
parameters = [new
CodeSnippetExpression
(SurroundWithQuotes(name)), new
CodeSnippetExpression
("Int32.MinValue"), new CodePrimitiveExpression(Int32.Parse(property.Max, CultureInfo.CurrentCulture)), new CodePropertySetValueReferenceExpression()];
780
parameters = [new
CodeSnippetExpression
(SurroundWithQuotes(name)), new
CodeSnippetExpression
("Int32.MinValue"), new
CodeSnippetExpression
("Int32.MaxValue"), new CodePropertySetValueReferenceExpression()];
787
isValid.TrueStatements.Add(new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(SwitchToAdd), IsValidProperty), new
CodeSnippetExpression
(IsOn)));
788
isValid.FalseStatements.Add(new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(SwitchToAdd), IsValidProperty), new
CodeSnippetExpression
(IsOff)));
794
new
CodeSnippetExpression
(SurroundWithQuotes(property.Name)));
814
new
CodeSnippetExpression
(SurroundWithQuotes(property.Name)));
843
new
CodeSnippetExpression
(SurroundWithQuotes(arg.Parameter)),
849
new
CodeSnippetExpression
(SurroundWithQuotes(val.Name)),
850
val.SwitchName != String.Empty ? new
CodeSnippetExpression
(SurroundWithQuotes(val.Prefix + val.SwitchName)) : new
CodeSnippetExpression
(SurroundWithQuotes("")),
865
new
CodeSnippetExpression
(SurroundWithQuotes(property.Name)),
908
new
CodeSnippetExpression
(SurroundWithQuotes(property.Separator)));
915
new
CodeSnippetExpression
(SurroundWithQuotes(property.Name)));
919
GenerateAssignPropertyToValue(propertyName, MultiValues, new
CodeSnippetExpression
(IsOn));
926
new
CodeSnippetExpression
(SurroundWithQuotes(property.Name)));
930
CodeAssignStatement setToolSwitchName = new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(SwitchToAdd), SwitchValueProperty), property.SwitchName != String.Empty ? new
CodeSnippetExpression
(SurroundWithQuotes(property.Prefix + property.SwitchName)) : new
CodeSnippetExpression
(SurroundWithQuotes("")));
1018
new
CodeSnippetExpression
(SurroundWithQuotes(rel.SwitchValue)),
1019
new
CodeSnippetExpression
(SurroundWithQuotes(overrided)))));
1035
new
CodeSnippetExpression
(SurroundWithQuotes(rel.SwitchValue)),
1036
new
CodeSnippetExpression
(SurroundWithQuotes(overrided)))));
1060
new
CodeSnippetExpression
(SurroundWithQuotes(property.Name)));
1088
toolNameAccessor.GetStatements.Add(new CodeMethodReturnStatement(new
CodeSnippetExpression
(SurroundWithQuotes(_taskParser.ToolName))));
1134
var resourceNamespaceString = new
CodeSnippetExpression
(SurroundWithQuotes(_taskParser.ResourceNamespace));
1144
valueExpressions.Add(new
CodeSnippetExpression
(SurroundWithQuotes(switchName)));
1187
checkRequired.Condition, CodeBinaryOperatorType.BooleanAnd, new CodeBinaryOperatorExpression(new CodeMethodInvokeExpression(new CodeMethodReferenceExpression(new CodeThisReferenceExpression(), IsSwitchValueSetMethod), new
CodeSnippetExpression
(SurroundWithQuotes(required))), CodeBinaryOperatorType.IdentityEquality, new
CodeSnippetExpression
("false")));
1191
checkRequired.Condition = new CodeBinaryOperatorExpression(new CodeMethodInvokeExpression(new CodeMethodReferenceExpression(new CodeThisReferenceExpression(), IsSwitchValueSetMethod), new
CodeSnippetExpression
(SurroundWithQuotes(required))), CodeBinaryOperatorType.IdentityEquality, new
CodeSnippetExpression
("false"));
1197
new
CodeSnippetExpression
(SurroundWithQuotes(switchRelations.Key))));
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\CodeExporter.cs (1)
1094
enumMember.InitExpression = new
CodeSnippetExpression
(XmlConvert.ToString((ulong)longValue));