SetUsed() public method

Sets specified variable as being used.
public SetUsed ( int varindex ) : void
varindex int
return void
Esempio n. 1
0
        /// <summary>
        /// Marks variable as being referenced.
        /// </summary>
        public void MarkLocalByRef(VariableHandle handle)
        {
            handle.ThrowIfInvalid();

            this.FlowContext.SetReference(handle);
            this.SetVarInitialized(handle);
            _flowCtx.SetUsed(handle);
        }
Esempio n. 2
0
 /// <summary>
 /// Sets the variable is used by reference.
 /// </summary>
 internal void SetVarRef(int varindex)
 {
     this.FlowContext.SetReference(varindex);
     this.SetVarInitialized(varindex);
     _flowCtx.SetUsed(varindex);
 }
Esempio n. 3
0
 /// <summary>
 /// Handles use of a local variable.
 /// </summary>
 public void VisitLocal(VariableHandle handle)
 {
     handle.ThrowIfInvalid();
     FlowContext.SetUsed(handle);
 }
Esempio n. 4
0
 /// <summary>
 /// Handles use of a local variable.
 /// </summary>
 public void VisitLocal(VariableHandle handle)
 {
     handle.ThrowIfInvalid();
     _flowCtx.SetUsed(handle);
 }