public BindingContext(Compiler compiler, NameSearchSpace searchSpace,
                              IEnumerable <string> typeParameters, IEnumerable <IBoundDecl> typeArguments)
        {
            Compiler    = compiler;
            SearchSpace = searchSpace;

            NameGenerator = new NameGenerator();

            // build the argument dictionary
            TypeArguments = new Dictionary <string, IBoundDecl>();

            if ((typeParameters != null) && (typeArguments != null))
            {
                foreach (var pair in typeParameters.Zip(typeArguments))
                {
                    TypeArguments[pair.Item1] = pair.Item2;
                }
            }
        }
 public ExpandTupleAssignment(NameGenerator generator)
 {
     mNameGenerator = generator;
 }
 public ExpandTupleAssignment(NameGenerator generator)
 {
     mNameGenerator = generator;
 }
Exemple #4
0
 public CodeBuilder(NameGenerator generator, Position position)
 {
     mGenerator = generator;
     mPosition = position;
 }
Exemple #5
0
 public CodeBuilder(NameGenerator generator)
     : this(generator, Position.None)
 {
 }
Exemple #6
0
 public LoopTransformer(NameGenerator generator)
 {
     mNameGenerator = generator;
 }
Exemple #7
0
 public LetTransformer(NameGenerator generator)
 {
     mNameGenerator = generator;
 }
 public CodeBuilder(NameGenerator generator, Position position)
 {
     mGenerator = generator;
     mPosition  = position;
 }
 public CodeBuilder(NameGenerator generator)
     : this(generator, Position.None)
 {
 }