예제 #1
0
		public JavaScriptAstWalker(
			JavaScriptCompilationUnit compilationUnit,
			JavaScriptAst ast)
		{
			this.compilationUnit = compilationUnit;
			this.ast = ast;
		}
		public JavaScriptRegionWalker(
			JavaScriptAst ast,
			ICompilationUnit compilationUnit)
		{
			this.ast = ast;
			this.compilationUnit = compilationUnit;
		}
		public JavaScriptRegionWalker(
			JavaScriptAst ast,
			ICompilationUnit compilationUnit)
		{
			this.ast = ast;
			this.compilationUnit = compilationUnit;
		}
예제 #4
0
 public JavaScriptAstWalker(
     JavaScriptCompilationUnit compilationUnit,
     JavaScriptAst ast)
 {
     this.compilationUnit = compilationUnit;
     this.ast             = ast;
 }
예제 #5
0
        public ICompilationUnit Parse(IProjectContent projectContent, string fileName, ITextBuffer fileContent)
        {
            try {
                var           astFactory = new JavaScriptAstFactory(fileContent);
                JavaScriptAst ast        = astFactory.Create();

                var unit   = new JavaScriptCompilationUnit(projectContent, fileName);
                var walker = new JavaScriptAstWalker(unit, ast);
                walker.Walk();

                return(unit);
            } catch (Exception ex) {
                LoggingService.Debug(ex.ToString());
            }

            return(new DefaultCompilationUnit(projectContent)
            {
                FileName = fileName
            });
        }
		public JavaScriptFunctionDefinition(JavaScriptAst ast, CommonTree tree)
		{
			this.ast = ast;
			this.tree = tree;
		}
예제 #7
0
 public JavaScriptFunctionDefinition(JavaScriptAst ast, CommonTree tree)
 {
     this.ast  = ast;
     this.tree = tree;
 }
예제 #8
0
 public JavaScriptMethodRegion(JavaScriptAst ast, CommonTree methodDefinition)
 {
     this.ast = ast;
     this.methodDefinition = methodDefinition;
 }
		public JavaScriptMethodRegion(JavaScriptAst ast, CommonTree methodDefinition)
		{
			this.ast = ast;
			this.methodDefinition = methodDefinition;
		}