2 writes to _ccRoot
PresentationBuildTasks (2)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (2)
510
_ccRoot
= null;
2995
_ccRoot
= cc as CodeContextRoot;
114 references to _ccRoot
PresentationBuildTasks (114)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (114)
358
get { return
_ccRoot
!= null &&
_ccRoot
.CodeClass.TypeAttributes == TypeAttributes.Public; }
363
get { return
_ccRoot
== null; }
585
CodeNamespace cnsImports = IsLanguageCSharp ? new CodeNamespace() :
_ccRoot
.CodeNS;
600
_ccRoot
.CodeNS.Types.Add(
_ccRoot
.CodeClass);
639
if (cnsImports !=
_ccRoot
.CodeNS)
644
ccu.Namespaces.Add(
_ccRoot
.CodeNS);
648
if (codeProvider.Supports(GeneratorSupport.PartialTypes) &&
_ccRoot
.SubClass.Length == 0)
650
_ccRoot
.CodeClass.IsPartial = true;
803
_ccRoot
.ElementName,
882
if (
_ccRoot
.StyleConnectorFn == null)
884
_ccRoot
.StyleConnectorFn = new CodeMemberMethod();
885
_ccRoot
.StyleConnectorFn.Name = CONNECT;
886
_ccRoot
.StyleConnectorFn.Attributes = MemberAttributes.Public | MemberAttributes.Final;
887
_ccRoot
.StyleConnectorFn.PrivateImplementationType = new CodeTypeReference(KnownTypes.Types[(int)KnownElements.IStyleConnector]);
893
_ccRoot
.StyleConnectorFn.Parameters.Add(param1);
894
_ccRoot
.StyleConnectorFn.Parameters.Add(param2);
896
AddDebuggerNonUserCodeAttribute(
_ccRoot
.StyleConnectorFn);
897
AddGeneratedCodeAttribute(
_ccRoot
.StyleConnectorFn);
898
AddEditorBrowsableAttribute(
_ccRoot
.StyleConnectorFn);
899
AddSuppressMessageAttribute(
_ccRoot
.StyleConnectorFn, "Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes");
900
AddSuppressMessageAttribute(
_ccRoot
.StyleConnectorFn, "Microsoft.Performance", "CA1800:DoNotCastUnnecessarily");
901
AddSuppressMessageAttribute(
_ccRoot
.StyleConnectorFn, "Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity");
908
_ccRoot
.StyleConnectorFn.Statements.Add(css);
912
return
_ccRoot
.StyleConnectorFn;
930
if (
_ccRoot
.StyleConnectorFn.Statements.Count > 1)
933
_ccRoot
.StyleConnectorFn.Statements.Add(cssBreak);
939
_ccRoot
.StyleConnectorFn.Statements.Add(cssCase);
955
Debug.Assert(
_ccRoot
.StyleConnectorFn.Statements.Count > 0);
956
ccsConnector =
_ccRoot
.StyleConnectorFn.Statements[
_ccRoot
.StyleConnectorFn.Statements.Count - 1] as CodeConditionStatement;
972
_ccRoot
.StyleConnectorFn.Statements.Insert(0, cvdsES);
1011
_ccRoot
.StyleConnectorFn.Statements.Add(casES);
1012
_ccRoot
.StyleConnectorFn.Statements.Add(casEvent);
1013
_ccRoot
.StyleConnectorFn.Statements.Add(casHandler);
1014
_ccRoot
.StyleConnectorFn.Statements.Add(new CodeExpressionStatement(cmieAdd));
1025
_ccRoot
.StyleConnectorFn.Statements.Add(ccsConnector);
1068
_ccRoot
.StyleConnectorFn.Statements.Add( csAddCLREvent );
1077
_ccRoot
.StyleConnectorFn.Statements.Add(ccsConnector);
1085
if (
_ccRoot
.StyleConnectorFn != null)
1087
_ccRoot
.CodeClass.BaseTypes.Add(KnownTypes.Types[(int)KnownElements.IStyleConnector].FullName);
1092
if (
_ccRoot
.StyleConnectorFn.Statements.Count > 1)
1095
_ccRoot
.StyleConnectorFn.Statements.Add(cssBreak);
1102
_ccRoot
.StyleConnectorFn.Statements.Add(css);
1105
_ccRoot
.CodeClass.Members.Add(
_ccRoot
.StyleConnectorFn);
1106
_ccRoot
.StyleConnectorFn = null;
1114
if (
_ccRoot
.HookupFn == null)
1116
_ccRoot
.HookupFn = new CodeMemberMethod();
1117
_ccRoot
.HookupFn.Name = CONNECT;
1118
_ccRoot
.HookupFn.Attributes = MemberAttributes.Public | MemberAttributes.Final;
1119
_ccRoot
.HookupFn.PrivateImplementationType = new CodeTypeReference(KnownTypes.Types[(int)KnownElements.IComponentConnector]);
1125
_ccRoot
.HookupFn.Parameters.Add(param1);
1126
_ccRoot
.HookupFn.Parameters.Add(param2);
1128
AddDebuggerNonUserCodeAttribute(
_ccRoot
.HookupFn);
1129
AddGeneratedCodeAttribute(
_ccRoot
.HookupFn);
1130
AddEditorBrowsableAttribute(
_ccRoot
.HookupFn);
1131
AddSuppressMessageAttribute(
_ccRoot
.HookupFn, "Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes");
1132
AddSuppressMessageAttribute(
_ccRoot
.HookupFn, "Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity");
1133
AddSuppressMessageAttribute(
_ccRoot
.HookupFn, "Microsoft.Performance", "CA1800:DoNotCastUnnecessarily");
1140
_ccRoot
.HookupFn.Statements.Add(css);
1169
_ccRoot
.HookupFn.Statements.Add(cssCase);
1196
_ccRoot
.HookupFn.Statements.Add(casName);
1212
_ccRoot
.HookupFn.Statements.Add(csEvent);
1225
_ccRoot
.HookupFn.Statements.Add(new CodeMethodReturnStatement());
1230
_ccRoot
.HookupFn.Statements.Add(ccsConnector);
1243
if (
_ccRoot
.HookupFn != null)
1246
_ccRoot
.CodeClass.BaseTypes.Add(iComponentConnector);
1253
_ccRoot
.InitializeComponentFn.ImplementationTypes.Add(iComponentConnector);
1259
if (
_ccRoot
.HookupFn.Statements.Count == 1 &&
1260
_ccRoot
.HookupFn.Statements[0] is CodeSnippetStatement)
1262
_ccRoot
.HookupFn.Statements.Clear();
1270
_ccRoot
.HookupFn.Statements.Add(css);
1278
_ccRoot
.HookupFn.Statements.Add(casContentLoaded);
1280
_ccRoot
.CodeClass.Members.Add(
_ccRoot
.HookupFn);
1281
_ccRoot
.HookupFn = null;
1548
ThrowCompilerException(nameof(SR.MissingClassDefinitionForEvent),
_ccRoot
.ElementName, DefinitionNSPrefix, eventName);
1927
bool subClassed =
_ccRoot
.SubClass.Length > 0;
1972
bool subClassed =
_ccRoot
.SubClass.Length > 0;
2028
Debug.Assert(
_ccRoot
!= null &&
_ccRoot
.SubClass.Length > 0);
2062
_ccRoot
.CodeClass.Members.Add(cmmEventHandler);
2074
_ccRoot
.CodeClass.Members.Add(cmmEventHandlerHelper);
2227
_ccRoot
.CodeClass.Members.Add(field);
2239
_ccRoot
.CodeClass.Members.Add(snippet);
2289
_ccRoot
.CodeClass.BaseTypes[0].TypeArguments.Add(new CodeTypeReference(_typeArgsList[i]));
2530
Debug.Assert(
_ccRoot
== null);
2578
_ccRoot
.CodeClass.Members.Add(cmmCD);
2586
CodeMemberMethod cmmLC =
_ccRoot
.InitializeComponentFn;
2590
cmmLC =
_ccRoot
.EnsureInitializeComponentFn;
2702
_ccRoot
.CodeClass.Members.Add(cmfCL);
2967
if (
_ccRoot
== null)
2996
Debug.Assert(
_ccRoot
!= null);
3003
_ccRoot
.SubClass = classFullName;
3007
classFullName = GetFullClassName(
_ccRoot
.CodeNS.Name,
_ccRoot
.CodeClass.Name);
3049
Debug.Assert(
_ccRoot
== (cc as CodeContextRoot));
3050
Debug.Assert(
_ccRoot
.CodeClass != null);
3074
Debug.Assert(
_ccRoot
.HookupFn == null);
3108
string appClassName =
_ccRoot
.SubClass.Length > 0 ?
_ccRoot
.SubClass
3109
: GetFullClassName(
_ccRoot
.CodeNS.Name,
_ccRoot
.CodeClass.Name);
3128
Debug.Assert(
_ccRoot
== (_codeContexts.Peek() as CodeContextRoot));
3129
Debug.Assert(
_ccRoot
.ElementType == null ||
3130
(memberInfo.DeclaringType.IsAssignableFrom(
_ccRoot
.ElementType) && (memberInfo is PropertyInfo)));
3141
_ccRoot
.EnsureInitializeComponentFn.Statements.Add(csPropSet);
3151
CodeStatement csEvent = AddCLREvent(
_ccRoot
, ctre, mei);
3153
Debug.Assert(
_ccRoot
== (_codeContexts.Peek() as CodeContextRoot));
3154
_ccRoot
.EnsureInitializeComponentFn.Statements.Add(csEvent);
3203
if (
_ccRoot
.InitializeComponentFn != null)
3224
_ccRoot
.CodeClass.Members.Add(cmmMain);