1 write to settings
System.Activities (1)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (1)
106this.settings = settings;
48 references to settings
System.Activities (48)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (48)
110this.generateSource = this.settings.AlwaysGenerateSource; 122isCS = TextExpression.LanguagesAreEqual(this.settings.Language, "C#"); 134isVB = TextExpression.LanguagesAreEqual(this.settings.Language, "VB"); 226if (!this.settings.Activity.IsMetadataCached) 231ActivityUtilities.CacheRootMetadata(this.settings.Activity, new ActivityLocationReferenceEnvironment(), ProcessActivityTreeOptions.FullCachingOptions, null, ref validationErrors); 240throw FxTrace.Exception.AsError(new InvalidOperationException(SR.CompiledExpressionsCacheMetadataException(this.settings.Activity.GetType().AssemblyQualifiedName, e.ToString()))); 245if (this.TryGetSymbols(this.settings.Activity, out this.symbols, out this.fileName)) 268visitor.Visit(this.settings.Activity, this.settings.ForImplementation); 280throw FxTrace.Exception.AsError(new InvalidOperationException(SR.CompiledExpressionsActivityException(e.GetType().FullName, this.settings.Activity.GetType().AssemblyQualifiedName, e.ToString()))); 316if (this.settings.ForImplementation) 587if (this.settings.LogSourceGenerationMessage != null) 589this.settings.LogSourceGenerationMessage(SR.CompiledExpressionsIgnoringUnnamedVariable); 594if (!CodeDomProvider.CreateProvider(this.settings.Language).IsValidIdentifier(name)) 596if (this.settings.LogSourceGenerationMessage != null) 598this.settings.LogSourceGenerationMessage(SR.CompiledExpressionsIgnoringInvalidIdentifierVariable(name)); 672if (TryGenerateExpressionCode(activity, contextDescriptor, visitor.NextExpressionId, this.settings.Language)) 711CodeTypeDeclaration classDeclaration = new CodeTypeDeclaration(this.settings.ActivityName); 713classDeclaration.IsPartial = this.settings.GenerateAsPartialClass; 722languageProperty.Statements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(this.settings.Language))); 741forImplementationField.InitExpression = new CodePrimitiveExpression(this.settings.ForImplementation); 745if (!this.settings.GenerateAsPartialClass) 944if (this.settings.GenerateAsPartialClass) 1745string contextName = string.Concat(this.settings.ActivityName, TextExpressionCompiler.typedDataContextName, this.nextContextId, forReadOnlyString); 2012CodeNamespace codeNamespace = new CodeNamespace(this.settings.ActivityNamespace); 2045types = this.settings.Activity.GetType().Assembly.GetTypes(); 2057if (type.Namespace == this.settings.ActivityNamespace) 2079vbSettings = VisualBasic.GetSettings(this.settings.Activity); 2093(nsReference.Import == this.settings.ActivityNamespace) 2095((nsReference.Assembly == this.settings.Activity.GetType().Assembly.FullName) || 2096(nsReference.Assembly == this.settings.Activity.GetType().Assembly.GetName().Name)) 2098!string.IsNullOrWhiteSpace(this.settings.RootNamespace) 2112IList<string> references = this.settings.ForImplementation ? 2113TextExpression.GetNamespacesForImplementation(this.settings.Activity) : 2114TextExpression.GetNamespaces(this.settings.Activity); 2341using (CodeDomProvider codeDomProvider = CodeDomProvider.CreateProvider(this.settings.Language)) 2360using (CodeDomProvider codeDomProvider = CodeDomProvider.CreateProvider(this.settings.Language)) 2420if (this.IsVB && !string.IsNullOrWhiteSpace(this.settings.RootNamespace)) 2422compilerParameters.CompilerOptions = string.Concat("/rootnamespace:", this.settings.RootNamespace); 2425List<AssemblyReference> assemblies = this.settings.ForImplementation ? 2426new List<AssemblyReference>(TextExpression.GetReferencesForImplementation(this.settings.Activity)) : 2427new List<AssemblyReference>(TextExpression.GetReferences(this.settings.Activity)); 2526Dictionary<string, int> lineNumberDictionary = this.settings.ForImplementation ? this.lineNumbersForNSesForImpl : this.lineNumbersForNSes; 2544if (this.settings.ForImplementation) 2602if (this.IsVB && !String.IsNullOrWhiteSpace(this.settings.RootNamespace)) 2604rootNamespacePrefix = this.settings.RootNamespace + "."; 2607if (!String.IsNullOrWhiteSpace(this.settings.ActivityNamespace)) 2609namespacePrefix = this.settings.ActivityNamespace + ".";