Esempio n. 1
0
 public override bool ResolveNames(LexicalScope scope)
 {
     if (typeDeclaration != null)
     {
         typeDeclaration.ResolveNames(scope);
     }
     return(true);
 }
Esempio n. 2
0
 public override bool ResolveNames(LexicalScope scope)
 {
     if (scope != null)
     {
         declaration = scope.Resolve(name);
     }
     return(true);
 }
Esempio n. 3
0
        public override bool ResolveNames(LexicalScope scope)
        {
            var newScope = new LexicalScope(scope);

            foreach (var blkstat in blockStatements)
            {
                if (blkstat is Declaration)
                {
                    var decl = (Declaration)blkstat;
                    newScope.Add(decl);
                }
            }
            foreach (var blkstat in blockStatements)
            {
                ResolveNames(newScope);
            }
            return(true);
        }
Esempio n. 4
0
        public override bool ResolveNames(LexicalScope scope)
        {
            identifier.ResolveNames(scope);
            var newScope = new LexicalScope(scope);

            foreach (var formal in formalParameterList)
            {
                if (formal is Declaration)
                {
                    var decl = (Declaration)formal;
                    newScope.Add(decl);
                }
            }
            foreach (var formal in formalParameterList)
            {
                ResolveNames(newScope);
            }
            return(true);
        }
Esempio n. 5
0
 public LexicalScope(LexicalScope parentScope)
 {
     this.parentScope = parentScope;
     symbol_table     = new Dictionary <string, Declaration>();
 }
Esempio n. 6
0
 public override bool ResolveNames(JavaCompiler.LexicalScope scope)
 {
     return(true);
 }
Esempio n. 7
0
 public override bool ResolveNames(LexicalScope scope)
 {
     return(true);
 }
Esempio n. 8
0
 public override bool ResolveNames(LexicalScope scope)
 {
     identifier.ResolveNames(scope);
     return(true);
 }
Esempio n. 9
0
 public override bool ResolveNames(LexicalScope scope)
 {
     methodDeclaration.ResolveNames(scope);
     return(true);
 }
Esempio n. 10
0
 public override bool ResolveNames(LexicalScope scope)
 {
     methodHeader.ResolveNames(scope);
     methodBody.ResolveNames(scope);
     return(true);
 }
Esempio n. 11
0
 public abstract bool ResolveNames(LexicalScope scope);
Esempio n. 12
0
 public override bool ResolveNames(LexicalScope scope)
 {
     variableDeclarator.ResolveNames(scope);
     return(true);
 }
Esempio n. 13
0
 public override bool ResolveNames(LexicalScope scope)
 {
     assignment.ResolveNames(scope);
     return(true);
 }