25 types derived from CodeExpression
System (25)
compmod\system\codedom\CodeArgumentReferenceExpression.cs (1)
25
public class CodeArgumentReferenceExpression :
CodeExpression
{
compmod\system\codedom\CodeArrayCreateExpression.cs (1)
26
public class CodeArrayCreateExpression :
CodeExpression
{
compmod\system\codedom\CodeArrayIndexerExpression.cs (1)
27
public class CodeArrayIndexerExpression :
CodeExpression
{
compmod\system\codedom\CodeBaseReferenceExpression.cs (1)
28
public class CodeBaseReferenceExpression :
CodeExpression
{
compmod\system\codedom\CodeBinaryOperatorExpression.cs (1)
27
public class CodeBinaryOperatorExpression :
CodeExpression
{
compmod\system\codedom\CodeCastExpression.cs (1)
28
public class CodeCastExpression :
CodeExpression
{
compmod\system\codedom\CodeDefaultValueExpression.cs (1)
15
public class CodeDefaultValueExpression :
CodeExpression
{
compmod\system\codedom\CodeDelegateCreateExpression.cs (1)
27
public class CodeDelegateCreateExpression :
CodeExpression
{
compmod\system\codedom\CodeDelegateInvokeExpression.cs (1)
28
public class CodeDelegateInvokeExpression :
CodeExpression
{
compmod\system\codedom\CodeDirectionExpression.cs (1)
25
public class CodeDirectionExpression :
CodeExpression
{
compmod\system\codedom\CodeEventReferenceExpression.cs (1)
25
public class CodeEventReferenceExpression :
CodeExpression
{
compmod\system\codedom\CodeFieldReferenceExpression.cs (1)
27
public class CodeFieldReferenceExpression :
CodeExpression
{
compmod\system\codedom\CodeIndexerExpression.cs (1)
27
public class CodeIndexerExpression :
CodeExpression
{
compmod\system\codedom\CodeMethodInvokeExpression.cs (1)
28
public class CodeMethodInvokeExpression :
CodeExpression
{
compmod\system\codedom\codemethodreferenceexpression.cs (1)
29
public class CodeMethodReferenceExpression :
CodeExpression
{
compmod\system\codedom\CodeObjectCreateExpression.cs (1)
27
public class CodeObjectCreateExpression :
CodeExpression
{
compmod\system\codedom\CodeParameterDeclarationExpression.cs (1)
27
public class CodeParameterDeclarationExpression :
CodeExpression
{
compmod\system\codedom\CodePrimitiveExpression.cs (1)
27
public class CodePrimitiveExpression :
CodeExpression
{
compmod\system\codedom\CodePropertyReferenceExpression.cs (1)
27
public class CodePropertyReferenceExpression :
CodeExpression
{
compmod\system\codedom\CodePropertySetValueReferenceExpression.cs (1)
27
public class CodePropertySetValueReferenceExpression :
CodeExpression
{
compmod\system\codedom\CodeSnippetExpression.cs (1)
27
public class CodeSnippetExpression :
CodeExpression
{
compmod\system\codedom\CodeThisReferenceExpression.cs (1)
27
public class CodeThisReferenceExpression :
CodeExpression
{
compmod\system\codedom\CodeTypeOfExpression.cs (1)
27
public class CodeTypeOfExpression :
CodeExpression
{
compmod\system\codedom\CodeTypeReferenceExpression.cs (1)
27
public class CodeTypeReferenceExpression :
CodeExpression
{
compmod\system\codedom\CodeVariableReferenceExpression.cs (1)
27
public class CodeVariableReferenceExpression :
CodeExpression
{
921 references to CodeExpression
PresentationBuildTasks (17)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (17)
988
CodeExpression
[] esParams = {};
1195
CodeExpression
ceEvent = cceTarget;
1729
private
CodeExpression
GetPropertyValueExpression(ITypeDescriptorContext ctx, Type typeToConvertTo, Object value, string attributeValue)
1731
CodeExpression
ce = null;
1788
CodeExpression
[] expressions = new
CodeExpression
[args.Length];
1801
foreach (
CodeExpression
e in expressions)
1819
foreach (
CodeExpression
e in expressions)
1872
private
CodeExpression
GetEventDelegate(CodeContext cc, MemberInfo miEvent, string eventName, string eventHandler)
1888
CodeExpression
cDelExp = cdce;
1893
CodeExpression
[] delParams = { cdce };
1914
private CodeStatement AddCLREvent(CodeContext cc,
CodeExpression
ce, MarkupEventInfo mei)
1920
private CodeStatement AddCLREvent(Type eventTarget, CodeContext cc,
CodeExpression
ce, MarkupEventInfo mei)
1926
CodeExpression
cDelExp = GetEventDelegate(cc, mei.mi, mei.eventName, mei.eventHandler);
2602
CodeExpression
[] uriParams = { new CodePrimitiveExpression(uriPart), cfreRelUri };
3044
CodeExpression
[] ctorParams = {};
3062
CodeExpression
ceValue = GetPropertyValueExpression(ctx, typeof(Uri), null, attributeValue);
System (138)
compmod\microsoft\csharp\csharpcodeprovider.cs (5)
930
foreach(
CodeExpression
exp in e.Indices) {
947
foreach(
CodeExpression
exp in e.Indices) {
1659
private void GenerateExpression(
CodeExpression
e) {
2661
((ICodeGenerator)this).GenerateCodeFromExpression((
CodeExpression
)en.Current, output.InnerWriter, options);
3891
void ICodeGenerator.GenerateCodeFromExpression(
CodeExpression
e, TextWriter w, CodeGeneratorOptions o) {
compmod\microsoft\visualbasic\VBCodeProvider.cs (3)
877
private void GenerateNotIsNullExpression(
CodeExpression
e) {
1278
foreach(
CodeExpression
exp in e.Indices) {
1295
foreach(
CodeExpression
exp in e.Indices) {
compmod\system\codedom\CodeArrayCreateExpression.cs (8)
29
private
CodeExpression
sizeExpression;
46
public CodeArrayCreateExpression(CodeTypeReference createType, params
CodeExpression
[] initializers) {
54
public CodeArrayCreateExpression(string createType, params
CodeExpression
[] initializers) {
62
public CodeArrayCreateExpression(Type createType, params
CodeExpression
[] initializers) {
100
public CodeArrayCreateExpression(CodeTypeReference createType,
CodeExpression
size) {
108
public CodeArrayCreateExpression(string createType,
CodeExpression
size) {
116
public CodeArrayCreateExpression(Type createType,
CodeExpression
size) {
169
public
CodeExpression
SizeExpression {
compmod\system\codedom\CodeArrayIndexerExpression.cs (4)
28
private
CodeExpression
targetObject;
40
public CodeArrayIndexerExpression(
CodeExpression
targetObject, params
CodeExpression
[] indices) {
49
public
CodeExpression
TargetObject {
compmod\system\codedom\CodeAssignStatement.cs (6)
28
private
CodeExpression
left;
29
private
CodeExpression
right;
45
public CodeAssignStatement(
CodeExpression
left,
CodeExpression
right) {
56
public
CodeExpression
Left {
71
public
CodeExpression
Right {
compmod\system\codedom\CodeAttachEventStatement.cs (5)
29
private
CodeExpression
listener;
44
public CodeAttachEventStatement(CodeEventReferenceExpression eventRef,
CodeExpression
listener) {
52
public CodeAttachEventStatement(
CodeExpression
targetObject, string eventName,
CodeExpression
listener) {
79
public
CodeExpression
Listener {
compmod\system\codedom\CodeAttributeArgument.cs (4)
29
private
CodeExpression
value;
44
public CodeAttributeArgument(
CodeExpression
value) {
54
public CodeAttributeArgument(string name,
CodeExpression
value) {
78
public
CodeExpression
Value {
compmod\system\codedom\CodeBinaryOperatorExpression.cs (6)
29
private
CodeExpression
left;
30
private
CodeExpression
right;
47
public CodeBinaryOperatorExpression(
CodeExpression
left, CodeBinaryOperatorType op,
CodeExpression
right) {
59
public
CodeExpression
Right {
74
public
CodeExpression
Left {
compmod\system\codedom\CodeCastExpression.cs (5)
30
private
CodeExpression
expression;
46
public CodeCastExpression(CodeTypeReference targetType,
CodeExpression
expression) {
54
public CodeCastExpression(string targetType,
CodeExpression
expression) {
62
public CodeCastExpression(Type targetType,
CodeExpression
expression) {
89
public
CodeExpression
Expression {
compmod\system\codedom\CodeConditionStatement.cs (4)
28
private
CodeExpression
condition;
45
public CodeConditionStatement(
CodeExpression
condition, params CodeStatement[] trueStatements) {
56
public CodeConditionStatement(
CodeExpression
condition, CodeStatement[] trueStatements, CodeStatement[] falseStatements) {
68
public
CodeExpression
Condition {
compmod\system\codedom\CodeDelegateCreateExpression.cs (3)
29
private
CodeExpression
targetObject;
45
public CodeDelegateCreateExpression(CodeTypeReference delegateType,
CodeExpression
targetObject, string methodName) {
73
public
CodeExpression
TargetObject {
compmod\system\codedom\CodeDelegateInvokeExpression.cs (5)
29
private
CodeExpression
targetObject;
45
public CodeDelegateInvokeExpression(
CodeExpression
targetObject) {
55
public CodeDelegateInvokeExpression(
CodeExpression
targetObject, params
CodeExpression
[] parameters) {
66
public
CodeExpression
TargetObject {
compmod\system\codedom\CodeDirectionExpression.cs (3)
26
private
CodeExpression
expression;
39
public CodeDirectionExpression(FieldDirection direction,
CodeExpression
expression) {
47
public
CodeExpression
Expression {
compmod\system\codedom\CodeEventReferenceExpression.cs (3)
26
private
CodeExpression
targetObject;
38
public CodeEventReferenceExpression(
CodeExpression
targetObject, string eventName) {
46
public
CodeExpression
TargetObject {
compmod\system\codedom\CodeExpressionCollection.cs (18)
17
/// A collection that stores <see cref='System.CodeDom.
CodeExpression
'/> objects.
46
/// Initializes a new instance of <see cref='System.CodeDom.CodeExpressionCollection'/> containing any array of <see cref='System.CodeDom.
CodeExpression
'/> objects.
49
public CodeExpressionCollection(
CodeExpression
[] value) {
54
/// <para>Represents the entry at the specified index of the <see cref='System.CodeDom.
CodeExpression
'/>.</para>
56
public
CodeExpression
this[int index] {
58
return ((
CodeExpression
)(List[index]));
66
/// <para>Adds a <see cref='System.CodeDom.
CodeExpression
'/> with the specified value to the
69
public int Add(
CodeExpression
value) {
76
public void AddRange(
CodeExpression
[] value) {
102
/// <see cref='System.CodeDom.CodeExpressionCollection'/> contains the specified <see cref='System.CodeDom.
CodeExpression
'/>.</para>
104
public bool Contains(
CodeExpression
value) {
112
public void CopyTo(
CodeExpression
[] array, int index) {
117
/// <para>Returns the index of a <see cref='System.CodeDom.
CodeExpression
'/> in
120
public int IndexOf(
CodeExpression
value) {
125
/// <para>Inserts a <see cref='System.CodeDom.
CodeExpression
'/> into the <see cref='System.CodeDom.CodeExpressionCollection'/> at the specified index.</para>
127
public void Insert(int index,
CodeExpression
value) {
132
/// <para> Removes a specific <see cref='System.CodeDom.
CodeExpression
'/> from the
135
public void Remove(
CodeExpression
value) {
compmod\system\codedom\CodeExpressionStatement.cs (3)
29
private
CodeExpression
expression;
40
public CodeExpressionStatement(
CodeExpression
expression) {
47
public
CodeExpression
Expression {
compmod\system\codedom\CodeFieldReferenceExpression.cs (3)
28
private
CodeExpression
targetObject;
44
public CodeFieldReferenceExpression(
CodeExpression
targetObject, string fieldName) {
55
public
CodeExpression
TargetObject {
compmod\system\codedom\CodeIndexerExpression.cs (4)
28
private
CodeExpression
targetObject;
45
public CodeIndexerExpression(
CodeExpression
targetObject, params
CodeExpression
[] indices) {
57
public
CodeExpression
TargetObject {
compmod\system\codedom\CodeIterationStatement.cs (3)
29
private
CodeExpression
testExpression;
46
public CodeIterationStatement(CodeStatement initStatement,
CodeExpression
testExpression, CodeStatement incrementStatement, params CodeStatement[] statements) {
74
public
CodeExpression
TestExpression {
compmod\system\codedom\CodeMemberField.cs (2)
29
private
CodeExpression
initExpression;
88
public
CodeExpression
InitExpression {
compmod\system\codedom\CodeMethodInvokeExpression.cs (3)
46
public CodeMethodInvokeExpression(CodeMethodReferenceExpression method, params
CodeExpression
[] parameters) {
54
public CodeMethodInvokeExpression(
CodeExpression
targetObject, string methodName, params
CodeExpression
[] parameters) {
compmod\system\codedom\codemethodreferenceexpression.cs (4)
30
private
CodeExpression
targetObject;
49
public CodeMethodReferenceExpression(
CodeExpression
targetObject, string methodName) {
54
public CodeMethodReferenceExpression(
CodeExpression
targetObject, string methodName, params CodeTypeReference[] typeParameters) {
67
public
CodeExpression
TargetObject {
compmod\system\codedom\CodeMethodReturnStatement.cs (3)
28
private
CodeExpression
expression;
43
public CodeMethodReturnStatement(
CodeExpression
expression) {
52
public
CodeExpression
Expression {
compmod\system\codedom\CodeObjectCreateExpression.cs (3)
45
public CodeObjectCreateExpression(CodeTypeReference createType, params
CodeExpression
[] parameters) {
53
public CodeObjectCreateExpression(string createType, params
CodeExpression
[] parameters) {
61
public CodeObjectCreateExpression(Type createType, params
CodeExpression
[] parameters) {
compmod\system\codedom\CodePropertyReferenceExpression.cs (3)
28
private
CodeExpression
targetObject;
46
public CodePropertyReferenceExpression(
CodeExpression
targetObject, string propertyName) {
56
public
CodeExpression
TargetObject {
compmod\system\codedom\CodeRemoveEventStatement.cs (5)
29
private
CodeExpression
listener;
44
public CodeRemoveEventStatement(CodeEventReferenceExpression eventRef,
CodeExpression
listener) {
52
public CodeRemoveEventStatement(
CodeExpression
targetObject, string eventName,
CodeExpression
listener) {
77
public
CodeExpression
Listener {
compmod\system\codedom\CodeStatementCollection.cs (1)
76
public int Add(
CodeExpression
value) {
compmod\system\codedom\CodeThrowExceptionStatement.cs (3)
29
private
CodeExpression
toThrow;
44
public CodeThrowExceptionStatement(
CodeExpression
toThrow) {
54
public
CodeExpression
ToThrow {
compmod\system\codedom\CodeVariableDeclarationStatement.cs (5)
30
private
CodeExpression
initExpression;
72
public CodeVariableDeclarationStatement(CodeTypeReference type, string name,
CodeExpression
initExpression) {
81
public CodeVariableDeclarationStatement(string type, string name,
CodeExpression
initExpression) {
90
public CodeVariableDeclarationStatement(Type type, string name,
CodeExpression
initExpression) {
101
public
CodeExpression
InitExpression {
compmod\system\codedom\compiler\CodeDOMProvider.cs (1)
214
public virtual void GenerateCodeFromExpression(
CodeExpression
expression, TextWriter writer, CodeGeneratorOptions options) {
compmod\system\codedom\compiler\CodeGenerator.cs (3)
410
void ICodeGenerator.GenerateCodeFromExpression(
CodeExpression
e, TextWriter w, CodeGeneratorOptions o) {
601
protected void GenerateExpression(
CodeExpression
e) {
1227
((ICodeGenerator)this).GenerateCodeFromExpression((
CodeExpression
)en.Current, output.InnerWriter, options);
compmod\system\codedom\compiler\CodeValidator.cs (6)
32
else if (e is
CodeExpression
) {
33
ValidateExpression((
CodeExpression
)e);
530
ValidateExpression((
CodeExpression
)en.Current);
584
private void ValidateExpression(
CodeExpression
e) {
723
foreach(
CodeExpression
exp in e.Indices) {
730
foreach(
CodeExpression
exp in e.Indices) {
compmod\system\codedom\compiler\ICodeGenerator.cs (1)
65
void GenerateCodeFromExpression(
CodeExpression
e, TextWriter w, CodeGeneratorOptions o);
System.Activities (9)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (9)
905
new CodeObjectCreateExpression(new CodeTypeReference(descriptor.TypeName), new
CodeExpression
[] { new CodeVariableReferenceExpression("locationReferences") }),
1151
CodeExpression
getExpression = null;
1152
CodeExpression
setExpression = null;
1176
CodeExpression
[] getLocationParameters = null;
1179
getLocationParameters = new
CodeExpression
[] {
1190
getLocationParameters = new
CodeExpression
[] {
1367
new
CodeExpression
[] { new CodeVariableReferenceExpression("locations"),
1513
new
CodeExpression
[] { new CodeVariableReferenceExpression("expression") });
1682
CodeExpression
getValue = new CodeCastExpression(
System.Data (109)
fx\src\data\System\Data\CodeGen\datacache.cs (109)
303
New(rowClassName + "ChangeEvent", new
CodeExpression
[] { Cast(rowClassName, Property(Argument("e"), "Row")), Property(Argument("e"), "Action")})
349
constructor.BaseConstructorArgs.AddRange(new
CodeExpression
[] {Argument("info"), Argument("context")});
458
CodeExpression
varRow = Variable("row" + stRowClassName);
548
clone.Statements.Add(VariableDecl(stTblClassName, "cln", Cast(stTblClassName, MethodCall(Base(), "Clone", new
CodeExpression
[] {}))));
549
clone.Statements.Add(MethodCall(Variable("cln"), "InitVars", new
CodeExpression
[] {}));
558
createInstance.Statements.Add(Return(New(stTblClassName, new
CodeExpression
[] {})));
572
CodeExpression
codeField = Field(This(), ColumnName);
577
new
CodeExpression
[] {
601
CodeExpression
[] createArgs = new
CodeExpression
[columns.Length]; {
608
new
CodeExpression
[] {
621
CodeExpression
codeField = Field(This(), ColumnName);
679
tableInitClass.Statements.Add(Assign(Property(This(), "Locale"), New(typeof(System.Globalization.CultureInfo),new
CodeExpression
[] {Str(table.Locale.ToString())})));
716
newRowFromBuilder.Statements.Add(Return(New(stRowConcreateClassName, new
CodeExpression
[] {Argument("builder")})));
818
CodeExpression
nullValueFieldInit = null; // in some cases we generate it
819
CodeExpression
nullValueExpr;
840
nullValueFieldInit = New(col.DataType, new
CodeExpression
[] {});
874
nullValueFieldInit = New(col.DataType, new
CodeExpression
[] {Primitive(nullValue)});
945
anotherProp.SetStatements.Add(MethodCall(This(), "SetParentRow", new
CodeExpression
[] {Value(), Indexer(Property(Property(This(), "Table"), "ParentRelations"), Str(relation.RelationName))}));
1046
constructor.BaseConstructorArgs.AddRange(new
CodeExpression
[] {Argument("info"), Argument("context")});
1050
If(EQ(MethodCall(This(), "IsBinarySerialized", new
CodeExpression
[] {Argument("info"), Argument("context")}), Primitive(true)) ,
1062
Cast("System.String", MethodCall(Argument("info"), "GetValue", new
CodeExpression
[] {Str("XmlSchema"),TypeOf("System.String")})))
1066
schemaBody.Add(VariableDecl(typeof(DataSet),"ds",New(typeof(DataSet),new
CodeExpression
[] {})));
1067
schemaBody.Add(Stm(MethodCall(Variable("ds"),"ReadXmlSchema",new
CodeExpression
[] {New(typeof(System.Xml.XmlTextReader),new
CodeExpression
[] {New("System.IO.StringReader",new
CodeExpression
[] {Variable("strSchema")})})})));
1072
Stm(MethodCall(Property(This(), "Tables"), "Add", New(TableClassName(dataSet.Tables[i]), new
CodeExpression
[] {Indexer(Property(Variable("ds"),"Tables"),Str(dataSet.Tables[i].TableName))})))
1082
schemaBody.Add(Stm(MethodCall(This(),"Merge",new
CodeExpression
[] {Variable("ds"),Primitive(false),Field(TypeExpr(typeof(MissingSchemaAction)),"Add")})));
1097
constructor.Statements.Add(MethodCall(This(), "GetSerializationData", new
CodeExpression
[] { Argument("info"), Argument("context") }));
1111
clone.Statements.Add(VariableDecl(stDataSetClassName, "cln", Cast(stDataSetClassName, MethodCall(Base(), "Clone", new
CodeExpression
[] {}))));
1112
clone.Statements.Add(MethodCall(Variable("cln"), "InitVars", new
CodeExpression
[] {}));
1119
initDataSetVarsMethod.Statements.Add(MethodCall(This(), "InitVars", new
CodeExpression
[] {Primitive(true)}));
1137
initClassMethod.Statements.Add(Assign(Property(This(), "Locale"), New(typeof(System.Globalization.CultureInfo),new
CodeExpression
[] {Str(dataSet.Locale.ToString())})));
1144
CodeExpression
fieldTable = Field(This(), TableFieldName(dataSet.Tables[i]));
1146
initClassMethod.Statements.Add(Assign(fieldTable, New(TableClassName(dataSet.Tables[i]), new
CodeExpression
[] {})));
1206
getTypedDataSetSchema.Statements.Add(VariableDecl(stDataSetClassName,"ds",New(stDataSetClassName,new
CodeExpression
[] {})));
1207
getTypedDataSetSchema.Statements.Add(MethodCall(Argument("xs"), "Add", new
CodeExpression
[] { MethodCall(Variable("ds"), "GetSchemaSerializable", new
CodeExpression
[] {})}));
1208
getTypedDataSetSchema.Statements.Add(VariableDecl(typeof(XmlSchemaComplexType),"type",New(typeof(XmlSchemaComplexType),new
CodeExpression
[] {})));
1209
getTypedDataSetSchema.Statements.Add(VariableDecl(typeof(XmlSchemaSequence),"sequence",New(typeof(XmlSchemaSequence),new
CodeExpression
[] {})));
1210
getTypedDataSetSchema.Statements.Add(VariableDecl(typeof(XmlSchemaAny),"any",New(typeof(XmlSchemaAny),new
CodeExpression
[] {})));
1212
getTypedDataSetSchema.Statements.Add(MethodCall(Property(Variable("sequence"),"Items"), "Add", new
CodeExpression
[] { Variable("any") }));
1223
readXmlSerializable.Statements.Add(MethodCall(This(), "Reset", new
CodeExpression
[] {}));
1224
readXmlSerializable.Statements.Add(VariableDecl(typeof(DataSet),"ds",New(typeof(DataSet),new
CodeExpression
[] {})));
1225
readXmlSerializable.Statements.Add(MethodCall(Variable("ds"), "ReadXml", new
CodeExpression
[] { Argument("reader") }));
1231
Stm(MethodCall(Property(This(), "Tables"), "Add", New(TableClassName(dataSet.Tables[i]), new
CodeExpression
[] {Indexer(Property(Variable("ds"),"Tables"),Str(dataSet.Tables[i].TableName))})))
1241
readXmlSerializable.Statements.Add(MethodCall(This(),"Merge",new
CodeExpression
[] {Variable("ds"),Primitive(false),Field(TypeExpr(typeof(MissingSchemaAction)),"Add")}));
1254
getSchemaSerializable.Statements.Add(VariableDecl(typeof(System.IO.MemoryStream), "stream", New(typeof(System.IO.MemoryStream),new
CodeExpression
[] {})));
1255
getSchemaSerializable.Statements.Add(MethodCall(This(), "WriteXmlSchema", New(typeof(System.Xml.XmlTextWriter),new
CodeExpression
[] {Argument("stream"),Primitive(null)})));
1257
getSchemaSerializable.Statements.Add(Return(MethodCall(TypeExpr("System.Xml.Schema.XmlSchema"),"Read",new
CodeExpression
[] {New(typeof(System.Xml.XmlTextReader),new
CodeExpression
[] {Argument("stream")}), Primitive(null)})));
1262
CodeExpression
varFkc = null;
1298
New(typeof(ForeignKeyConstraint), new
CodeExpression
[]{Str(fkc.ConstraintName), parentColumns, childrenColumns})
1339
New(typeof(DataRelation), new
CodeExpression
[] {Str(relation.RelationName), parentColCreate, childColCreate,Primitive(false)})
1395
CodeExpression
codeField = Property(Field(This(), TableFieldName(table)), TableColumnPropertyName(column));
1415
private static
CodeExpression
This() { return new CodeThisReferenceExpression();}
1417
private static
CodeExpression
Base() { return new CodeBaseReferenceExpression();}
1419
private static
CodeExpression
Value() { return new CodePropertySetValueReferenceExpression();}
1429
private static
CodeExpression
Cast(string type ,
CodeExpression
expr) { return new CodeCastExpression(type, expr); }
1430
private static
CodeExpression
Cast(CodeTypeReference type,
CodeExpression
expr) { return new CodeCastExpression(type, expr); }
1432
private static
CodeExpression
TypeOf(string type) { return new CodeTypeOfExpression(type); }
1434
private static
CodeExpression
Field(
CodeExpression
exp, string field) { return new CodeFieldReferenceExpression(exp, field);}
1436
private static
CodeExpression
Property(
CodeExpression
exp, string property) { return new CodePropertyReferenceExpression(exp, property);}
1438
private static
CodeExpression
Argument(string argument) { return new CodeArgumentReferenceExpression(argument);}
1440
private static
CodeExpression
Variable(string variable) { return new CodeVariableReferenceExpression(variable);}
1442
private static
CodeExpression
Event(string eventName) { return new CodeEventReferenceExpression(This(), eventName);}
1444
private static
CodeExpression
New(string type,
CodeExpression
[] parameters) { return new CodeObjectCreateExpression(type, parameters);}
1447
private static
CodeExpression
New(Type type,
CodeExpression
[] parameters) { return new CodeObjectCreateExpression(type, parameters);}
1450
private static
CodeExpression
Primitive(object primitive) { return new CodePrimitiveExpression(primitive);}
1452
private static
CodeExpression
Str(string str) { return Primitive(str);}
1454
private static
CodeExpression
MethodCall(
CodeExpression
targetObject, String methodName,
CodeExpression
[] parameters) {
1458
private static
CodeExpression
MethodCall(
CodeExpression
targetObject, String methodName) {
1462
private static
CodeExpression
MethodCall(
CodeExpression
targetObject, String methodName,
CodeExpression
par) {
1463
return new CodeMethodInvokeExpression(targetObject, methodName, new
CodeExpression
[] {par});
1466
private static
CodeExpression
DelegateCall(
CodeExpression
targetObject,
CodeExpression
par) {
1467
return new CodeDelegateInvokeExpression(targetObject, new
CodeExpression
[] {This(), par});
1470
private static
CodeExpression
Indexer(
CodeExpression
targetObject,
CodeExpression
indices) {return new CodeIndexerExpression(targetObject, indices);}
1473
private static CodeBinaryOperatorExpression BinOperator(
CodeExpression
left, CodeBinaryOperatorType op,
CodeExpression
right) {
1477
private static CodeBinaryOperatorExpression IdNotEQ(
CodeExpression
left,
CodeExpression
right) {return BinOperator(left, CodeBinaryOperatorType.IdentityInequality, right);}
1479
private static CodeBinaryOperatorExpression EQ(
CodeExpression
left,
CodeExpression
right) {return BinOperator(left, CodeBinaryOperatorType.ValueEquality, right);}
1483
private static CodeStatement Stm(
CodeExpression
expr) { return new CodeExpressionStatement(expr);}
1485
private static CodeStatement Return(
CodeExpression
expr) { return new CodeMethodReturnStatement(expr);}
1489
private static CodeStatement Assign(
CodeExpression
left,
CodeExpression
right) { return new CodeAssignStatement(left, right);}
1493
return new CodeThrowExceptionStatement(New(exception, new
CodeExpression
[] {Str(Res.GetString(arg)), Variable(inner)}));
1496
private static CodeStatement If(
CodeExpression
cond, CodeStatement[] trueStms, CodeStatement[] falseStms) {
1499
private static CodeStatement If(
CodeExpression
cond, CodeStatement[] trueStms ) {return new CodeConditionStatement(cond, trueStms);}
1500
private static CodeStatement If(
CodeExpression
cond, CodeStatement trueStm ) {return If( cond, new CodeStatement[] {trueStm });}
1532
private static CodeStatement VariableDecl(String type, String name,
CodeExpression
initExpr) { return new CodeVariableDeclarationStatement(type, name, initExpr); }
1533
private static CodeStatement VariableDecl(Type type, String name,
CodeExpression
initExpr) { return new CodeVariableDeclarationStatement(type, name, initExpr); }
1547
private static CodeAttributeDeclaration AttributeDecl(string name,
CodeExpression
value) {
System.Data.Entity.Design (42)
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (1)
548
CodeExpression
viewTextExpression;
System\Data\EntityModel\Emitters\AssociationTypeEmitter.cs (2)
60
private
CodeExpression
GetMultiplicityCodeExpression(RelationshipMultiplicity multiplicity)
65
CodeExpression
roleMultiplicityExpression = Emitter.EmitEnumMemberExpression(
System\Data\EntityModel\Emitters\AttributeEmitter.cs (4)
346
CodeExpression
expression = argument as
CodeExpression
;
362
CodeExpression
expression = arguments[i] as
CodeExpression
;
System\Data\EntityModel\Emitters\Emitter.cs (7)
30
private static
CodeExpression
_nullExpression = null;
31
private static
CodeExpression
_thisRef = null;
54
protected static CodeBinaryOperatorExpression EmitExpressionEqualsNull(
CodeExpression
expression)
59
protected static CodeBinaryOperatorExpression EmitExpressionDoesNotEqualNull(
CodeExpression
expression)
64
internal static
CodeExpression
EmitEnumMemberExpression(CodeTypeReference type, string member)
75
protected static
CodeExpression
ThisRef
113
protected static
CodeExpression
NullExpression
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (8)
520
List<
CodeExpression
> executeArguments = new List<
CodeExpression
>();
532
CodeExpression
variableReference = CreateFunctionParameter(method, uniqueIdentifierService, parameter);
564
private
CodeExpression
CreateFunctionParameter(CodeMemberMethod method, UniqueIdentifierService uniqueIdentifierService, FunctionParameter parameter)
589
CodeExpression
variableReference = new CodeVariableReferenceExpression(variableName);
590
CodeExpression
parameterReference = new CodeVariableReferenceExpression(adjustedParameterName);
599
CodeExpression
notNullCondition;
666
return (new CodeMethodInvokeExpression(new CodeThisReferenceExpression(), _onContextCreatedString, new
CodeExpression
[] { }));
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (6)
133
CodeExpression
getReturnExpression;
164
CodeExpression
valueRef = new CodePropertySetValueReferenceExpression();
200
initReferenceMethod, new
CodeExpression
[] {
228
CodeExpression
valueRef = new CodePropertySetValueReferenceExpression();
247
initCollectionMethod, new
CodeExpression
[] {
361
getMethod, new
CodeExpression
[] { new CodePrimitiveExpression(cspaceNamespaceNameQualifiedRelationshipName), new CodePrimitiveExpression(target.Name)});
System\Data\EntityModel\Emitters\PropertyEmitter.cs (11)
469
List<
CodeExpression
> parameters = new List<
CodeExpression
>();
503
private
CodeExpression
GetEnumValue<T>(T value)
691
private
CodeExpression
GetDefaultValueExpression(EdmProperty property)
746
private
CodeExpression
GetCodeExpressionFromBinary(object value)
749
CodeExpression
[] bytes = new
CodeExpression
[data.Length];
759
private
CodeExpression
GetCodeExpressionFromGuid(object value)
766
private
CodeExpression
GetCodeExpressionFromDateTimeDefaultValue(object value, EdmProperty property)
774
private
CodeExpression
GetCodeExpressionFromDateTimeOffsetDefaultValue(object value, EdmProperty property)
782
private
CodeExpression
GetCodeExpressionFromTimeSpanDefaultValue(object value, EdmProperty property)
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (3)
209
CodeExpression
newPropertyValue;
212
List<
CodeExpression
> complexVerifyParameters = new List<
CodeExpression
>();
System.Data.Services.Design (31)
System\Data\EntityModel\Emitters\AttributeEmitter.cs (2)
156
CodeExpression
expression = argument as
CodeExpression
;
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (2)
799
new
CodeExpression
[] {
831
new
CodeExpression
[] { new CodePrimitiveExpression(name) }
System\Data\EntityModel\Emitters\Emitter.cs (6)
24
private static
CodeExpression
_nullExpression;
25
private static
CodeExpression
_thisRef;
48
protected static CodeBinaryOperatorExpression EmitExpressionEqualsNull(
CodeExpression
expression)
53
protected static CodeBinaryOperatorExpression EmitExpressionDoesNotEqualNull(
CodeExpression
expression)
64
protected static
CodeExpression
ThisRef
102
protected static
CodeExpression
NullExpression
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (5)
250
CodeExpression
comparisonExpression = new CodePropertyReferenceExpression(
363
CodeExpression
clientTypeFullName = new CodePropertyReferenceExpression(
413
CodeExpression
namespaceAccess = new CodePropertyReferenceExpression(
432
private
CodeExpression
LanguageSpecificNamespace(string ns)
629
return (new CodeMethodInvokeExpression(new CodeThisReferenceExpression(), _onContextCreatedString, new
CodeExpression
[] { }));
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (6)
135
CodeExpression
getMethod = EmitGetMethod(target);
136
CodeExpression
getReturnExpression;
160
CodeExpression
valueRef = new CodePropertySetValueReferenceExpression();
168
CodeExpression
valueProperty = getMethod;
216
CodeExpression
valueRef = new CodePropertySetValueReferenceExpression();
337
private
CodeExpression
EmitGetMethod(RelationshipEndMember target)
System\Data\EntityModel\Emitters\PropertyEmitter.cs (7)
463
private
CodeExpression
GetEnumValue<T>(T value)
618
private
CodeExpression
GetDefaultValueExpression(EdmProperty property)
673
private
CodeExpression
GetCodeExpressionFromBinary(object value)
676
CodeExpression
[] bytes = new
CodeExpression
[data.Length];
690
private
CodeExpression
GetCodeExpressionFromGuid(object value)
700
private
CodeExpression
GetCodeExpressionFromDateTimeDefaultValue(object value, EdmProperty property)
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (3)
201
CodeExpression
newPropertyValue;
204
List<
CodeExpression
> complexVerifyParameters = new List<
CodeExpression
>();
System.Management (21)
WmiGenerator.cs (21)
1007
private void GeneratePublicProperty(string propName,string propType,
CodeExpression
Value,bool isBrowsable,string Comment,bool isStatic)
1190
new
CodeExpression
[] {new CodePrimitiveExpression(prop.Name)});
1288
new
CodeExpression
[] {new CodePrimitiveExpression(prop.Name)});
1398
CodeExpression
[] cInit = {cmie };
3753
void GeneratePrivateMember(string memberName,string MemberType,
CodeExpression
initExpression,bool isStatic,string Comment)
5515
CodeExpression
[] parms = new
CodeExpression
[]
5587
CodeExpression
[] parms = new
CodeExpression
[]
5623
CodeExpression
cs = new CodeCastExpression(new CodeTypeReference("System.Array"),
5657
CodeExpression
[] parms1 = new
CodeExpression
[]
5735
CodeExpression
ce = null;
5982
CodeExpression
CreateObjectForProperty(string strType,
CodeExpression
param)
6037
CodeExpression
ConvertPropertyToString(string strType,
CodeExpression
beginingExpression)
6102
CodeExpression
Value = new CodePropertyReferenceExpression(
7823
static CodeMethodInvokeExpression GenerateConcatStrings(
CodeExpression
ce1,
CodeExpression
ce2)
7825
CodeExpression
[]cmieParams = {ce1,ce2 };
System.Runtime.Serialization (5)
System\Runtime\Serialization\CodeExporter.cs (5)
1847
new
CodeExpression
[] { getCurrentName, getCurrentValue });
1958
CodeExpression
left = new CodeFieldReferenceExpression(ThisReference, fieldName);
1959
CodeExpression
right = new CodePropertySetValueReferenceExpression();
1963
"ReferenceEquals", new
CodeExpression
[] { left, right });
1967
left = new CodeMethodInvokeExpression(left, "Equals", new
CodeExpression
[] { right });
System.ServiceModel (7)
System\ServiceModel\Channels\SecurityAttributeGenerationHelper.cs (1)
36
CodeExpression
newValue;
System\ServiceModel\Description\ClientClassGenerator.cs (4)
312
private static CodeMethodReturnStatement GenerateParameters(CodeMemberMethod helperMethod, CodeTypeDeclaration codeTypeDeclaration,
CodeExpression
target, FieldDirection dir)
597
CodeTypeReference propertyType, string propertyName,
CodeExpression
propertyValueExpr)
667
CodeExpression
inValuesRef = new CodeVariableReferenceExpression(inValuesParam.Name);
999
static
CodeExpression
GetChannelReference()
System\ServiceModel\Description\OperationGenerator.cs (1)
1029
static
CodeExpression
GetArgValue(object val)
System\ServiceModel\Description\ServiceContractGenerator.cs (1)
233
internal static
CodeExpression
GetEnumReference<EnumType>(EnumType value)
System.Web (78)
Compilation\AppSettingsExpressionBuilder.cs (1)
27
public override
CodeExpression
GetCodeExpression(BoundPropertyEntry entry,
Compilation\BaseCodeDomTreeGenerator.cs (3)
597
CodeExpression
propertyInitExpression,
602
CodeExpression
fieldAccess = new CodeFieldReferenceExpression(new CodeThisReferenceExpression(), fieldName);
697
CodeExpression
propertyInitExpression;
Compilation\BaseTemplateCodeDomTreeGenerator.cs (16)
61
private CodeStatement GetOutputWriteStatement(
CodeExpression
expr, bool encode) {
87
CodeExpression
expr,
123
CodeStatementCollection statements,
CodeExpression
ctrlToAdd, CodeLinePragma linePragma,
CodeExpression
ctrlRefExpr, ref bool gotParserVariable) {
147
internal virtual
CodeExpression
BuildPagePropertyReferenceExpression() {
252
CodeExpression
ctrlRefExpr;
363
CodeExpression
newExtractValuesDelegate;
480
CodeExpression
templateFieldRef = new CodeFieldReferenceExpression(
704
CodeExpression
expr;
751
CodeExpression
leftExpr, rightExpr = null;
922
CodeExpression
templateFieldRef = new CodeFieldReferenceExpression(new CodeThisReferenceExpression(), fieldName);
1093
CodeExpression
controlPropertyExpression = CodeDomUtility.BuildPropertyReferenceExpression(new CodeVariableReferenceExpression(entry.ControlID), entry.Name);
1302
CodeExpression
expr = new CodeSnippetExpression(codeBlock.Content.Trim());
1553
new
CodeExpression
[] {
1681
internal virtual
CodeExpression
BuildStringPropertyExpression(PropertyEntry pse) {
1695
protected virtual CodeAssignStatement BuildTemplatePropertyStatement(
CodeExpression
ctrlRefExpr) {
Compilation\CodeDOMUtility.cs (15)
31
internal /*public*/ static
CodeExpression
GenerateExpressionForValue(PropertyInfo propertyInfo, object value, Type valueType) {
38
CodeExpression
rightExpr = null;
122
CodeExpression
[] expressions = new
CodeExpression
[args.Length];
134
foreach (
CodeExpression
e in expressions) {
150
foreach (
CodeExpression
e in expressions) {
228
CodeExpression
target, string targetPropertyName, Type destinationType,
229
CodeExpression
value,
281
CodeExpression
rightSide;
302
internal static
CodeExpression
GenerateConvertToString(
CodeExpression
value) {
334
internal static
CodeExpression
BuildPropertyReferenceExpression(
335
CodeExpression
objRefExpr, string propName) {
340
CodeExpression
ret = objRefExpr;
347
internal static CodeCastExpression BuildJSharpCastExpression(Type castType,
CodeExpression
expression) {
Compilation\ConnectionStringsExpressionBuilder.cs (1)
50
public override
CodeExpression
GetCodeExpression(BoundPropertyEntry entry,
Compilation\DataBindingExpressionBuilder.cs (5)
64
private static void BuildPropertySetExpression(
CodeExpression
expression, string propertyName,
134
CodeExpression
controlReference, CodeStatementCollection methodStatements, CodeStatementCollection statements, CodeLinePragma linePragma, ref bool hasTempObject) {
140
CodeExpression
controlReference, CodeStatementCollection methodStatements, CodeStatementCollection statements, CodeLinePragma linePragma, bool isEncoded, ref bool hasTempObject) {
142
CodeExpression
expr = new CodeSnippetExpression(bpe.Expression);
147
public override
CodeExpression
GetCodeExpression(BoundPropertyEntry entry,
Compilation\ExpressionBuilder.cs (3)
28
CodeExpression
controlReference, CodeStatementCollection methodStatements, CodeStatementCollection statements, CodeLinePragma linePragma, ref bool hasTempObject) {
30
CodeExpression
codeExpression = GetCodeExpression(bpe,
110
public abstract
CodeExpression
GetCodeExpression(BoundPropertyEntry entry,
Compilation\ObjectFactoryCodeDomTreeGenerator.cs (1)
137
new
CodeExpression
[] { new CodePrimitiveExpression(SR.GetString(SR.Could_not_create_type_instance, typeToCreate)) }));
Compilation\PageCodeDomTreeGenerator.cs (4)
103
new
CodeExpression
[] {new CodePrimitiveExpression(i++)});
366
internal override
CodeExpression
BuildPagePropertyReferenceExpression() {
377
CodeExpression
rightExpr = new CodePrimitiveExpression(Parser.StyleSheetTheme);
378
CodeExpression
leftExpr = new CodePropertyReferenceExpression(new CodeThisReferenceExpression(), _styleSheetThemePropertyName);
Compilation\PageThemeCodeDomTreeGenerator.cs (6)
41
private void AddMemberOverride(string name, Type type,
CodeExpression
expr) {
86
new
CodeExpression
[] {
136
CodeExpression
[] cssFiles = new
CodeExpression
[_themeParser.CssFileList.Count];
270
internal override
CodeExpression
BuildStringPropertyExpression(PropertyEntry pse) {
300
protected override CodeAssignStatement BuildTemplatePropertyStatement(
CodeExpression
ctrlRefExpr) {
Compilation\ResourceExpressionBuilder.cs (3)
85
public override
CodeExpression
GetCodeExpression(BoundPropertyEntry entry,
118
private
CodeExpression
GetAppResCodeExpression(string classKey, string resourceKey, BoundPropertyEntry entry) {
137
private
CodeExpression
GetPageResCodeExpression(string resourceKey, BoundPropertyEntry entry) {
Compilation\RouteUrlExpressionBuilder.cs (1)
27
public override
CodeExpression
GetCodeExpression(BoundPropertyEntry entry,
Compilation\RouteValueExpressionBuilder.cs (1)
27
public override
CodeExpression
GetCodeExpression(BoundPropertyEntry entry,
Configuration\BrowserCapabilitiesCodeGenerator.cs (16)
905
CodeMethodInvokeExpression baseInvoke = new CodeMethodInvokeExpression(baseMethod, new
CodeExpression
[] { _dictionaryRefExpr });
915
cas.Left = new CodeIndexerExpression(_dictionaryRefExpr, new
CodeExpression
[] {
919
new
CodeExpression
[] {
935
cas.Left = new CodeIndexerExpression(_dictionaryRefExpr, new
CodeExpression
[] {
939
new
CodeExpression
[] {
968
CodeMethodInvokeExpression baseInvoke = new CodeMethodInvokeExpression(baseMethod, new
CodeExpression
[] { _dictionaryRefExpr });
973
cas.Left = new CodeIndexerExpression(_dictionaryRefExpr, new
CodeExpression
[] {
1189
new
CodeExpression
[] {
1201
new
CodeExpression
[] { new CodePrimitiveExpression(header) }
1268
new
CodeExpression
[] {
1343
new CodeIndexerExpression(new CodeVariableReferenceExpression(browserCapsVariable), new
CodeExpression
[] {
1355
new
CodeExpression
[] { new CodePrimitiveExpression(header) }
1382
new
CodeExpression
[] { new CodePrimitiveExpression(((CheckPair)bd.CaptureCapabilityChecks[i]).Header) }
1407
new
CodeExpression
[] { new CodePrimitiveExpression(s) } );
1415
new
CodeExpression
[] {capabilityExpr});
1434
new
CodeExpression
[] { new CodePrimitiveExpression(controlString) }
UI\SimplePropertyEntry.cs (2)
63
CodeExpression
ctrlRefExpr) {
77
CodeExpression
leftExpr, rightExpr = null;
System.Web.Services (52)
System\Web\Services\Description\HttpProtocolImporter.cs (16)
141
CodeExpression
[] formatterTypes = new
CodeExpression
[2];
155
WebCodeGenerator.AddCustomAttribute(metadata, typeof(HttpMethodAttribute), formatterTypes, new string[0], new
CodeExpression
[0]);
176
CodeExpression
[] invokeParams = new
CodeExpression
[3];
204
invokeParams = new
CodeExpression
[5];
219
CodeExpression
expr = new CodeArgumentReferenceExpression( "asyncResult");
220
invoke = new CodeMethodInvokeExpression(new CodeThisReferenceExpression(), "EndInvoke", new
CodeExpression
[] { expr });
255
invokeParams = new
CodeExpression
[5];
281
void CreateInvokeParams(
CodeExpression
[] invokeParams, HttpMethodInfo method, string[] parameterNames) {
284
CodeExpression
left = new CodePropertyReferenceExpression(new CodeThisReferenceExpression(), "Url");
285
CodeExpression
right = new CodePrimitiveExpression(method.Href);
288
CodeExpression
[] values = new
CodeExpression
[parameterNames.Length];
336
WebCodeGenerator.AddCustomAttribute(metadata, typeof(DebuggerStepThroughAttribute), new
CodeExpression
[0]);
337
WebCodeGenerator.AddCustomAttribute(metadata, typeof(DesignerCategoryAttribute), new
CodeExpression
[] { new CodePrimitiveExpression("code") });
System\Web\Services\Description\MimeTextImporter.cs (4)
68
CodeExpression
pattern = new CodePrimitiveExpression(match.Pattern);
78
CodeExpression
[] propertyValues = new
CodeExpression
[numPropValues];
101
WebCodeGenerator.AddCustomAttribute(metadata, typeof(MatchAttribute), new
CodeExpression
[] { pattern }, propertyNames, propertyValues);
System\Web\Services\Description\ProtocolImporter.cs (4)
646
CodeExpression
value;
672
value = new CodeIndexerExpression(propertyReference, new
CodeExpression
[] { new CodePrimitiveExpression(appSettingUrlKey) });
684
CodeExpression
[] parameters = new
CodeExpression
[] { urlSettingReference, new CodePrimitiveExpression(relativeUrl) };
System\Web\Services\Description\SoapProtocolImporter.cs (19)
496
void AddMetadataProperty(string name,
CodeExpression
expr) {
502
CodeExpression
[] parameters;
504
parameters = new
CodeExpression
[0];
507
parameters = new
CodeExpression
[1] { new CodePrimitiveExpression(parameter) };
511
(
CodeExpression
[])propertyValues.ToArray(typeof(
CodeExpression
)));
837
CodeExpression
[] invokeParams = new
CodeExpression
[2];
867
invokeParams = new
CodeExpression
[4];
898
CodeExpression
invokeParam = new CodeArgumentReferenceExpression("asyncResult");
899
invoke = new CodeMethodInvokeExpression(new CodeThisReferenceExpression(), "EndInvoke", new
CodeExpression
[] { invokeParam });
931
invokeParams = new
CodeExpression
[4];
966
void WriteReturnMappings(CodeMemberMethod codeMethod,
CodeExpression
invoke, SoapParameters parameters, string resultsName) {
976
CodeExpression
target = new CodeArgumentReferenceExpression(parameter.name);
977
CodeExpression
value = new CodeArrayIndexerExpression();
993
CodeExpression
value = new CodeArrayIndexerExpression();
1002
void CreateInvokeParams(
CodeExpression
[] invokeParams, string methodName, IList parameters, int checkSpecifiedCount) {
1005
CodeExpression
[] values = new
CodeExpression
[parameters.Count + checkSpecifiedCount];
System\Web\Services\Description\WebCodeGenerator.cs (9)
98
CodeExpression
left = new CodeFieldReferenceExpression(new CodeThisReferenceExpression(), field.Name);
99
CodeExpression
right = new CodeArgumentReferenceExpression("value");
104
internal static CodeTypeMember AddMember(CodeTypeDeclaration codeClass, string typeName, string memberName,
CodeExpression
initializer, CodeAttributeDeclarationCollection metadata, CodeFlags flags, CodeGenerationOptions options) {
239
internal static CodeAttributeDeclarationCollection AddCustomAttribute(CodeAttributeDeclarationCollection metadata, Type type,
CodeExpression
[] arguments) {
240
return AddCustomAttribute(metadata, type, arguments, new string[0], new
CodeExpression
[0]);
243
internal static CodeAttributeDeclarationCollection AddCustomAttribute(CodeAttributeDeclarationCollection metadata, Type type,
CodeExpression
[] parameters, string[] propNames,
CodeExpression
[] propValues) {
309
trueStatements[1] = new CodeExpressionStatement(new CodeDelegateInvokeExpression(new CodeEventReferenceExpression(new CodeThisReferenceExpression(), handlerName), new
CodeExpression
[] { new CodeThisReferenceExpression(), create }));
408
prop.GetStatements.Add(new CodeMethodInvokeExpression(new CodeThisReferenceExpression(), "RaiseExceptionIfNecessary", new
CodeExpression
[0]));
System.Workflow.Activities (361)
Rules\ArithmeticLiteral.cs (2)
300
CodeExpression
lhsExpression,
302
CodeExpression
rhsExpression,
Rules\CodeDomDecompiler.cs (7)
405
private delegate Operation ComputePrecedence(
CodeExpression
expresssion);
423
private static Operation GetPostfixPrecedence(
CodeExpression
expression)
428
private static Operation GetCastPrecedence(
CodeExpression
expression)
433
private static Operation GetBinaryPrecedence(
CodeExpression
expression)
490
private static Operation GetPrecedence(
CodeExpression
expression)
502
internal static bool MustParenthesize(
CodeExpression
childExpr,
CodeExpression
parentExpr)
Rules\DeclarativeExpressionConditionDeclaration.cs (4)
37
private
CodeExpression
_expression;
59
public
CodeExpression
Expression
93
public RuleExpressionCondition(string conditionName,
CodeExpression
expression)
99
public RuleExpressionCondition(
CodeExpression
expression)
Rules\Design\Dialogs\RuleConditionDialog.cs (4)
29
public RuleConditionDialog(Activity activity,
CodeExpression
expression)
69
public RuleConditionDialog(Type activityType, ITypeProvider typeProvider,
CodeExpression
expression)
82
private void InitializeDialog(
CodeExpression
expression)
110
public
CodeExpression
Expression
Rules\Design\LogicalExpressionEditor.cs (2)
60
CodeExpression
experssion = typeDescriptorContext.PropertyDescriptor.GetValue(typeDescriptorContext.Instance) as
CodeExpression
;
Rules\Design\LogicalExpressionTypeConverter.cs (5)
53
newProps.Add(new RuleConditionReferencePropertyDescriptor(context, TypeDescriptor.CreateProperty(typeof(RuleConditionReference), "Expression", typeof(
CodeExpression
), new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Content), DesignOnlyAttribute.Yes)));
87
CodeExpression
expression = value as
CodeExpression
;
379
CodeExpression
expression = value as
CodeExpression
;
Rules\Executor.cs (1)
676
internal static bool EvaluateBool(
CodeExpression
expression, RuleExecution context)
Rules\Expressions.cs (182)
24
void Decompile(StringBuilder stringBuilder,
CodeExpression
parentExpression);
25
bool Match(
CodeExpression
expression);
26
CodeExpression
Clone();
31
internal abstract RuleExpressionInfo Validate(
CodeExpression
expression, RuleValidation validation, bool isWritten);
32
internal abstract RuleExpressionResult Evaluate(
CodeExpression
expression, RuleExecution execution);
33
internal abstract void AnalyzeUsage(
CodeExpression
expression, RuleAnalysis analysis, bool isRead, bool isWritten, RulePathQualifier qualifier);
34
internal abstract void Decompile(
CodeExpression
expression, StringBuilder stringBuilder,
CodeExpression
parentExpression);
35
internal abstract bool Match(
CodeExpression
leftExpression,
CodeExpression
rightExpression);
36
internal abstract
CodeExpression
Clone(
CodeExpression
expression);
45
internal override RuleExpressionInfo Validate(
CodeExpression
expression, RuleValidation validation, bool isWritten)
59
internal override void AnalyzeUsage(
CodeExpression
expression, RuleAnalysis analysis, bool isRead, bool isWritten, RulePathQualifier qualifier)
85
internal override RuleExpressionResult Evaluate(
CodeExpression
expression, RuleExecution execution)
90
internal override void Decompile(
CodeExpression
expression, StringBuilder stringBuilder,
CodeExpression
parentExpression)
95
internal override
CodeExpression
Clone(
CodeExpression
expression)
100
internal override bool Match(
CodeExpression
expression,
CodeExpression
comperand)
114
internal override RuleExpressionInfo Validate(
CodeExpression
expression, RuleValidation validation, bool isWritten)
130
internal override void AnalyzeUsage(
CodeExpression
expression, RuleAnalysis analysis, bool isRead, bool isWritten, RulePathQualifier qualifier)
135
internal override RuleExpressionResult Evaluate(
CodeExpression
expression, RuleExecution execution)
141
internal override void Decompile(
CodeExpression
expression, StringBuilder stringBuilder,
CodeExpression
parentExpression)
147
internal override
CodeExpression
Clone(
CodeExpression
expression)
154
internal override bool Match(
CodeExpression
expression,
CodeExpression
comperand)
179
internal override RuleExpressionInfo Validate(
CodeExpression
expression, RuleValidation validation, bool isWritten)
393
private static bool PromotionPossible(Type type,
CodeExpression
expression)
418
internal override void AnalyzeUsage(
CodeExpression
expression, RuleAnalysis analysis, bool isRead, bool isWritten, RulePathQualifier qualifier)
430
List<
CodeExpression
> attributedExprs = new List<
CodeExpression
>();
434
CodeExpression
targetObject = new CodeTypeReferenceExpression(method.DeclaringType);
445
internal override RuleExpressionResult Evaluate(
CodeExpression
expression, RuleExecution execution)
651
internal override void Decompile(
CodeExpression
expression, StringBuilder stringBuilder,
CodeExpression
parentExpression)
736
CodeExpression
leftExpr = binaryExpr.Left;
737
CodeExpression
rightExpr = binaryExpr.Right;
868
internal override
CodeExpression
Clone(
CodeExpression
expression)
879
internal override bool Match(
CodeExpression
expression,
CodeExpression
comperand)
897
internal override RuleExpressionInfo Validate(
CodeExpression
expression, RuleValidation validation, bool isWritten)
981
internal override void AnalyzeUsage(
CodeExpression
expression, RuleAnalysis analysis, bool isRead, bool isWritten, RulePathQualifier qualifier)
984
CodeExpression
targetObject = fieldRefExpr.TargetObject;
988
internal override RuleExpressionResult Evaluate(
CodeExpression
expression, RuleExecution execution)
1007
internal override void Decompile(
CodeExpression
expression, StringBuilder stringBuilder,
CodeExpression
parentExpression)
1011
CodeExpression
targetObject = fieldRefExpr.TargetObject;
1025
internal override
CodeExpression
Clone(
CodeExpression
expression)
1035
internal override bool Match(
CodeExpression
expression,
CodeExpression
comperand)
1052
internal override RuleExpressionInfo Validate(
CodeExpression
expression, RuleValidation validation, bool isWritten)
1157
internal override void AnalyzeUsage(
CodeExpression
expression, RuleAnalysis analysis, bool isRead, bool isWritten, RulePathQualifier qualifier)
1164
CodeExpression
targetObject = propGetExpr.TargetObject;
1187
List<
CodeExpression
> attributedExprs = new List<
CodeExpression
>();
1199
internal override RuleExpressionResult Evaluate(
CodeExpression
expression, RuleExecution execution)
1218
internal override void Decompile(
CodeExpression
expression, StringBuilder stringBuilder,
CodeExpression
parentExpression)
1222
CodeExpression
targetObject = propGetExpr.TargetObject;
1236
internal override
CodeExpression
Clone(
CodeExpression
expression)
1246
internal override bool Match(
CodeExpression
expression,
CodeExpression
comperand)
1264
internal override RuleExpressionInfo Validate(
CodeExpression
expression, RuleValidation validation, bool isWritten)
1324
List<
CodeExpression
> argExprs = new List<
CodeExpression
>();
1331
CodeExpression
argExpr = invokeExpr.Parameters[i];
1447
internal override void AnalyzeUsage(
CodeExpression
expression, RuleAnalysis analysis, bool isRead, bool isWritten, RulePathQualifier qualifier)
1454
CodeExpression
targetObject = invokeExpr.Method.TargetObject;
1477
List<
CodeExpression
> attributedExprs = new List<
CodeExpression
>();
1494
CodeExpression
argExpr = invokeExpr.Parameters[i];
1505
internal override RuleExpressionResult Evaluate(
CodeExpression
expression, RuleExecution execution)
1632
internal override void Decompile(
CodeExpression
expression, StringBuilder stringBuilder,
CodeExpression
parentExpression)
1645
CodeExpression
targetObject = invokeExpr.Method.TargetObject;
1658
CodeExpression
paramExpr = invokeExpr.Parameters[i];
1677
internal override
CodeExpression
Clone(
CodeExpression
expression)
1683
foreach (
CodeExpression
argument in invokeExpr.Parameters)
1699
internal override bool Match(
CodeExpression
expression,
CodeExpression
comperand)
1726
internal override RuleExpressionInfo Validate(
CodeExpression
expression, RuleValidation validation, bool isWritten)
1798
internal override void AnalyzeUsage(
CodeExpression
expression, RuleAnalysis analysis, bool isRead, bool isWritten, RulePathQualifier qualifier)
1801
CodeExpression
paramExpr = directionExpr.Expression;
1836
internal override RuleExpressionResult Evaluate(
CodeExpression
expression, RuleExecution execution)
1844
internal override void Decompile(
CodeExpression
expression, StringBuilder stringBuilder,
CodeExpression
parentExpression)
1860
internal override
CodeExpression
Clone(
CodeExpression
expression)
1869
internal override bool Match(
CodeExpression
expression,
CodeExpression
comperand)
1885
internal override RuleExpressionInfo Validate(
CodeExpression
expression, RuleValidation validation, bool isWritten)
1911
internal override void AnalyzeUsage(
CodeExpression
expression, RuleAnalysis analysis, bool isRead, bool isWritten, RulePathQualifier qualifier)
1916
internal override RuleExpressionResult Evaluate(
CodeExpression
expression, RuleExecution execution)
1922
internal override void Decompile(
CodeExpression
expression, StringBuilder stringBuilder,
CodeExpression
parentExpression)
1928
internal override
CodeExpression
Clone(
CodeExpression
expression)
1952
internal override bool Match(
CodeExpression
expression,
CodeExpression
comperand)
1987
internal override RuleExpressionInfo Validate(
CodeExpression
expression, RuleValidation validation, bool isWritten)
2147
internal override void AnalyzeUsage(
CodeExpression
expression, RuleAnalysis analysis, bool isRead, bool isWritten, RulePathQualifier qualifier)
2154
internal override RuleExpressionResult Evaluate(
CodeExpression
expression, RuleExecution execution)
2196
internal override void Decompile(
CodeExpression
expression, StringBuilder stringBuilder,
CodeExpression
parentExpression)
2200
CodeExpression
targetObject = castExpr.Expression;
2228
internal override
CodeExpression
Clone(
CodeExpression
expression)
2237
internal override bool Match(
CodeExpression
expression,
CodeExpression
comperand)
2255
internal override RuleExpressionInfo Validate(
CodeExpression
expression, RuleValidation validation, bool isWritten)
2265
CodeExpression
targetObject = indexerExpr.TargetObject;
2314
List<
CodeExpression
> argExprs = new List<
CodeExpression
>();
2319
CodeExpression
argExpr = indexerExpr.Indices[i];
2426
internal override void AnalyzeUsage(
CodeExpression
expression, RuleAnalysis analysis, bool isRead, bool isWritten, RulePathQualifier qualifier)
2433
CodeExpression
targetObject = indexerExpr.TargetObject;
2456
List<
CodeExpression
> attributedExprs = new List<
CodeExpression
>();
2471
CodeExpression
argExpr = indexerExpr.Indices[i];
2482
internal override RuleExpressionResult Evaluate(
CodeExpression
expression, RuleExecution execution)
2558
internal override void Decompile(
CodeExpression
expression, StringBuilder stringBuilder,
CodeExpression
parentExpression)
2564
CodeExpression
targetObject = indexerExpr.TargetObject;
2592
internal override
CodeExpression
Clone(
CodeExpression
expression)
2596
CodeExpression
targetObject = RuleExpressionWalker.Clone(indexerExpr.TargetObject);
2598
CodeExpression
[] indices = new
CodeExpression
[indexerExpr.Indices.Count];
2606
internal override bool Match(
CodeExpression
expression,
CodeExpression
comperand)
2634
internal override RuleExpressionInfo Validate(
CodeExpression
expression, RuleValidation validation, bool isWritten)
2642
CodeExpression
targetObject = arrayIndexerExpr.TargetObject;
2713
CodeExpression
argExpr = arrayIndexerExpr.Indices[i];
2791
internal override void AnalyzeUsage(
CodeExpression
expression, RuleAnalysis analysis, bool isRead, bool isWritten, RulePathQualifier qualifier)
2807
internal override RuleExpressionResult Evaluate(
CodeExpression
expression, RuleExecution execution)
2837
internal override void Decompile(
CodeExpression
expression, StringBuilder stringBuilder,
CodeExpression
parentExpression)
2843
CodeExpression
targetObject = arrayIndexerExpr.TargetObject;
2871
internal override
CodeExpression
Clone(
CodeExpression
expression)
2875
CodeExpression
targetObject = RuleExpressionWalker.Clone(arrayIndexerExpr.TargetObject);
2877
CodeExpression
[] indices = new
CodeExpression
[arrayIndexerExpr.Indices.Count];
2885
internal override bool Match(
CodeExpression
expression,
CodeExpression
comperand)
2911
internal override RuleExpressionInfo Validate(
CodeExpression
expression, RuleValidation validation, bool isWritten)
2940
List<
CodeExpression
> parameters = new List<
CodeExpression
>();
2950
CodeExpression
parameter = createExpression.Parameters[i];
3008
internal override void AnalyzeUsage(
CodeExpression
expression, RuleAnalysis analysis, bool isRead, bool isWritten, RulePathQualifier qualifier)
3013
foreach (
CodeExpression
p in createExpression.Parameters)
3019
internal override RuleExpressionResult Evaluate(
CodeExpression
expression, RuleExecution execution)
3139
internal override void Decompile(
CodeExpression
expression, StringBuilder stringBuilder,
CodeExpression
parentExpression)
3154
CodeExpression
paramExpr = createExpression.Parameters[i];
3174
internal override
CodeExpression
Clone(
CodeExpression
expression)
3180
foreach (
CodeExpression
p in createExpression.Parameters)
3187
internal override bool Match(
CodeExpression
expression,
CodeExpression
comperand)
3212
internal override RuleExpressionInfo Validate(
CodeExpression
expression, RuleValidation validation, bool isWritten)
3288
CodeExpression
init = createExpression.Initializers[i];
3367
internal override void AnalyzeUsage(
CodeExpression
expression, RuleAnalysis analysis, bool isRead, bool isWritten, RulePathQualifier qualifier)
3373
foreach (
CodeExpression
p in createExpression.Initializers)
3377
internal override RuleExpressionResult Evaluate(
CodeExpression
expression, RuleExecution execution)
3424
CodeExpression
initializer = createExpression.Initializers[i];
3432
internal override void Decompile(
CodeExpression
expression, StringBuilder stringBuilder,
CodeExpression
parentExpression)
3453
CodeExpression
paramExpr = createExpression.Initializers[i];
3474
internal override
CodeExpression
Clone(
CodeExpression
expression)
3483
foreach (
CodeExpression
p in createExpression.Initializers)
3488
internal override bool Match(
CodeExpression
expression,
CodeExpression
comperand)
Rules\Literal.cs (4)
413
CodeExpression
lhsExpression,
415
CodeExpression
rhsExpression,
490
CodeExpression
lhsExpression,
492
CodeExpression
rhsExpression,
Rules\Parser\Parser.cs (81)
529
internal virtual CodeBinaryOperatorExpression CreateBinaryExpression(
CodeExpression
left,
CodeExpression
right, int operatorPosition, Parser parser, ParserContext parserContext, bool assignIsEquality)
545
internal override CodeBinaryOperatorExpression CreateBinaryExpression(
CodeExpression
left,
CodeExpression
right, int operatorPosition, Parser parser, ParserContext parserContext, bool assignIsEquality)
1026
CodeExpression
exprResult = ParseBinaryExpression(parserContext, 0, true, ValueCheck.Read); //ParseLogicalExpression();
1136
CodeExpression
pathExpr = ParsePostfixExpression(parserContext, true, ValueCheck.Read);
1182
List<
CodeExpression
> arguments = ParseArgumentList(parserContext);
1222
CodeExpression
postfixExpr = ParsePostfixExpression(parserContext, false, ValueCheck.Read);
1231
CodeExpression
rhsExpr = ParseBinaryExpression(parserContext, 0, true, ValueCheck.Read);
1266
private
CodeExpression
ParseBinaryExpression(ParserContext parserContext, int precedence, bool assignIsEquality, ValueCheck check)
1269
CodeExpression
leftResult = (precedence == precedences.Length - 1) ? ParseUnaryExpression(parserContext, assignIsEquality, check) : ParseBinaryExpression(parserContext, precedence + 1, assignIsEquality, check);
1285
CodeExpression
rightResult = (precedence == precedences.Length - 1) ? ParseUnaryExpression(parserContext, true, check) : ParseBinaryExpression(parserContext, precedence + 1, true, check);
1298
private
CodeExpression
ParseUnaryExpression(ParserContext parserContext, bool assignIsEquality, ValueCheck check)
1302
CodeExpression
unaryResult = null;
1386
private
CodeExpression
ParsePostfixExpression(ParserContext parserContext, bool assignIsEquality, ValueCheck check)
1388
CodeExpression
resultExpr = ParsePrimaryExpression(parserContext, assignIsEquality);
1390
CodeExpression
postfixExpr = TryParsePostfixOperator(parserContext, resultExpr, assignIsEquality, check);
1403
private
CodeExpression
TryParsePostfixOperator(ParserContext parserContext,
CodeExpression
primaryExpr, bool assignIsEquality, ValueCheck check)
1405
CodeExpression
postfixExpr = null;
1421
private
CodeExpression
ParseElementOperator(ParserContext parserContext,
CodeExpression
primaryExpr, bool assignIsEquality)
1428
List<
CodeExpression
> indexList = ParseIndexList(parserContext);
1429
CodeExpression
[] indices = indexList.ToArray();
1431
CodeExpression
resultExpr = null;
1457
private List<
CodeExpression
> ParseIndexList(ParserContext parserContext)
1459
List<
CodeExpression
> indexList = new List<
CodeExpression
>();
1461
CodeExpression
indexExpr = ParseBinaryExpression(parserContext, 0, true, ValueCheck.Read); //ParseLogicalExpression();
1492
private
CodeExpression
ParseMemberOperator(ParserContext parserContext,
CodeExpression
primaryExpr, bool assignIsEquality, ValueCheck check)
1513
CodeExpression
postfixExpr = null;
1527
private
CodeExpression
ParseMethodInvoke(ParserContext parserContext,
CodeExpression
postfixExpr, string methodName, bool assignIsEquality)
1543
List<
CodeExpression
> arguments = ParseArgumentList(parserContext);
1552
private List<
CodeExpression
> ParseArgumentList(ParserContext parserContext)
1554
List<
CodeExpression
> argList = new List<
CodeExpression
>();
1558
CodeExpression
argResult = ParseArgument(parserContext, true);
1577
private
CodeExpression
ParseFieldOrProperty(ParserContext parserContext,
CodeExpression
postfixExpr, string name, int namePosition, bool assignIsEquality, ValueCheck check)
1579
CodeExpression
fieldOrPropExpr = null;
1605
private
CodeExpression
ParseUnadornedFieldOrProperty(ParserContext parserContext, string name, int namePosition, bool assignIsEquality)
1645
CodeExpression
primaryExpr = null;
1652
CodeExpression
fieldOrPropExpr = null;
1664
private
CodeExpression
ParseUnadornedMethodInvoke(ParserContext parserContext, string methodName, bool assignIsEquality)
1680
List<
CodeExpression
> arguments = ParseArgumentList(parserContext);
1693
CodeExpression
primaryExpr = null;
1699
CodeExpression
postfixExpr = new CodeMethodInvokeExpression(primaryExpr, methodName, arguments.ToArray());
1713
private
CodeExpression
ParseArgument(ParserContext parserContext, bool assignIsEquality)
1715
CodeExpression
argResult = null;
1766
private
CodeExpression
ParsePrimaryExpression(ParserContext parserContext, bool assignIsEquality)
1768
CodeExpression
primaryExpr = null;
1846
private
CodeExpression
ParseObjectCreation(ParserContext parserContext, bool assignIsEquality)
1848
CodeExpression
primaryExpr = null;
1850
CodeExpression
size;
1879
List<
CodeExpression
> initializers = ParseArrayCreationArguments(parserContext);
1910
private
CodeExpression
ParseConstructorArguments(ParserContext parserContext, Type type, bool assignIsEquality)
1924
List<
CodeExpression
> arguments = ParseArgumentList(parserContext);
1952
CodeExpression
postfixExpr = new CodeObjectCreateExpression(type, arguments.ToArray());
1966
private List<
CodeExpression
> ParseArrayCreationArguments(ParserContext parserContext)
1972
List<
CodeExpression
> initializers = new List<
CodeExpression
>();
1996
private
CodeExpression
ParseInitializer(ParserContext parserContext, bool assignIsEquality)
2007
private
CodeExpression
ParseRootIdentifier(ParserContext parserContext, bool assignIsEquality)
2035
internal
CodeExpression
ParseUnadornedMemberIdentifier(ParserContext parserContext, MemberSymbol symbol, bool assignIsEquality)
2044
CodeExpression
primaryExpr = null;
2059
internal
CodeExpression
ParseRootNamespaceIdentifier(ParserContext parserContext, NamespaceSymbol nsSym, bool assignIsEquality)
2098
internal
CodeExpression
ParseRootTypeIdentifier(ParserContext parserContext, TypeSymbol typeSym, bool assignIsEquality)
2148
internal
CodeExpression
ParseRootOverloadedTypeIdentifier(ParserContext parserContext, List<TypeSymbol> candidateTypeSymbols, bool assignIsEquality)
2194
private
CodeExpression
ParseTypeRef(ParserContext parserContext, Type type, int typePosition, bool assignIsEquality)
2196
CodeExpression
result = null;
2206
List<
CodeExpression
> arguments = ParseArgumentList(parserContext);
2208
result = (
CodeExpression
)ConstructCustomType(type, arguments, lparenPosition);
2384
CodeExpression
identExpr = sym.ParseRootIdentifier(this, parserContext, assignIsEquality);
2395
private static
CodeExpression
defaultSize = new CodePrimitiveExpression(0);
2402
private Type TryParseTypeSpecifierWithOptionalSize(ParserContext parserContext, bool assignIsEquality, out
CodeExpression
size)
2531
private object MatchArgument(Type parameterType,
CodeExpression
arg)
2562
private List<CandidateConstructor> GetCandidateConstructors(ConstructorInfo[] allCtors, List<
CodeExpression
> arguments)
2738
private object ConstructCustomType(Type type, List<
CodeExpression
> arguments, int lparenPosition)
2786
private void ValidateExpression(ParserContext parserContext,
CodeExpression
expression, bool assignIsEquality, ValueCheck check)
Rules\Parser\Symbol.cs (5)
18
internal abstract
CodeExpression
ParseRootIdentifier(Parser parser, ParserContext parserContext, bool assignIsEquality);
37
internal override
CodeExpression
ParseRootIdentifier(Parser parser, ParserContext parserContext, bool assignIsEquality)
153
internal override
CodeExpression
ParseRootIdentifier(Parser parser, ParserContext parserContext, bool assignIsEquality)
224
internal override
CodeExpression
ParseRootIdentifier(Parser parser, ParserContext parserContext, bool assignIsEquality)
302
internal override
CodeExpression
ParseRootIdentifier(Parser parser, ParserContext parserContext, bool assignIsEquality)
Rules\References.cs (2)
76
internal void AnalyzeRuleAttributes(MemberInfo member,
CodeExpression
targetExpr, RulePathQualifier targetQualifier, CodeExpressionCollection argExprs, ParameterInfo[] parameters, List<
CodeExpression
> attributedExprs)
Rules\RuleAction.cs (1)
217
public RuleStatementAction(
CodeExpression
codeDomExpression)
Rules\RuleAttributes.cs (13)
26
internal abstract void Analyze(RuleAnalysis analysis, MemberInfo member,
CodeExpression
targetExpression, RulePathQualifier targetQualifier, CodeExpressionCollection argumentExpressions, ParameterInfo[] parameters, List<
CodeExpression
> attributedExpressions);
167
internal void AnalyzeReadWrite(RuleAnalysis analysis,
CodeExpression
targetExpression, RulePathQualifier targetQualifier, CodeExpressionCollection argumentExpressions, ParameterInfo[] parameters, List<
CodeExpression
> attributedExpressions)
238
CodeExpression
argExpr = argumentExpressions[i];
261
internal override void Analyze(RuleAnalysis analysis, MemberInfo member,
CodeExpression
targetExpression, RulePathQualifier targetQualifier, CodeExpressionCollection argumentExpressions, ParameterInfo[] parameters, List<
CodeExpression
> attributedExpressions)
284
internal override void Analyze(RuleAnalysis analysis, MemberInfo member,
CodeExpression
targetExpression, RulePathQualifier targetQualifier, CodeExpressionCollection argumentExpressions, ParameterInfo[] parameters, List<
CodeExpression
> attributedExpressions)
401
internal override void Analyze(RuleAnalysis analysis, MemberInfo member,
CodeExpression
targetExpression, RulePathQualifier targetQualifier, CodeExpressionCollection argumentExpressions, ParameterInfo[] parameters, List<
CodeExpression
> attributedExpressions)
411
private void AnalyzeInvokeAttribute(RuleAnalysis analysis, Type contextType, Stack<MemberInfo> methodStack,
CodeExpression
targetExpression, RulePathQualifier targetQualifier, CodeExpressionCollection argumentExpressions, ParameterInfo[] parameters, List<
CodeExpression
> attributedExpressions)
Rules\RuleValidation.cs (25)
919
private Stack<
CodeExpression
> activeParentNodes = new Stack<
CodeExpression
>();
920
private Dictionary<
CodeExpression
, RuleExpressionInfo> expressionInfoMap = new Dictionary<
CodeExpression
, RuleExpressionInfo>();
974
internal bool ValidateConditionExpression(
CodeExpression
expression)
1064
public bool PushParentExpression(
CodeExpression
newParent)
1088
public RuleExpressionInfo ExpressionInfo(
CodeExpression
expression)
1103
internal RuleExpressionInfo ValidateSubexpression(
CodeExpression
expr, RuleExpressionInternal ruleExpr, bool isWritten)
1120
internal static bool TypesAreAssignable(Type rhsType, Type lhsType,
CodeExpression
rhsExpression, out ValidationError error)
1891
internal static bool StandardImplicitConversion(Type rhsType, Type lhsType,
CodeExpression
rhsExpression, out ValidationError error)
2261
private static bool CheckValueRange(
CodeExpression
rhsExpression, Type lhsType, out ValidationError error)
2285
CodeExpression
targetExpression, Type targetType, FieldInfo accessorMethod, string memberName,
CodeExpression
parentExpr)
2293
CodeExpression
targetExpression, Type targetType, MethodInfo accessorMethod, string memberName,
CodeExpression
parentExpr)
2301
CodeExpression
targetExpression, Type targetType, string memberName,
CodeExpression
parentExpr,
2463
internal
CodeExpression
expression;
2467
internal Argument(
CodeExpression
expr, RuleValidation validation)
3149
internal RuleConstructorExpressionInfo ResolveConstructor(Type targetType, BindingFlags constructorBindingFlags, List<
CodeExpression
> argumentExprs, out ValidationError error)
3154
foreach (
CodeExpression
argumentExpr in argumentExprs)
3190
internal RuleMethodInvokeExpressionInfo ResolveMethod(Type targetType, string methodName, BindingFlags methodBindingFlags, List<
CodeExpression
> argumentExprs, out ValidationError error)
3195
foreach (
CodeExpression
argumentExpr in argumentExprs)
3538
internal RulePropertyExpressionInfo ResolveIndexerProperty(Type targetType, BindingFlags bindingFlags, List<
CodeExpression
> argumentExprs, out ValidationError error)
3553
foreach (
CodeExpression
argumentExpr in argumentExprs)
Rules\Walker.cs (20)
31
internal override void AnalyzeUsage(
CodeExpression
expression, RuleAnalysis analysis, bool isRead, bool isWritten, RulePathQualifier qualifier)
36
internal override
CodeExpression
Clone(
CodeExpression
expression)
41
internal override void Decompile(
CodeExpression
expression, StringBuilder decompilation,
CodeExpression
parentExpression)
46
internal override RuleExpressionResult Evaluate(
CodeExpression
expression, RuleExecution execution)
51
internal override bool Match(
CodeExpression
leftExpression,
CodeExpression
rightExpression)
56
internal override RuleExpressionInfo Validate(
CodeExpression
expression, RuleValidation validation, bool isWritten)
90
private static RuleExpressionInternal GetExpression(
CodeExpression
expression)
111
public static RuleExpressionInfo Validate(RuleValidation validation,
CodeExpression
expression, bool isWritten)
158
public static void AnalyzeUsage(RuleAnalysis analysis,
CodeExpression
expression, bool isRead, bool isWritten, RulePathQualifier qualifier)
167
public static RuleExpressionResult Evaluate(RuleExecution execution,
CodeExpression
expression)
177
public static void Decompile(StringBuilder stringBuilder,
CodeExpression
expression,
CodeExpression
parentExpression)
184
public static bool Match(
CodeExpression
firstExpression,
CodeExpression
secondExpression)
201
public static
CodeExpression
Clone(
CodeExpression
originalExpression)
207
CodeExpression
newExpr = ruleExpr.Clone(originalExpression);
WebServiceReceive.cs (3)
850
CodeExpression
leftExpression = new CodeArgumentReferenceExpression(pinfo.Name);
851
CodeExpression
rightExpression = new CodeCastExpression(new CodeTypeReference(pinfo.ParameterType.GetElementType().FullName), new CodeIndexerExpression(new CodeVariableReferenceExpression("results"), new CodePrimitiveExpression(i + iStartIndex)));
859
CodeExpression
returnTargetExpression;
System.Workflow.ComponentModel (15)
AuthoringOM\Serializer\DependencyObjectCodeDomSerializer.cs (8)
65
CodeExpression
objectExpression = SerializeToExpression(manager, obj);
103
CodeExpression
param1 = null;
111
CodeExpression
param2 = SerializeToExpression(manager, value);
119
codeMethodInvokeExpr = new CodeMethodInvokeExpression(objectExpression, "SetBinding", new
CodeExpression
[] { param1, new CodeCastExpression(new CodeTypeReference(typeof(ActivityBind)), param2) });
121
codeMethodInvokeExpr = new CodeMethodInvokeExpression(objectExpression, (dependencyProperty.IsEvent) ? "AddHandler" : "SetValue", new
CodeExpression
[] { param1, param2 });
207
CodeExpression
param1 = new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(ownerTypeName), propName + "Property");
208
CodeExpression
param2 = new CodeTypeOfExpression(typeName);
209
retVal.Add(new CodeMethodInvokeExpression(objectExpression, "SetValue", new
CodeExpression
[] { param1, param2 }));
AuthoringOM\Serializer\PrimitiveCodeDomSerializer.cs (1)
43
CodeExpression
expression = new CodePrimitiveExpression(value);
AuthoringOM\Serializer\SerializableTypeCodeDomSerializer.cs (3)
65
else if (result is
CodeExpression
)
70
statements.Add(new CodeAssignStatement(varExpression, result as
CodeExpression
));
107
varDecl.InitExpression = new CodeObjectCreateExpression(TypeDescriptor.GetClassName(value), new
CodeExpression
[0]);
AuthoringOM\Serializer\SynchronizationHandlesCodeDomSerializer.cs (3)
26
CodeExpression
retVal = null;
32
CodeExpression
objectExpression = SerializeToExpression(manager, activity);
41
statements.Add(new CodeMethodInvokeExpression(new CodeMethodReferenceExpression(new CodeVariableReferenceExpression(variableName), "Add"), new
CodeExpression
[] { new CodePrimitiveExpression(handle) }));
System.Xml (14)
System\Xml\Serialization\Advanced\SchemaImporterExtension.cs (1)
43
public virtual
CodeExpression
ImportDefaultValue(string value, string type) {
System\Xml\Serialization\CodeExporter.cs (2)
310
CodeExpression
left = new CodeFieldReferenceExpression(new CodeThisReferenceExpression(), field.Name);
311
CodeExpression
right = new CodePropertySetValueReferenceExpression();
System\Xml\Serialization\XmlCodeExporter.cs (11)
190
CodeAttributeArgument[] GetDefaultValueArguments(PrimitiveMapping mapping, object value, out
CodeExpression
initExpression) {
194
CodeExpression
valueExpression = null;
195
CodeExpression
typeofValue = null;
209
CodeExpression
enumRef = new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(mapping.TypeDesc.FullName), values[i]);
272
initExpression = new CodeObjectCreateExpression(new CodeTypeReference(typeof(DateTime)), new
CodeExpression
[] {new CodePrimitiveExpression(ticks)});
278
initExpression = new CodeObjectCreateExpression(new CodeTypeReference(typeof(Guid)), new
CodeExpression
[] {valueExpression});
393
CodeExpression
init = extension.ImportDefaultValue((string)defaultValue, mapping.TypeDesc.FullName);
437
CodeExpression
initExpression = null;
446
CodeExpression
[] initializers = new
CodeExpression
[vals.Length];
475
static void AddInitializationStatement(CodeConstructor ctor, CodeMemberField field,
CodeExpression
init) {
XamlBuildTask (22)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (16)
236
CodeExpression
GetCodeExpressionForAttributeArgument(AttributeData attrib, AttributeParameterData paramInfo, ClassData classData)
238
CodeExpression
codeExp;
241
CodeExpression
[] codeInitializationArray;
244
codeInitializationArray = new
CodeExpression
[paramInfo.ArrayContents.Count];
527
CodeStatementCollection GetInitializeMethodTryStatements(
CodeExpression
xmlReaderVar,
CodeExpression
xamlReaderVar,
CodeExpression
objWriterVar,
528
CodeExpression
initializeXamlVar, ClassData classData, List<CodeMemberField> memberFields)
537
CodeExpression
xmlReader = new CodeMethodInvokeExpression(
566
CodeExpression
newReader = typeof(XamlXmlReader).New(xmlReaderVar, SchemaContext, readerSettingsVar);
595
CodeExpression
newObjectWriter = typeof(XamlObjectWriter).New(SchemaContext, writerSettingsVar);
632
CodeStatementCollection GetInitializeMethodFinallyStatements(
CodeExpression
xmlReaderVar,
CodeExpression
xamlReaderVar,
CodeExpression
objWriterVar)
1220
CodeExpression
initAssemblyName = typeof(AssemblyName).New(assemblyNameVal);
1237
CodeExpression
publicKeyTokenNotNullExp = new CodeBinaryOperatorExpression(publicKeyToken,
Microsoft\Build\Tasks\Xaml\CodeDomExtensionMethods.cs (6)
13
string name,
CodeExpression
initExpression)
24
internal static CodeFieldReferenceExpression Field(this
CodeExpression
targetObject, string fieldName)
29
internal static CodeMethodInvokeExpression Invoke(this
CodeExpression
targetObject, string methodName,
30
params
CodeExpression
[] parameters)
35
internal static CodeObjectCreateExpression New(this Type type, params
CodeExpression
[] parameters)
40
internal static CodePropertyReferenceExpression Property(this
CodeExpression
targetObject, string propertyName)