Exemplo n.º 1
0
        public static LambdaCapturedVariable Create(SynthesizedClosureEnvironment frame, Symbol captured, ref int uniqueId)
        {
            Debug.Assert(captured is LocalSymbol || captured is ParameterSymbol);

            string     fieldName = GetCapturedVariableFieldName(captured, ref uniqueId);
            TypeSymbol type      = GetCapturedVariableFieldType(frame, captured);

            return(new LambdaCapturedVariable(frame, TypeSymbolWithAnnotations.Create(type), fieldName, IsThis(captured)));
        }
 internal SynthesizedClosureEnvironmentConstructor(SynthesizedClosureEnvironment frame)
     : base(frame)
 {
 }