2 writes to _ccRoot
PresentationBuildTasks (2)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (2)
512
_ccRoot
= null;
2924
_ccRoot
= cc as CodeContextRoot;
114 references to _ccRoot
PresentationBuildTasks (114)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (114)
361
get { return
_ccRoot
!= null &&
_ccRoot
.CodeClass.TypeAttributes == TypeAttributes.Public; }
366
get { return
_ccRoot
== null; }
587
CodeNamespace cnsImports = IsLanguageCSharp ? new CodeNamespace() :
_ccRoot
.CodeNS;
602
_ccRoot
.CodeNS.Types.Add(
_ccRoot
.CodeClass);
656
if (cnsImports !=
_ccRoot
.CodeNS)
661
ccu.Namespaces.Add(
_ccRoot
.CodeNS);
665
if (codeProvider.Supports(GeneratorSupport.PartialTypes) &&
_ccRoot
.SubClass.Length == 0)
667
_ccRoot
.CodeClass.IsPartial = true;
813
_ccRoot
.ElementName,
892
if (
_ccRoot
.StyleConnectorFn == null)
894
_ccRoot
.StyleConnectorFn = new CodeMemberMethod();
895
_ccRoot
.StyleConnectorFn.Name = CONNECT;
896
_ccRoot
.StyleConnectorFn.Attributes = MemberAttributes.Public | MemberAttributes.Final;
897
_ccRoot
.StyleConnectorFn.PrivateImplementationType = new CodeTypeReference(KnownTypes.Types[(int)KnownElements.IStyleConnector]);
903
_ccRoot
.StyleConnectorFn.Parameters.Add(param1);
904
_ccRoot
.StyleConnectorFn.Parameters.Add(param2);
906
AddDebuggerNonUserCodeAttribute(
_ccRoot
.StyleConnectorFn);
907
AddGeneratedCodeAttribute(
_ccRoot
.StyleConnectorFn);
908
AddEditorBrowsableAttribute(
_ccRoot
.StyleConnectorFn);
909
AddSuppressMessageAttribute(
_ccRoot
.StyleConnectorFn, "Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes");
910
AddSuppressMessageAttribute(
_ccRoot
.StyleConnectorFn, "Microsoft.Performance", "CA1800:DoNotCastUnnecessarily");
911
AddSuppressMessageAttribute(
_ccRoot
.StyleConnectorFn, "Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity");
918
_ccRoot
.StyleConnectorFn.Statements.Add(css);
922
return
_ccRoot
.StyleConnectorFn;
940
if (
_ccRoot
.StyleConnectorFn.Statements.Count > 1)
943
_ccRoot
.StyleConnectorFn.Statements.Add(cssBreak);
949
_ccRoot
.StyleConnectorFn.Statements.Add(cssCase);
965
Debug.Assert(
_ccRoot
.StyleConnectorFn.Statements.Count > 0);
966
ccsConnector =
_ccRoot
.StyleConnectorFn.Statements[
_ccRoot
.StyleConnectorFn.Statements.Count - 1] as CodeConditionStatement;
982
_ccRoot
.StyleConnectorFn.Statements.Insert(0, cvdsES);
1021
_ccRoot
.StyleConnectorFn.Statements.Add(casES);
1022
_ccRoot
.StyleConnectorFn.Statements.Add(casEvent);
1023
_ccRoot
.StyleConnectorFn.Statements.Add(casHandler);
1024
_ccRoot
.StyleConnectorFn.Statements.Add(new CodeExpressionStatement(cmieAdd));
1035
_ccRoot
.StyleConnectorFn.Statements.Add(ccsConnector);
1078
_ccRoot
.StyleConnectorFn.Statements.Add( csAddCLREvent );
1087
_ccRoot
.StyleConnectorFn.Statements.Add(ccsConnector);
1095
if (
_ccRoot
.StyleConnectorFn != null)
1097
_ccRoot
.CodeClass.BaseTypes.Add(KnownTypes.Types[(int)KnownElements.IStyleConnector].FullName);
1102
if (
_ccRoot
.StyleConnectorFn.Statements.Count > 1)
1105
_ccRoot
.StyleConnectorFn.Statements.Add(cssBreak);
1112
_ccRoot
.StyleConnectorFn.Statements.Add(css);
1115
_ccRoot
.CodeClass.Members.Add(
_ccRoot
.StyleConnectorFn);
1116
_ccRoot
.StyleConnectorFn = null;
1124
if (
_ccRoot
.HookupFn == null)
1126
_ccRoot
.HookupFn = new CodeMemberMethod();
1127
_ccRoot
.HookupFn.Name = CONNECT;
1128
_ccRoot
.HookupFn.Attributes = MemberAttributes.Public | MemberAttributes.Final;
1129
_ccRoot
.HookupFn.PrivateImplementationType = new CodeTypeReference(KnownTypes.Types[(int)KnownElements.IComponentConnector]);
1135
_ccRoot
.HookupFn.Parameters.Add(param1);
1136
_ccRoot
.HookupFn.Parameters.Add(param2);
1138
AddDebuggerNonUserCodeAttribute(
_ccRoot
.HookupFn);
1139
AddGeneratedCodeAttribute(
_ccRoot
.HookupFn);
1140
AddEditorBrowsableAttribute(
_ccRoot
.HookupFn);
1141
AddSuppressMessageAttribute(
_ccRoot
.HookupFn, "Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes");
1142
AddSuppressMessageAttribute(
_ccRoot
.HookupFn, "Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity");
1143
AddSuppressMessageAttribute(
_ccRoot
.HookupFn, "Microsoft.Performance", "CA1800:DoNotCastUnnecessarily");
1150
_ccRoot
.HookupFn.Statements.Add(css);
1179
_ccRoot
.HookupFn.Statements.Add(cssCase);
1206
_ccRoot
.HookupFn.Statements.Add(casName);
1222
_ccRoot
.HookupFn.Statements.Add(csEvent);
1235
_ccRoot
.HookupFn.Statements.Add(new CodeMethodReturnStatement());
1240
_ccRoot
.HookupFn.Statements.Add(ccsConnector);
1253
if (
_ccRoot
.HookupFn != null)
1256
_ccRoot
.CodeClass.BaseTypes.Add(iComponentConnector);
1263
_ccRoot
.InitializeComponentFn.ImplementationTypes.Add(iComponentConnector);
1269
if (
_ccRoot
.HookupFn.Statements.Count == 1 &&
1270
_ccRoot
.HookupFn.Statements[0] is CodeSnippetStatement)
1272
_ccRoot
.HookupFn.Statements.Clear();
1280
_ccRoot
.HookupFn.Statements.Add(css);
1288
_ccRoot
.HookupFn.Statements.Add(casContentLoaded);
1290
_ccRoot
.CodeClass.Members.Add(
_ccRoot
.HookupFn);
1291
_ccRoot
.HookupFn = null;
1543
ThrowCompilerException(SRID.MissingClassDefinitionForEvent,
_ccRoot
.ElementName, DefinitionNSPrefix, eventName);
1877
bool subClassed =
_ccRoot
.SubClass.Length > 0;
1923
bool subClassed =
_ccRoot
.SubClass.Length > 0;
1979
Debug.Assert(
_ccRoot
!= null &&
_ccRoot
.SubClass.Length > 0);
2013
_ccRoot
.CodeClass.Members.Add(cmmEventHandler);
2025
_ccRoot
.CodeClass.Members.Add(cmmEventHandlerHelper);
2179
_ccRoot
.CodeClass.Members.Add(field);
2191
_ccRoot
.CodeClass.Members.Add(snippet);
2241
_ccRoot
.CodeClass.BaseTypes[0].TypeArguments.Add(new CodeTypeReference(_typeArgsList[i]));
2482
Debug.Assert(
_ccRoot
== null);
2530
_ccRoot
.CodeClass.Members.Add(cmmCD);
2538
CodeMemberMethod cmmLC =
_ccRoot
.InitializeComponentFn;
2542
cmmLC =
_ccRoot
.EnsureInitializeComponentFn;
2631
_ccRoot
.CodeClass.Members.Add(cmfCL);
2896
if (
_ccRoot
== null)
2925
Debug.Assert(
_ccRoot
!= null);
2932
_ccRoot
.SubClass = classFullName;
2936
classFullName = GetFullClassName(
_ccRoot
.CodeNS.Name,
_ccRoot
.CodeClass.Name);
2978
Debug.Assert(
_ccRoot
== (cc as CodeContextRoot));
2979
Debug.Assert(
_ccRoot
.CodeClass != null);
3003
Debug.Assert(
_ccRoot
.HookupFn == null);
3037
string appClassName =
_ccRoot
.SubClass.Length > 0 ?
_ccRoot
.SubClass
3038
: GetFullClassName(
_ccRoot
.CodeNS.Name,
_ccRoot
.CodeClass.Name);
3057
Debug.Assert(
_ccRoot
== (_codeContexts.Peek() as CodeContextRoot));
3058
Debug.Assert(
_ccRoot
.ElementType == null ||
3059
(memberInfo.DeclaringType.IsAssignableFrom(
_ccRoot
.ElementType) && (memberInfo is PropertyInfo)));
3070
_ccRoot
.EnsureInitializeComponentFn.Statements.Add(csPropSet);
3080
CodeStatement csEvent = AddCLREvent(
_ccRoot
, ctre, mei);
3082
Debug.Assert(
_ccRoot
== (_codeContexts.Peek() as CodeContextRoot));
3083
_ccRoot
.EnsureInitializeComponentFn.Statements.Add(csEvent);
3132
if (
_ccRoot
.InitializeComponentFn != null)
3153
_ccRoot
.CodeClass.Members.Add(cmmMain);