14 types derived from CodeStatement
System (14)
compmod\system\codedom\CodeAssignStatement.cs (1)
27
public class CodeAssignStatement :
CodeStatement
{
compmod\system\codedom\CodeAttachEventStatement.cs (1)
27
public class CodeAttachEventStatement :
CodeStatement
{
compmod\system\codedom\CodeCommentStatement.cs (1)
25
public class CodeCommentStatement :
CodeStatement
{
compmod\system\codedom\CodeConditionStatement.cs (1)
27
public class CodeConditionStatement :
CodeStatement
{
compmod\system\codedom\CodeExpressionStatement.cs (1)
28
public class CodeExpressionStatement :
CodeStatement
{
compmod\system\codedom\CodeGotoStatement.cs (1)
25
public class CodeGotoStatement :
CodeStatement
{
compmod\system\codedom\CodeIterationStatement.cs (1)
27
public class CodeIterationStatement :
CodeStatement
{
compmod\system\codedom\CodeLabeledStatement.cs (1)
25
public class CodeLabeledStatement :
CodeStatement
{
compmod\system\codedom\CodeMethodReturnStatement.cs (1)
27
public class CodeMethodReturnStatement :
CodeStatement
{
compmod\system\codedom\CodeRemoveEventStatement.cs (1)
27
public class CodeRemoveEventStatement :
CodeStatement
{
compmod\system\codedom\CodeSnippetStatement.cs (1)
27
public class CodeSnippetStatement :
CodeStatement
{
compmod\system\codedom\CodeThrowExceptionStatement.cs (1)
28
public class CodeThrowExceptionStatement :
CodeStatement
{
compmod\system\codedom\CodeTryCatchFinallyStatement.cs (1)
26
public class CodeTryCatchFinallyStatement :
CodeStatement
{
compmod\system\codedom\CodeVariableDeclarationStatement.cs (1)
27
public class CodeVariableDeclarationStatement :
CodeStatement
{
197 references to CodeStatement
PresentationBuildTasks (9)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (9)
1074
CodeStatement
csAddCLREvent = AddCLREvent( eventTarget, null, cceTarget, mei );
1218
CodeStatement
csEvent = AddCLREvent(cc, ceEvent, mei);
1583
private void AddLinePragma(
CodeStatement
cs, int lineNumber)
1914
private
CodeStatement
AddCLREvent(CodeContext cc, CodeExpression ce, MarkupEventInfo mei)
1920
private
CodeStatement
AddCLREvent(Type eventTarget, CodeContext cc, CodeExpression ce, MarkupEventInfo mei)
1924
CodeStatement
csEvent = null;
3066
CodeStatement
csPropSet = new CodeAssignStatement(cprePropSet, ceValue);
3080
CodeStatement
csEvent = AddCLREvent(_ccRoot, ctre, mei);
3149
CodeStatement
csRun = new CodeExpressionStatement(cmieRun);
System (47)
compmod\microsoft\csharp\csharpcodeprovider.cs (3)
1047
private void GenerateStatement(
CodeStatement
e) {
1127
((ICodeGenerator)this).GenerateCodeFromStatement((
CodeStatement
)en.Current, output.InnerWriter, options);
3965
void ICodeGenerator.GenerateCodeFromStatement(
CodeStatement
e, TextWriter w, CodeGeneratorOptions o) {
compmod\system\codedom\CodeCatchClause.cs (1)
56
public CodeCatchClause(string localName, CodeTypeReference catchExceptionType, params
CodeStatement
[] statements) {
compmod\system\codedom\CodeConditionStatement.cs (3)
45
public CodeConditionStatement(CodeExpression condition, params
CodeStatement
[] trueStatements) {
56
public CodeConditionStatement(CodeExpression condition,
CodeStatement
[] trueStatements,
CodeStatement
[] falseStatements) {
compmod\system\codedom\CodeIterationStatement.cs (7)
28
private
CodeStatement
initStatement;
30
private
CodeStatement
incrementStatement;
46
public CodeIterationStatement(
CodeStatement
initStatement, CodeExpression testExpression,
CodeStatement
incrementStatement, params
CodeStatement
[] statements) {
59
public
CodeStatement
InitStatement {
89
public
CodeStatement
IncrementStatement {
compmod\system\codedom\CodeLabeledStatement.cs (3)
27
private
CodeStatement
statement;
45
public CodeLabeledStatement(string label,
CodeStatement
statement) {
65
public
CodeStatement
Statement {
compmod\system\codedom\CodeStatementCollection.cs (18)
17
/// A collection that stores <see cref='System.CodeDom.
CodeStatement
'/> objects.
46
/// Initializes a new instance of <see cref='System.CodeDom.CodeStatementCollection'/> containing any array of <see cref='System.CodeDom.
CodeStatement
'/> objects.
49
public CodeStatementCollection(
CodeStatement
[] value) {
54
/// <para>Represents the entry at the specified index of the <see cref='System.CodeDom.
CodeStatement
'/>.</para>
56
public
CodeStatement
this[int index] {
58
return ((
CodeStatement
)(List[index]));
66
/// <para>Adds a <see cref='System.CodeDom.
CodeStatement
'/> with the specified value to the
69
public int Add(
CodeStatement
value) {
84
public void AddRange(
CodeStatement
[] value) {
110
/// <see cref='System.CodeDom.CodeStatementCollection'/> contains the specified <see cref='System.CodeDom.
CodeStatement
'/>.</para>
112
public bool Contains(
CodeStatement
value) {
120
public void CopyTo(
CodeStatement
[] array, int index) {
125
/// <para>Returns the index of a <see cref='System.CodeDom.
CodeStatement
'/> in
128
public int IndexOf(
CodeStatement
value) {
133
/// <para>Inserts a <see cref='System.CodeDom.
CodeStatement
'/> into the <see cref='System.CodeDom.CodeStatementCollection'/> at the specified index.</para>
135
public void Insert(int index,
CodeStatement
value) {
140
/// <para> Removes a specific <see cref='System.CodeDom.
CodeStatement
'/> from the
143
public void Remove(
CodeStatement
value) {
compmod\system\codedom\CodeTryCatchFinallyStatement.cs (3)
45
public CodeTryCatchFinallyStatement(
CodeStatement
[] tryStatements, CodeCatchClause[] catchClauses) {
56
public CodeTryCatchFinallyStatement(
CodeStatement
[] tryStatements, CodeCatchClause[] catchClauses,
CodeStatement
[] finallyStatements) {
compmod\system\codedom\compiler\CodeDOMProvider.cs (1)
224
public virtual void GenerateCodeFromStatement(
CodeStatement
statement, TextWriter writer, CodeGeneratorOptions options) {
compmod\system\codedom\compiler\CodeGenerator.cs (3)
484
void ICodeGenerator.GenerateCodeFromStatement(
CodeStatement
e, TextWriter w, CodeGeneratorOptions o) {
887
protected void GenerateStatement(
CodeStatement
e) {
967
((ICodeGenerator)this).GenerateCodeFromStatement((
CodeStatement
)en.Current, output.InnerWriter, options);
compmod\system\codedom\compiler\CodeValidator.cs (4)
41
else if (e is
CodeStatement
) {
42
ValidateStatement((
CodeStatement
)e);
356
private void ValidateStatement(
CodeStatement
e) {
410
ValidateStatement((
CodeStatement
)en.Current);
compmod\system\codedom\compiler\ICodeGenerator.cs (1)
75
void GenerateCodeFromStatement(
CodeStatement
e, TextWriter w, CodeGeneratorOptions o);
System.Activities (19)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (19)
850
CodeStatement
[] conditionStatements = null;
862
static
CodeStatement
[] GetRequiredLocationsConditionStatements(IList<string> requiredLocations)
873
CodeStatement
[] returnStatements = new
CodeStatement
[statementCollection.Count];
981
CodeStatement
[] conditionStatements = null;
1033
CodeStatement
GenerateInitializeDataContextActivity()
1138
CodeStatement
[] GenerateReferenceExpressionInvocation(CompiledExpressionDescriptor descriptor, bool withLocationReferences, Dictionary<string, int> cacheIndicies)
1204
CodeStatement
[] returnStatements = new
CodeStatement
[compiledDataContextStatements.Count];
1210
CodeStatement
[] GenerateValueExpressionInvocation(CompiledExpressionDescriptor descriptor, bool withLocationReferences, Dictionary<string, int> cacheIndicies)
1231
CodeStatement
[] returnStatements = new
CodeStatement
[compiledDataContextStatements.Count];
1237
CodeStatement
[] GenerateStatementInvocation(CompiledExpressionDescriptor descriptor, bool withLocationReferences, Dictionary<string, int> cacheIndicies)
1259
CodeStatement
[] returnStatements = new
CodeStatement
[compiledDataContextStatements.Count];
1542
CodeStatement
statement = new CodeMethodReturnStatement(new CodeSnippetExpression(expressionText));
1636
CodeStatement
statement = new CodeSnippetStatement(expressionText);
2005
new
CodeStatement
[] { setLocationsOffsetMethod });
2241
new
CodeStatement
[]
System.Data (28)
fx\src\data\System\Data\CodeGen\datacache.cs (28)
810
CodeStatement
getStmnt = Return(Cast(GetTypeName(DataType), Indexer(This(), Property(Field(This(), stTblFieldName), tableColumnName))));
879
new
CodeStatement
[] {Return(nullValueExpr)},
880
new
CodeStatement
[] {getStmnt}
1051
new
CodeStatement
[] {
1084
CodeStatement
[] schemaBodyArray = new
CodeStatement
[schemaBody.Count];
1089
new
CodeStatement
[] {
1158
new
CodeStatement
[] {
1483
private static
CodeStatement
Stm(CodeExpression expr) { return new CodeExpressionStatement(expr);}
1485
private static
CodeStatement
Return(CodeExpression expr) { return new CodeMethodReturnStatement(expr);}
1487
private static
CodeStatement
Return() { return new CodeMethodReturnStatement();}
1489
private static
CodeStatement
Assign(CodeExpression left, CodeExpression right) { return new CodeAssignStatement(left, right);}
1492
private static
CodeStatement
Throw(Type exception, string arg, string 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 });}
1531
private static
CodeStatement
VariableDecl(Type type, String name) { return new CodeVariableDeclarationStatement(type, name); }
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); }
1552
private static
CodeStatement
Try(
CodeStatement
tryStmnt, CodeCatchClause catchClause) {
1554
new
CodeStatement
[] {tryStmnt},
1559
private static CodeCatchClause Catch(Type type, string name,
CodeStatement
catchStmnt) {
System.Data.Entity.Design (16)
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (5)
369
List<
CodeStatement
> additionalGetStatements = eventArgs.AdditionalGetStatements;
591
CodeStatement
nullConstructor = new CodeAssignStatement(variableReference,
595
CodeStatement
valueConstructor = new CodeAssignStatement(variableReference,
622
new
CodeStatement
[] { valueConstructor, },
623
new
CodeStatement
[] { nullConstructor, }
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (2)
148
List<
CodeStatement
> additionalSetStatements = eventArgs.AdditionalSetStatements;
254
List<
CodeStatement
> additionalGetStatements = eventArgs.AdditionalGetStatements;
System\Data\EntityModel\Emitters\PropertyEmitter.cs (3)
194
private void EmitPropertyGetter(CodeMemberProperty memberProperty, List<
CodeStatement
> additionalGetStatements)
286
private void EmitPropertySetter(CodeMemberProperty memberProperty, List<
CodeStatement
> additionalSetStatements)
303
private void EmitPropertySetterBody(CodeStatementCollection statements, List<
CodeStatement
> additionalSetStatements)
System\Data\EntityModel\PropertyGeneratedEventArgs.cs (6)
29
private List<
CodeStatement
> _additionalGetStatements = new List<
CodeStatement
>();
30
private List<
CodeStatement
> _additionalSetStatements = new List<
CodeStatement
>();
105
public List<
CodeStatement
> AdditionalGetStatements
116
public List<
CodeStatement
> AdditionalSetStatements
System.Data.Services.Design (21)
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (1)
530
List<
CodeStatement
> additionalGetStatements = eventArgs.AdditionalGetStatements;
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (4)
144
List<
CodeStatement
> additionalSetStatements = eventArgs.AdditionalSetStatements;
186
List<
CodeStatement
> additionalAfterSetStatements = eventArgs.AdditionalAfterSetStatements;
238
foreach (
CodeStatement
s in eventArgs.AdditionalAfterSetStatements)
255
List<
CodeStatement
> additionalGetStatements = eventArgs.AdditionalGetStatements;
System\Data\EntityModel\Emitters\PropertyEmitter.cs (7)
190
private void EmitPropertyGetter(CodeMemberProperty memberProperty, List<
CodeStatement
> additionalGetStatements)
287
new
CodeStatement
[] {
295
new
CodeStatement
[] {
318
private void EmitPropertySetter(CodeMemberProperty memberProperty, List<
CodeStatement
> additionalSetStatements, List<
CodeStatement
> additionalAfterSetStatements)
334
private void EmitPropertySetterBody(CodeStatementCollection statements, List<
CodeStatement
> additionalSetStatements, List<
CodeStatement
> additionalAfterSetStatements)
System\Data\EntityModel\PropertyGeneratedEventArgs.cs (9)
26
private List<
CodeStatement
> _additionalGetStatements = new List<
CodeStatement
>();
27
private List<
CodeStatement
> _additionalSetStatements = new List<
CodeStatement
>();
28
private List<
CodeStatement
> _additionalSetStatements2 = new List<
CodeStatement
>();
105
public List<
CodeStatement
> AdditionalGetStatements
117
public List<
CodeStatement
> AdditionalSetStatements
129
internal List<
CodeStatement
> AdditionalAfterSetStatements
System.ServiceModel (1)
System\ServiceModel\Description\ClientClassGenerator.cs (1)
920
static
CodeStatement
CreateDelegateIfNotNull(CodeMemberField delegateField, CodeMemberMethod delegateMethod)
System.Web (15)
Compilation\BaseCodeDomTreeGenerator.cs (1)
785
CodeStatement
simpleAssignment = new CodeAssignStatement(
Compilation\BaseTemplateCodeDomTreeGenerator.cs (11)
61
private
CodeStatement
GetOutputWriteStatement(CodeExpression expr, bool encode) {
90
CodeStatement
outputWriteStmt = GetOutputWriteStatement(expr, false /*encode*/);
415
CodeStatement
statement = pseSub.GetCodeStatement(this, ctrlRefExpr);
1322
CodeStatement
setDataBoundStringCall = new CodeExpressionStatement(methCallExpression);
1327
foreach (
CodeStatement
stmt in topMethodStatements) {
1330
foreach (
CodeStatement
stmt in otherMethodStatements) {
1421
foreach (
CodeStatement
stmt in topStatements) {
1426
foreach (
CodeStatement
stmt in otherStatements) {
1502
CodeStatement
outputWrite = GetOutputWriteStatement(
1540
CodeStatement
statement = statementBuilder.BuildStatement(new CodeArgumentReferenceExpression(renderMethodParameterName));
1578
CodeStatement
simpleAssignment = new CodeAssignStatement(
Compilation\PageThemeCodeDomTreeGenerator.cs (1)
59
private
CodeStatement
BuildControlSkinAssignmentStatement(
UI\CodeStatementBuilder.cs (1)
19
public abstract
CodeStatement
BuildStatement(CodeArgumentReferenceExpression writerReferenceExpression);
UI\SimplePropertyEntry.cs (1)
62
internal
CodeStatement
GetCodeStatement(BaseTemplateCodeDomTreeGenerator generator,
System.Web.Services (9)
System\Web\Services\Description\ProtocolImporter.cs (3)
687
CodeStatement
[] trueStatements = new
CodeStatement
[] { new CodeAssignStatement(urlPropertyReference, value) };
692
ctor.Statements.Add(new CodeConditionStatement(checkIfNull, trueStatements, new
CodeStatement
[] { assignUrlStatement }));
System\Web\Services\Description\WebCodeGenerator.cs (6)
294
CodeStatement
[] trueStatements = new
CodeStatement
[2];
311
asyncCompleted.Statements.Add(new CodeConditionStatement(checkIfNull, trueStatements, new
CodeStatement
[0]));
343
CodeStatement
[] trueStatements = new
CodeStatement
[] { new CodeAssignStatement(member, createDelegate) };
344
asyncCodeMethod.Statements.Add(new CodeConditionStatement(checkIfNull, trueStatements, new
CodeStatement
[0]));
System.Workflow.Activities (25)
Rules\Parser\Parser.cs (4)
1201
CodeStatement
statement = ParseAssignmentStatement(parserContext);
1217
private
CodeStatement
ParseAssignmentStatement(ParserContext parserContext)
1219
CodeStatement
result = null;
2821
private void ValidateStatement(ParserContext parserContext,
CodeStatement
statement)
Rules\RuleAction.cs (3)
210
private
CodeStatement
codeDomStatement;
212
public RuleStatementAction(
CodeStatement
codeDomStatement)
226
public
CodeStatement
CodeDomStatement
Rules\Statements.cs (8)
19
internal abstract bool Match(
CodeStatement
expression);
20
internal abstract
CodeStatement
Clone();
32
internal static RuleCodeDomStatement Create(
CodeStatement
statement)
84
internal override bool Match(
CodeStatement
comperand)
91
internal override
CodeStatement
Clone()
108
internal static RuleCodeDomStatement Create(
CodeStatement
statement)
224
internal override bool Match(
CodeStatement
comperand)
232
internal override
CodeStatement
Clone()
Rules\Walker.cs (10)
223
private delegate RuleCodeDomStatement WrapperCreator(
CodeStatement
statement);
225
private static RuleCodeDomStatement GetStatement(
CodeStatement
statement)
251
internal static bool Validate(RuleValidation validation,
CodeStatement
statement)
257
internal static void Execute(RuleExecution execution,
CodeStatement
statement)
263
internal static void AnalyzeUsage(RuleAnalysis analysis,
CodeStatement
statement)
269
internal static void Decompile(StringBuilder stringBuilder,
CodeStatement
statement)
275
internal static bool Match(
CodeStatement
firstStatement,
CodeStatement
secondStatement)
292
internal static
CodeStatement
Clone(
CodeStatement
statement)
System.Workflow.ComponentModel (7)
AuthoringOM\Serializer\ActivityCodeDomSerializer.cs (1)
52
foreach (
CodeStatement
statement in retVal)
AuthoringOM\Serializer\ActivityTypeCodeDomSerializer.cs (3)
92
CodeStatement
[] codeStatements = new
CodeStatement
[method.Statements.Count];
101
foreach (
CodeStatement
s in codeStatements)
AuthoringOM\Serializer\DependencyObjectCodeDomSerializer.cs (1)
125
foreach (
CodeStatement
statement in codeStatements)
AuthoringOM\Serializer\SerializableTypeCodeDomSerializer.cs (2)
63
else if (result is
CodeStatement
)
64
statements.Add(result as
CodeStatement
);