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)
361get { return _ccRoot != null && _ccRoot.CodeClass.TypeAttributes == TypeAttributes.Public; } 366get { return _ccRoot == null; } 587CodeNamespace cnsImports = IsLanguageCSharp ? new CodeNamespace() : _ccRoot.CodeNS; 602_ccRoot.CodeNS.Types.Add(_ccRoot.CodeClass); 656if (cnsImports != _ccRoot.CodeNS) 661ccu.Namespaces.Add(_ccRoot.CodeNS); 665if (codeProvider.Supports(GeneratorSupport.PartialTypes) && _ccRoot.SubClass.Length == 0) 667_ccRoot.CodeClass.IsPartial = true; 813_ccRoot.ElementName, 892if (_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); 906AddDebuggerNonUserCodeAttribute(_ccRoot.StyleConnectorFn); 907AddGeneratedCodeAttribute(_ccRoot.StyleConnectorFn); 908AddEditorBrowsableAttribute(_ccRoot.StyleConnectorFn); 909AddSuppressMessageAttribute(_ccRoot.StyleConnectorFn, "Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes"); 910AddSuppressMessageAttribute(_ccRoot.StyleConnectorFn, "Microsoft.Performance", "CA1800:DoNotCastUnnecessarily"); 911AddSuppressMessageAttribute(_ccRoot.StyleConnectorFn, "Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity"); 918_ccRoot.StyleConnectorFn.Statements.Add(css); 922return _ccRoot.StyleConnectorFn; 940if (_ccRoot.StyleConnectorFn.Statements.Count > 1) 943_ccRoot.StyleConnectorFn.Statements.Add(cssBreak); 949_ccRoot.StyleConnectorFn.Statements.Add(cssCase); 965Debug.Assert(_ccRoot.StyleConnectorFn.Statements.Count > 0); 966ccsConnector = _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); 1095if (_ccRoot.StyleConnectorFn != null) 1097_ccRoot.CodeClass.BaseTypes.Add(KnownTypes.Types[(int)KnownElements.IStyleConnector].FullName); 1102if (_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; 1124if (_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); 1138AddDebuggerNonUserCodeAttribute(_ccRoot.HookupFn); 1139AddGeneratedCodeAttribute(_ccRoot.HookupFn); 1140AddEditorBrowsableAttribute(_ccRoot.HookupFn); 1141AddSuppressMessageAttribute(_ccRoot.HookupFn, "Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes"); 1142AddSuppressMessageAttribute(_ccRoot.HookupFn, "Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity"); 1143AddSuppressMessageAttribute(_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); 1253if (_ccRoot.HookupFn != null) 1256_ccRoot.CodeClass.BaseTypes.Add(iComponentConnector); 1263_ccRoot.InitializeComponentFn.ImplementationTypes.Add(iComponentConnector); 1269if (_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; 1543ThrowCompilerException(SRID.MissingClassDefinitionForEvent, _ccRoot.ElementName, DefinitionNSPrefix, eventName); 1877bool subClassed = _ccRoot.SubClass.Length > 0; 1923bool subClassed = _ccRoot.SubClass.Length > 0; 1979Debug.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])); 2482Debug.Assert(_ccRoot == null); 2530_ccRoot.CodeClass.Members.Add(cmmCD); 2538CodeMemberMethod cmmLC = _ccRoot.InitializeComponentFn; 2542cmmLC = _ccRoot.EnsureInitializeComponentFn; 2631_ccRoot.CodeClass.Members.Add(cmfCL); 2896if (_ccRoot == null) 2925Debug.Assert(_ccRoot != null); 2932_ccRoot.SubClass = classFullName; 2936classFullName = GetFullClassName(_ccRoot.CodeNS.Name, _ccRoot.CodeClass.Name); 2978Debug.Assert(_ccRoot == (cc as CodeContextRoot)); 2979Debug.Assert(_ccRoot.CodeClass != null); 3003Debug.Assert(_ccRoot.HookupFn == null); 3037string appClassName = _ccRoot.SubClass.Length > 0 ? _ccRoot.SubClass 3038: GetFullClassName(_ccRoot.CodeNS.Name, _ccRoot.CodeClass.Name); 3057Debug.Assert(_ccRoot == (_codeContexts.Peek() as CodeContextRoot)); 3058Debug.Assert(_ccRoot.ElementType == null || 3059(memberInfo.DeclaringType.IsAssignableFrom(_ccRoot.ElementType) && (memberInfo is PropertyInfo))); 3070_ccRoot.EnsureInitializeComponentFn.Statements.Add(csPropSet); 3080CodeStatement csEvent = AddCLREvent(_ccRoot, ctre, mei); 3082Debug.Assert(_ccRoot == (_codeContexts.Peek() as CodeContextRoot)); 3083_ccRoot.EnsureInitializeComponentFn.Statements.Add(csEvent); 3132if (_ccRoot.InitializeComponentFn != null) 3153_ccRoot.CodeClass.Members.Add(cmmMain);