Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
 public XSharpCodeParser(IProjectTypeHelper projectNode)
 {
     this.FileName = "";
     this.TabSize  = 1;
     _projectNode  = projectNode;
 }
Ejemplo n.º 4
0
 internal XSharpFieldsDiscover(IProjectTypeHelper projectNode) : base(projectNode)
 {
     classes      = new Stack <ParserRuleContext>();
     currentClass = null;
 }
Ejemplo n.º 5
0
 public XSharpCodeParser(IProjectTypeHelper projectNode, CodeTypeDeclaration formClass)
 {
     this.FileName  = "";
     _projectNode   = projectNode;
     typeInMainFile = formClass;
 }
Ejemplo n.º 6
0
 internal XSharpFieldsDiscover(IProjectTypeHelper projectNode, CodeTypeDeclaration typeInOtherFile) : base(projectNode, typeInOtherFile)
 {
 }