internal XSharpBaseDiscover(IProjectTypeHelper projectNode) : base() { FieldList = new Dictionary <ParserRuleContext, List <XCodeMemberField> >(); _projectNode = projectNode; this._types = new Dictionary <string, TypeXType>(StringComparer.OrdinalIgnoreCase); this._usings = new List <string>(); this._stypes = new Dictionary <string, EnvDTE.CodeElement>(StringComparer.OrdinalIgnoreCase); }
public XSharpClassDiscover(IProjectTypeHelper projectNode) : base(projectNode) { // The default (empty) CodeCompileUnit, so we can work if none is provided this.CodeCompileUnit = new XCodeCompileUnit(); // The default Namespace, so we can work if none is provided... :) this.CurrentNamespace = new XCodeNamespace(""); this.CodeCompileUnit.Namespaces.Add(this.CurrentNamespace); // If we have some Nested Namespaces, we will need to keep track this.NamespaceStack = new Stack <XCodeNamespace>(); // To store intermediate declarations this.LocalDecls = new Stack <XSharpParser.LocalvarContext>(); // this.CurrentFile = ""; _tokens = null; }
public XSharpCodeParser(IProjectTypeHelper projectNode) { this.FileName = ""; this.TabSize = 1; _projectNode = projectNode; }
internal XSharpFieldsDiscover(IProjectTypeHelper projectNode) : base(projectNode) { classes = new Stack <ParserRuleContext>(); currentClass = null; }
public XSharpCodeParser(IProjectTypeHelper projectNode, CodeTypeDeclaration formClass) { this.FileName = ""; _projectNode = projectNode; typeInMainFile = formClass; }
internal XSharpFieldsDiscover(IProjectTypeHelper projectNode, CodeTypeDeclaration typeInOtherFile) : base(projectNode, typeInOtherFile) { }