Example #1
0
            internal void AddLocalConstant(LocalConstantDefinition constant)
            {
                if (_localConstants == null)
                {
                    _localConstants = ImmutableArray.CreateBuilder <LocalConstantDefinition>(1);
                }

                Debug.Assert(constant.Name != null);

                _localConstants.Add(constant);
            }
Example #2
0
 /// <summary>
 /// Puts local constant into current scope.
 /// </summary>
 internal void AddLocalConstantToScope(LocalConstantDefinition localConstant)
 {
     HasDynamicLocal |= !localConstant.DynamicTransformFlags.IsEmpty;
     _scopeManager.AddLocalConstant(localConstant);
 }
Example #3
0
            internal void AddLocalConstant(LocalConstantDefinition constant)
            {
                var scope = (LocalScopeInfo)CurrentScope;

                scope.AddLocalConstant(constant);
            }
Example #4
0
 /// <summary>
 /// Puts local constant into current scope.
 /// </summary>
 internal void AddLocalConstantToScope(LocalConstantDefinition localConstant)
 {
     _scopeManager.AddLocalConstant(localConstant);
 }