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)
358get { return _ccRoot != null && _ccRoot.CodeClass.TypeAttributes == TypeAttributes.Public; } 363get { return _ccRoot == null; } 585CodeNamespace cnsImports = IsLanguageCSharp ? new CodeNamespace() : _ccRoot.CodeNS; 600_ccRoot.CodeNS.Types.Add(_ccRoot.CodeClass); 639if (cnsImports != _ccRoot.CodeNS) 644ccu.Namespaces.Add(_ccRoot.CodeNS); 648if (codeProvider.Supports(GeneratorSupport.PartialTypes) && _ccRoot.SubClass.Length == 0) 650_ccRoot.CodeClass.IsPartial = true; 803_ccRoot.ElementName, 882if (_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); 896AddDebuggerNonUserCodeAttribute(_ccRoot.StyleConnectorFn); 897AddGeneratedCodeAttribute(_ccRoot.StyleConnectorFn); 898AddEditorBrowsableAttribute(_ccRoot.StyleConnectorFn); 899AddSuppressMessageAttribute(_ccRoot.StyleConnectorFn, "Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes"); 900AddSuppressMessageAttribute(_ccRoot.StyleConnectorFn, "Microsoft.Performance", "CA1800:DoNotCastUnnecessarily"); 901AddSuppressMessageAttribute(_ccRoot.StyleConnectorFn, "Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity"); 908_ccRoot.StyleConnectorFn.Statements.Add(css); 912return _ccRoot.StyleConnectorFn; 930if (_ccRoot.StyleConnectorFn.Statements.Count > 1) 933_ccRoot.StyleConnectorFn.Statements.Add(cssBreak); 939_ccRoot.StyleConnectorFn.Statements.Add(cssCase); 955Debug.Assert(_ccRoot.StyleConnectorFn.Statements.Count > 0); 956ccsConnector = _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); 1085if (_ccRoot.StyleConnectorFn != null) 1087_ccRoot.CodeClass.BaseTypes.Add(KnownTypes.Types[(int)KnownElements.IStyleConnector].FullName); 1092if (_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; 1114if (_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); 1128AddDebuggerNonUserCodeAttribute(_ccRoot.HookupFn); 1129AddGeneratedCodeAttribute(_ccRoot.HookupFn); 1130AddEditorBrowsableAttribute(_ccRoot.HookupFn); 1131AddSuppressMessageAttribute(_ccRoot.HookupFn, "Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes"); 1132AddSuppressMessageAttribute(_ccRoot.HookupFn, "Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity"); 1133AddSuppressMessageAttribute(_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); 1243if (_ccRoot.HookupFn != null) 1246_ccRoot.CodeClass.BaseTypes.Add(iComponentConnector); 1253_ccRoot.InitializeComponentFn.ImplementationTypes.Add(iComponentConnector); 1259if (_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; 1548ThrowCompilerException(nameof(SR.MissingClassDefinitionForEvent), _ccRoot.ElementName, DefinitionNSPrefix, eventName); 1927bool subClassed = _ccRoot.SubClass.Length > 0; 1972bool subClassed = _ccRoot.SubClass.Length > 0; 2028Debug.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])); 2530Debug.Assert(_ccRoot == null); 2578_ccRoot.CodeClass.Members.Add(cmmCD); 2586CodeMemberMethod cmmLC = _ccRoot.InitializeComponentFn; 2590cmmLC = _ccRoot.EnsureInitializeComponentFn; 2702_ccRoot.CodeClass.Members.Add(cmfCL); 2967if (_ccRoot == null) 2996Debug.Assert(_ccRoot != null); 3003_ccRoot.SubClass = classFullName; 3007classFullName = GetFullClassName(_ccRoot.CodeNS.Name, _ccRoot.CodeClass.Name); 3049Debug.Assert(_ccRoot == (cc as CodeContextRoot)); 3050Debug.Assert(_ccRoot.CodeClass != null); 3074Debug.Assert(_ccRoot.HookupFn == null); 3108string appClassName = _ccRoot.SubClass.Length > 0 ? _ccRoot.SubClass 3109: GetFullClassName(_ccRoot.CodeNS.Name, _ccRoot.CodeClass.Name); 3128Debug.Assert(_ccRoot == (_codeContexts.Peek() as CodeContextRoot)); 3129Debug.Assert(_ccRoot.ElementType == null || 3130(memberInfo.DeclaringType.IsAssignableFrom(_ccRoot.ElementType) && (memberInfo is PropertyInfo))); 3141_ccRoot.EnsureInitializeComponentFn.Statements.Add(csPropSet); 3151CodeStatement csEvent = AddCLREvent(_ccRoot, ctre, mei); 3153Debug.Assert(_ccRoot == (_codeContexts.Peek() as CodeContextRoot)); 3154_ccRoot.EnsureInitializeComponentFn.Statements.Add(csEvent); 3203if (_ccRoot.InitializeComponentFn != null) 3224_ccRoot.CodeClass.Members.Add(cmmMain);