Example #1
0
        public IProcedureDeclaration ResolveProcedure(string name)
        {
            if (DeclaredIdentifiers.TryGetValue(name, out var declaration) &&
                declaration is IProcedureDeclaration procedureDeclaration)
            {
                return(procedureDeclaration);
            }

            return(null);
        }
Example #2
0
        public IParameterDeclaration ResolveParameter(string name)
        {
            if (DeclaredIdentifiers.TryGetValue(name, out var declaration) &&
                declaration is IParameterDeclaration parameterDeclaration)
            {
                return(parameterDeclaration);
            }

            return(null);
        }
Example #3
0
        public IFunctionDeclaration ResolveFunction(string name)
        {
            if (DeclaredIdentifiers.TryGetValue(name, out var declaration) &&
                declaration is IFunctionDeclaration functionDeclaration)
            {
                return(functionDeclaration);
            }

            return(null);
        }
Example #4
0
        public IConstantDeclaration ResolveConstant(string name)
        {
            if (DeclaredIdentifiers.TryGetValue(name, out var declaration) &&
                declaration is IConstantDeclaration constantDeclaration)
            {
                return(constantDeclaration);
            }

            return(null);
        }
Example #5
0
        public IVariableDeclaration ResolveVariable(string name)
        {
            if (DeclaredIdentifiers.TryGetValue(name, out var declaration) &&
                declaration is IVariableDeclaration variableDeclaration)
            {
                return(variableDeclaration);
            }

            return(null);
        }
Example #6
0
        public IAttributeDeclaration ResolveAttribute(string name)
        {
            if (DeclaredIdentifiers.TryGetValue(name, out var declaration) &&
                declaration is IAttributeDeclaration attributeDeclaration)
            {
                return(attributeDeclaration);
            }

            return(null);
        }
Example #7
0
        public IEnumerationDeclaration ResolveEnumeration(string name)
        {
            if (DeclaredIdentifiers.TryGetValue(name, out var declaration) &&
                declaration is IEnumerationDeclaration enumerationDeclaration)
            {
                return(enumerationDeclaration);
            }

            return(null);
        }