2 writes to _ccRoot
PresentationBuildTasks (2)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (2)
514_ccRoot = null; 2999_ccRoot = cc as CodeContextRoot;
114 references to _ccRoot
PresentationBuildTasks (114)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (114)
362get { return _ccRoot != null && _ccRoot.CodeClass.TypeAttributes == TypeAttributes.Public; } 367get { return _ccRoot == null; } 589CodeNamespace cnsImports = IsLanguageCSharp ? new CodeNamespace() : _ccRoot.CodeNS; 604_ccRoot.CodeNS.Types.Add(_ccRoot.CodeClass); 643if (cnsImports != _ccRoot.CodeNS) 648ccu.Namespaces.Add(_ccRoot.CodeNS); 652if (codeProvider.Supports(GeneratorSupport.PartialTypes) && _ccRoot.SubClass.Length == 0) 654_ccRoot.CodeClass.IsPartial = true; 807_ccRoot.ElementName, 886if (_ccRoot.StyleConnectorFn == null) 888_ccRoot.StyleConnectorFn = new CodeMemberMethod(); 889_ccRoot.StyleConnectorFn.Name = CONNECT; 890_ccRoot.StyleConnectorFn.Attributes = MemberAttributes.Public | MemberAttributes.Final; 891_ccRoot.StyleConnectorFn.PrivateImplementationType = new CodeTypeReference(KnownTypes.Types[(int)KnownElements.IStyleConnector]); 897_ccRoot.StyleConnectorFn.Parameters.Add(param1); 898_ccRoot.StyleConnectorFn.Parameters.Add(param2); 900AddDebuggerNonUserCodeAttribute(_ccRoot.StyleConnectorFn); 901AddGeneratedCodeAttribute(_ccRoot.StyleConnectorFn); 902AddEditorBrowsableAttribute(_ccRoot.StyleConnectorFn); 903AddSuppressMessageAttribute(_ccRoot.StyleConnectorFn, "Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes"); 904AddSuppressMessageAttribute(_ccRoot.StyleConnectorFn, "Microsoft.Performance", "CA1800:DoNotCastUnnecessarily"); 905AddSuppressMessageAttribute(_ccRoot.StyleConnectorFn, "Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity"); 912_ccRoot.StyleConnectorFn.Statements.Add(css); 916return _ccRoot.StyleConnectorFn; 934if (_ccRoot.StyleConnectorFn.Statements.Count > 1) 937_ccRoot.StyleConnectorFn.Statements.Add(cssBreak); 943_ccRoot.StyleConnectorFn.Statements.Add(cssCase); 959Debug.Assert(_ccRoot.StyleConnectorFn.Statements.Count > 0); 960ccsConnector = _ccRoot.StyleConnectorFn.Statements[_ccRoot.StyleConnectorFn.Statements.Count - 1] as CodeConditionStatement; 976_ccRoot.StyleConnectorFn.Statements.Insert(0, cvdsES); 1015_ccRoot.StyleConnectorFn.Statements.Add(casES); 1016_ccRoot.StyleConnectorFn.Statements.Add(casEvent); 1017_ccRoot.StyleConnectorFn.Statements.Add(casHandler); 1018_ccRoot.StyleConnectorFn.Statements.Add(new CodeExpressionStatement(cmieAdd)); 1029_ccRoot.StyleConnectorFn.Statements.Add(ccsConnector); 1072_ccRoot.StyleConnectorFn.Statements.Add( csAddCLREvent ); 1081_ccRoot.StyleConnectorFn.Statements.Add(ccsConnector); 1089if (_ccRoot.StyleConnectorFn != null) 1091_ccRoot.CodeClass.BaseTypes.Add(KnownTypes.Types[(int)KnownElements.IStyleConnector].FullName); 1096if (_ccRoot.StyleConnectorFn.Statements.Count > 1) 1099_ccRoot.StyleConnectorFn.Statements.Add(cssBreak); 1106_ccRoot.StyleConnectorFn.Statements.Add(css); 1109_ccRoot.CodeClass.Members.Add(_ccRoot.StyleConnectorFn); 1110_ccRoot.StyleConnectorFn = null; 1118if (_ccRoot.HookupFn == null) 1120_ccRoot.HookupFn = new CodeMemberMethod(); 1121_ccRoot.HookupFn.Name = CONNECT; 1122_ccRoot.HookupFn.Attributes = MemberAttributes.Public | MemberAttributes.Final; 1123_ccRoot.HookupFn.PrivateImplementationType = new CodeTypeReference(KnownTypes.Types[(int)KnownElements.IComponentConnector]); 1129_ccRoot.HookupFn.Parameters.Add(param1); 1130_ccRoot.HookupFn.Parameters.Add(param2); 1132AddDebuggerNonUserCodeAttribute(_ccRoot.HookupFn); 1133AddGeneratedCodeAttribute(_ccRoot.HookupFn); 1134AddEditorBrowsableAttribute(_ccRoot.HookupFn); 1135AddSuppressMessageAttribute(_ccRoot.HookupFn, "Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes"); 1136AddSuppressMessageAttribute(_ccRoot.HookupFn, "Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity"); 1137AddSuppressMessageAttribute(_ccRoot.HookupFn, "Microsoft.Performance", "CA1800:DoNotCastUnnecessarily"); 1144_ccRoot.HookupFn.Statements.Add(css); 1173_ccRoot.HookupFn.Statements.Add(cssCase); 1200_ccRoot.HookupFn.Statements.Add(casName); 1216_ccRoot.HookupFn.Statements.Add(csEvent); 1229_ccRoot.HookupFn.Statements.Add(new CodeMethodReturnStatement()); 1234_ccRoot.HookupFn.Statements.Add(ccsConnector); 1247if (_ccRoot.HookupFn != null) 1250_ccRoot.CodeClass.BaseTypes.Add(iComponentConnector); 1257_ccRoot.InitializeComponentFn.ImplementationTypes.Add(iComponentConnector); 1263if (_ccRoot.HookupFn.Statements.Count == 1 && 1264_ccRoot.HookupFn.Statements[0] is CodeSnippetStatement) 1266_ccRoot.HookupFn.Statements.Clear(); 1274_ccRoot.HookupFn.Statements.Add(css); 1282_ccRoot.HookupFn.Statements.Add(casContentLoaded); 1284_ccRoot.CodeClass.Members.Add(_ccRoot.HookupFn); 1285_ccRoot.HookupFn = null; 1552ThrowCompilerException(nameof(SR.MissingClassDefinitionForEvent), _ccRoot.ElementName, DefinitionNSPrefix, eventName); 1931bool subClassed = _ccRoot.SubClass.Length > 0; 1976bool subClassed = _ccRoot.SubClass.Length > 0; 2032Debug.Assert(_ccRoot != null && _ccRoot.SubClass.Length > 0); 2066_ccRoot.CodeClass.Members.Add(cmmEventHandler); 2078_ccRoot.CodeClass.Members.Add(cmmEventHandlerHelper); 2231_ccRoot.CodeClass.Members.Add(field); 2243_ccRoot.CodeClass.Members.Add(snippet); 2293_ccRoot.CodeClass.BaseTypes[0].TypeArguments.Add(new CodeTypeReference(_typeArgsList[i])); 2534Debug.Assert(_ccRoot == null); 2582_ccRoot.CodeClass.Members.Add(cmmCD); 2590CodeMemberMethod cmmLC = _ccRoot.InitializeComponentFn; 2594cmmLC = _ccRoot.EnsureInitializeComponentFn; 2706_ccRoot.CodeClass.Members.Add(cmfCL); 2971if (_ccRoot == null) 3000Debug.Assert(_ccRoot != null); 3007_ccRoot.SubClass = classFullName; 3011classFullName = GetFullClassName(_ccRoot.CodeNS.Name, _ccRoot.CodeClass.Name); 3053Debug.Assert(_ccRoot == (cc as CodeContextRoot)); 3054Debug.Assert(_ccRoot.CodeClass != null); 3078Debug.Assert(_ccRoot.HookupFn == null); 3112string appClassName = _ccRoot.SubClass.Length > 0 ? _ccRoot.SubClass 3113: GetFullClassName(_ccRoot.CodeNS.Name, _ccRoot.CodeClass.Name); 3132Debug.Assert(_ccRoot == (_codeContexts.Peek() as CodeContextRoot)); 3133Debug.Assert(_ccRoot.ElementType == null || 3134(memberInfo.DeclaringType.IsAssignableFrom(_ccRoot.ElementType) && (memberInfo is PropertyInfo))); 3145_ccRoot.EnsureInitializeComponentFn.Statements.Add(csPropSet); 3155CodeStatement csEvent = AddCLREvent(_ccRoot, ctre, mei); 3157Debug.Assert(_ccRoot == (_codeContexts.Peek() as CodeContextRoot)); 3158_ccRoot.EnsureInitializeComponentFn.Statements.Add(csEvent); 3207if (_ccRoot.InitializeComponentFn != null) 3228_ccRoot.CodeClass.Members.Add(cmmMain);