📄 paremeteridentifier.vb
字号:
' ' Visual Basic.Net Compiler' Copyright (C) 2004 - 2007 Rolf Bjarne Kvinge, RKvinge@novell.com' ' This library is free software; you can redistribute it and/or' modify it under the terms of the GNU Lesser General Public' License as published by the Free Software Foundation; either' version 2.1 of the License, or (at your option) any later version.' ' This library is distributed in the hope that it will be useful,' but WITHOUT ANY WARRANTY; without even the implied warranty of' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU' Lesser General Public License for more details.' ' You should have received a copy of the GNU Lesser General Public' License along with this library; if not, write to the Free Software' Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA' ''' <summary>''' ParameterIdentifier ::= Identifier [ ArrayNameModifier ]''' </summary>''' <remarks></remarks>Public Class ParameterIdentifier Inherits ParsedObject Implements INameable Private m_Identifier As Token Private m_ArrayNameModifier As ArrayNameModifier Property Identifier() As Token Get Return m_Identifier End Get Set(ByVal value As Token) m_Identifier = value End Set End Property Sub New(ByVal Parent As Parameter) MyBase.New(Parent) End Sub Sub New(ByVal Parent As Parameter, ByVal Name As String) MyBase.New(Parent) m_Identifier = Token.CreateIdentifierToken(Nothing, Name, TypeCharacters.Characters.None, False) End Sub Sub Init(ByVal Identifier As Token, ByVal ArrayNameModifier As ArrayNameModifier) m_Identifier = Identifier m_ArrayNameModifier = ArrayNameModifier End Sub Public Overrides Function ResolveTypeReferences() As Boolean Dim result As Boolean = True Me.CheckTypeReferencesNotResolved() If m_ArrayNameModifier IsNot Nothing Then result = m_ArrayNameModifier.ResolveTypeReferences AndAlso result Return result End Function Function Clone(Optional ByVal NewParent As Parameter = Nothing) As ParameterIdentifier If NewParent Is Nothing Then NewParent = Me.Parent Dim result As New ParameterIdentifier(NewParent) result.m_Identifier = m_Identifier If m_ArrayNameModifier IsNot Nothing Then result.m_ArrayNameModifier = m_ArrayNameModifier.clone(result) End If Return result End Function Shadows ReadOnly Property Parent() As Parameter Get Return DirectCast(MyBase.Parent, Parameter) End Get End Property ReadOnly Property ArrayNameModifier() As ArrayNameModifier Get Return m_ArrayNameModifier End Get End Property Public ReadOnly Property Name() As String Implements INameable.Name Get Return m_Identifier.Name End Get End PropertyEnd Class
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -