public LineOfJavascript(string text, Namespace currentNamespace) { this.Text = text; if (this.Text.StartsWith(currentNamespace.Name + ".View.")) { currentNamespace.SetIsAspControlNamespaceToTrue(); } this.Namespace = currentNamespace; }
internal static Namespace GetNamespace(string name) { if (!namespaces.ContainsKey(name)) { var ns = new Namespace(name); namespaces.Add(name, ns); return ns; } else { return namespaces[name]; } }