Exemplo n.º 1
0
        public Reference EvaluateIdentifier(Identifier identifier)
        {
            var env = _engine.ExecutionContext.LexicalEnvironment;
            var strict = StrictModeScope.IsStrictModeCode;

            return LexicalEnvironment.GetIdentifierReference(env, identifier.Name, strict);
        }
Exemplo n.º 2
0
 private void EmitIdentifier(Identifier identifier)
 {
     var name = identifier.Name;
     if (IsCompact)
     {
         string cname;
         if (_idmap.TryGetValue(name, out cname))
         {
             Write(cname);
         }
         else
         {
             Write(name);
         }
     }
     else
     {
         Write(name);
     }
 }